Lines Matching refs:toP

324             char **toP, const char *toLim)  in utf8_toUtf8()  argument
329 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
332 for (fromLim = *fromP + (toLim - *toP); fromLim > *fromP; fromLim--) in utf8_toUtf8()
336 for (to = *toP, from = *fromP; (from < fromLim) && (to < toLim); from++, to++) in utf8_toUtf8()
339 *toP = to; in utf8_toUtf8()
350 unsigned short **toP, const unsigned short *toLim) in utf8_toUtf16() argument
353 unsigned short *to = *toP; in utf8_toUtf16()
401 *toP = to; in utf8_toUtf16()
454 char **toP, const char *toLim) in latin1_toUtf8() argument
462 if (toLim - *toP < 2) in latin1_toUtf8()
464 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
465 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
469 if (*toP == toLim) in latin1_toUtf8()
471 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
479 unsigned short **toP, const unsigned short *toLim) in latin1_toUtf16() argument
481 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
482 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
484 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
517 char **toP, const char *toLim) in ascii_toUtf8() argument
519 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
520 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
522 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
575 char **toP, const char *toLim) \
587 if (*toP == toLim) { \
591 *(*toP)++ = lo; \
597 if (toLim - *toP < 2) { \
601 *(*toP)++ = ((lo >> 6) | (hi << 2) | UTF8_cval2); \
602 *(*toP)++ = ((lo & 0x3f) | 0x80); \
605 if (toLim - *toP < 3) { \
610 *(*toP)++ = ((hi >> 4) | UTF8_cval3); \
611 *(*toP)++ = (((hi & 0xf) << 2) | (lo >> 6) | 0x80); \
612 *(*toP)++ = ((lo & 0x3f) | 0x80); \
615 if (toLim - *toP < 4) { \
624 *(*toP)++ = ((plane >> 2) | UTF8_cval4); \
625 *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \
628 *(*toP)++ = (((lo & 0x3) << 4) \
632 *(*toP)++ = ((lo2 & 0x3f) | 0x80); \
647 unsigned short **toP, const unsigned short *toLim) \
652 if (fromLim - *fromP > ((toLim - *toP) << 1) \
657 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
658 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
659 if ((*toP == toLim) && (*fromP < fromLim)) \
1344 char **toP, const char *toLim) in unknown_toUtf8() argument
1358 if (n > toLim - *toP) in unknown_toUtf8()
1365 if (n > toLim - *toP) in unknown_toUtf8()
1370 *(*toP)++ = *utf8++; in unknown_toUtf8()
1378 unsigned short **toP, const unsigned short *toLim) in unknown_toUtf16() argument
1381 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1391 *(*toP)++ = c; in unknown_toUtf16()
1394 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()