Lines Matching full:if
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 #if defined (ICONV_TO_UCS_CES_TABLE) \
50 * linked-in tables. If not found, it tries to load it from external file
51 * (only if corespondent capability was enabled in Newlib configuration).
79 if (ccsp->type == TABLE_EXTERNAL) in table_close()
86 #if defined (ICONV_FROM_UCS_CES_TABLE)
96 if (strcmp (_iconv_ccs[i]->name, encoding) == 0) in table_init_from_ucs()
102 if (biccsp != NULL) in table_init_from_ucs()
104 if (biccsp->from_ucs == NULL in table_init_from_ucs()
133 if (in > 0xFFFF || in == INVALC) in table_convert_from_ucs()
136 if (ccsp->bits == TABLE_8BIT) in table_convert_from_ucs()
140 if (code == INVALC) in table_convert_from_ucs()
147 else if (ccsp->optimization == TABLE_SPEED_OPTIMIZED) in table_convert_from_ucs()
152 if (code == INVALC) in table_convert_from_ucs()
155 if (*outbytesleft < 2) in table_convert_from_ucs()
167 #if defined (ICONV_TO_UCS_CES_TABLE)
177 if (strcmp (_iconv_ccs[i]->name, encoding) == 0) in table_init_to_ucs()
183 if (biccsp != NULL) in table_init_to_ucs()
185 if (biccsp->to_ucs == NULL in table_init_to_ucs()
213 if (ccsp->bits == TABLE_8BIT) in table_convert_to_ucs()
215 if (*inbytesleft < 1) in table_convert_to_ucs()
220 if (ucs == INVALC) in table_convert_to_ucs()
228 if (*inbytesleft < 2) in table_convert_to_ucs()
231 if (ccsp->optimization == TABLE_SIZE_OPTIMIZED) in table_convert_to_ucs()
238 if (ucs == INVALC) in table_convert_to_ucs()
254 #if defined (ICONV_TO_UCS_CES_TABLE)
268 #if defined (ICONV_FROM_UCS_CES_TABLE)
302 if (idx == INVBLK) in find_code_speed()
325 if (code == ((ucs2_t *)tblp)[0]) in find_code_speed_8bit()
330 if (idx == INVBLK) in find_code_speed_8bit()
363 if (tblp[RANGES_NUM_INDEX] > 0) in find_code_size()
373 if (code > RANGE_RIGHT (cur)) in find_code_size()
375 else if (code < RANGE_LEFT (cur)) in find_code_size()
381 if (last - first == 1) in find_code_size()
383 if (code >= RANGE_LEFT (first) && code <= RANGE_RIGHT (first)) in find_code_size()
386 if (code >= RANGE_LEFT (last) && code <= RANGE_RIGHT (last)) in find_code_size()
392 if (tblp[UNRANGED_NUM_INDEX] > 0) in find_code_size()
405 if (code > c) in find_code_size()
407 else if (code < c) in find_code_size()
413 if (last - first == 1) in find_code_size()
415 if (code == tblp[UNRANGED_INDEX (first)]) in find_code_size()
417 if (code == tblp[UNRANGED_INDEX (last)]) in find_code_size()
443 * If 'direction' is 0 - load "To UCS" table, else load "From UCS"
447 * iconv_ccs_desc_t * pointer is success, NULL if failure.
469 if ((fname = _iconv_nls_construct_filename (name, ICONV_SUBDIR, in load_file()
473 if ((file = fopen (fname, "rb")) == NULL) in load_file()
476 if ((buf = malloc (hdrlen)) == NULL) in load_file()
479 if (fread ((void *) buf, 1, hdrlen, file) != hdrlen) in load_file()
484 if (_16BIT_ELT (EXTTABLE_VERSION_OFF) != TABLE_VERSION_1 in load_file()
489 if ((ccsp = (iconv_ccs_desc_t *) in load_file()
499 if (ccsp->bits == TABLE_8BIT) in load_file()
501 if (direction == 0) /* Load "To UCS" table */ in load_file()
512 else if (ccsp->bits == TABLE_16BIT) in load_file()
514 if (direction == 0) /* Load "To UCS" table */ in load_file()
543 if (off == EXTTABLE_NO_TABLE) in load_file()
546 if ((ccsp->tbl = (ucs2_t *)malloc (tbllen)) == NULL) in load_file()
550 if (getc(file) == EOF) in load_file()
554 if (fread ((void *) ccsp->tbl, 1, tbllen, file) != tbllen) in load_file()
569 if (fclose (file) == EOF) in load_file()
571 if (ccsp != NULL) in load_file()
573 if (ccsp->tbl != NULL) in load_file()