Lines Matching refs:i

106   int i;  in euc_from_ucs_init()  local
146 for (i = 0; i < MAX_CS_NUM && data->desc[i].csname != NULL; i++) in euc_from_ucs_init()
148 data->data[i] = _iconv_from_ucs_ces_handlers_table.init ( in euc_from_ucs_init()
149 data->desc[i].csname); in euc_from_ucs_init()
150 if (data->data[i] == NULL) in euc_from_ucs_init()
168 int i; in euc_from_ucs_close() local
171 for (i = 0; i < MAX_CS_NUM; i++) in euc_from_ucs_close()
173 if (((euc_data_t *)data)->data[i] != NULL) in euc_from_ucs_close()
175 ((euc_data_t *)data)->data[i]); in euc_from_ucs_close()
188 int i; in euc_convert_from_ucs() local
203 for (i = 0; d->desc[i].csname != NULL; i++) in euc_convert_from_ucs()
206 if (((int)*outbytesleft - d->desc[i].prefixbytes - d->desc[i].bytes) < 0) in euc_convert_from_ucs()
214 d->data[i], in euc_convert_from_ucs()
224 outbuf1 = *outbuf + d->desc[i].prefixbytes; in euc_convert_from_ucs()
225 outbytesleft1 = *outbytesleft - d->desc[i].prefixbytes; in euc_convert_from_ucs()
228 d->data[i], in euc_convert_from_ucs()
232 if (res == d->desc[i].bytes) in euc_convert_from_ucs()
234 for (j = 0; j < d->desc[i].prefixbytes; j++) in euc_convert_from_ucs()
235 (*outbuf)[j] = d->desc[i].prefix[j]; in euc_convert_from_ucs()
237 if (d->desc[i].touchmsb) in euc_convert_from_ucs()
238 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_from_ucs()
240 if ((*outbuf)[j + d->desc[i].prefixbytes] & 0x80) in euc_convert_from_ucs()
242 (*outbuf)[j + d->desc[i].prefixbytes] |= 0x80; in euc_convert_from_ucs()
248 return (size_t)(res + d->desc[i].bytes); in euc_convert_from_ucs()
261 int i; in euc_to_ucs_init() local
301 for (i = 0; i < MAX_CS_NUM && data->desc[i].csname != NULL; i++) in euc_to_ucs_init()
303 data->data[i] = _iconv_to_ucs_ces_handlers_table.init ( in euc_to_ucs_init()
304 data->desc[i].csname); in euc_to_ucs_init()
305 if (data->data[i] == NULL) in euc_to_ucs_init()
323 int i; in euc_to_ucs_close() local
326 for (i = 0; i < MAX_CS_NUM; i++) in euc_to_ucs_close()
328 if (((euc_data_t *)data)->data[i] != NULL) in euc_to_ucs_close()
330 ((euc_data_t *)data)->data[i]); in euc_to_ucs_close()
342 int i; in euc_convert_to_ucs() local
356 for (i = 1; d->desc[i].csname != NULL; i++) in euc_convert_to_ucs()
359 (const void *)d->desc[i].prefix, in euc_convert_to_ucs()
360 d->desc[i].prefixbytes) == 0) in euc_convert_to_ucs()
362 if (((int)*inbytesleft - d->desc[i].prefixbytes - d->desc[i].bytes) < 0) in euc_convert_to_ucs()
365 if (d->desc[i].touchmsb) in euc_convert_to_ucs()
366 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_to_ucs()
368 if (!((*inbuf)[j + d->desc[i].prefixbytes] & 0x80)) in euc_convert_to_ucs()
370 inbuf1[j] = (*inbuf)[j + d->desc[i].prefixbytes] & 0x7F; in euc_convert_to_ucs()
373 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_to_ucs()
374 inbuf1[j] = (*inbuf)[j + d->desc[i].prefixbytes]; in euc_convert_to_ucs()
376 inbytesleft1 = d->desc[i].bytes; in euc_convert_to_ucs()
379 d->data[i], in euc_convert_to_ucs()
384 *inbuf += d->desc[i].bytes + d->desc[i].prefixbytes; in euc_convert_to_ucs()
385 *inbytesleft -= d->desc[i].bytes + d->desc[i].prefixbytes; in euc_convert_to_ucs()