Lines Matching refs:outleft

25                                   unsigned char* outptr, size_t outleft)  in unicode_transliterate()  argument
37 size_t backup_outleft = outleft; in unicode_transliterate()
40 if (outleft == 0) { in unicode_transliterate()
44 sub_outcount = cd->ofuncs.xxx_wctomb(cd,outptr,buf[i],outleft); in unicode_transliterate()
47 if (!(sub_outcount <= outleft)) abort(); in unicode_transliterate()
48 outptr += sub_outcount; outleft -= sub_outcount; in unicode_transliterate()
54 outleft = backup_outleft; in unicode_transliterate()
81 size_t backup_outleft = outleft; in unicode_transliterate()
84 if (outleft == 0) { in unicode_transliterate()
88 sub_outcount = cd->ofuncs.xxx_wctomb(cd,outptr,buf[i],outleft); in unicode_transliterate()
91 if (!(sub_outcount <= outleft)) abort(); in unicode_transliterate()
92 outptr += sub_outcount; outleft -= sub_outcount; in unicode_transliterate()
98 outleft = backup_outleft; in unicode_transliterate()
116 int outcount = cd->ofuncs.xxx_wctomb(cd,outptr,substitute,outleft); in unicode_transliterate()
128 size_t backup_outleft = outleft; in unicode_transliterate()
132 if (outleft == 0) { in unicode_transliterate()
136 sub_outcount = cd->ofuncs.xxx_wctomb(cd,outptr,cp[i],outleft); in unicode_transliterate()
139 sub_outcount = unicode_transliterate(cd,cp[i],outptr,outleft); in unicode_transliterate()
142 if (!(sub_outcount <= outleft)) abort(); in unicode_transliterate()
143 outptr += sub_outcount; outleft -= sub_outcount; in unicode_transliterate()
149 outleft = backup_outleft; in unicode_transliterate()
200 size_t outleft = plocals->l_outbytesleft; in mb_to_uc_write_replacement() local
204 if (outleft == 0) { in mb_to_uc_write_replacement()
208 outcount = cd->ofuncs.xxx_wctomb(cd,outptr,wc,outleft); in mb_to_uc_write_replacement()
216 outcount = unicode_transliterate(cd,wc,outptr,outleft); in mb_to_uc_write_replacement()
228 locals.l_outbytesleft = outleft; in mb_to_uc_write_replacement()
239 outleft = locals.l_outbytesleft; in mb_to_uc_write_replacement()
244 outcount = cd->ofuncs.xxx_wctomb(cd,outptr,0xFFFD,outleft); in mb_to_uc_write_replacement()
258 if (!(outcount <= outleft)) abort(); in mb_to_uc_write_replacement()
259 outptr += outcount; outleft -= outcount; in mb_to_uc_write_replacement()
263 plocals->l_outbytesleft = outleft; in mb_to_uc_write_replacement()
278 size_t outleft = *outbytesleft; in unicode_loop_convert() local
320 locals.l_outbytesleft = outleft; in unicode_loop_convert()
332 outleft = locals.l_outbytesleft; in unicode_loop_convert()
351 if (outleft == 0) { in unicode_loop_convert()
357 outcount = cd->ofuncs.xxx_wctomb(cd,outptr,wc,outleft); in unicode_loop_convert()
366 outcount = unicode_transliterate(cd,wc,outptr,outleft); in unicode_loop_convert()
378 locals.l_outbytesleft = outleft; in unicode_loop_convert()
390 outleft = locals.l_outbytesleft; in unicode_loop_convert()
395 outcount = cd->ofuncs.xxx_wctomb(cd,outptr,0xFFFD,outleft); in unicode_loop_convert()
413 if (!(outcount <= outleft)) abort(); in unicode_loop_convert()
414 outptr += outcount; outleft -= outcount; in unicode_loop_convert()
423 *outbytesleft = outleft; in unicode_loop_convert()
443 size_t outleft = *outbytesleft; in unicode_loop_reset() local
444 int outcount = cd->ofuncs.xxx_wctomb(cd,outptr,wc,outleft); in unicode_loop_reset()
453 outcount = unicode_transliterate(cd,wc,outptr,outleft); in unicode_loop_reset()
465 locals.l_outbytesleft = outleft; in unicode_loop_reset()
477 outleft = locals.l_outbytesleft; in unicode_loop_reset()
482 outcount = cd->ofuncs.xxx_wctomb(cd,outptr,0xFFFD,outleft); in unicode_loop_reset()
498 if (!(outcount <= outleft)) abort(); in unicode_loop_reset()
500 outleft -= outcount; in unicode_loop_reset()
503 *outbytesleft = outleft; in unicode_loop_reset()
508 size_t outleft = *outbytesleft; in unicode_loop_reset() local
509 int outcount = cd->ofuncs.xxx_reset(cd,outptr,outleft); in unicode_loop_reset()
514 if (!(outcount <= outleft)) abort(); in unicode_loop_reset()
516 *outbytesleft = outleft - outcount; in unicode_loop_reset()