Lines Matching refs:toP

402             char **toP, const char *toLim)  in utf8_toUtf8()  argument
409 const ptrdiff_t bytesStorable = toLim - *toP; in utf8_toUtf8()
426 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
428 *toP += bytesToCopy; in utf8_toUtf8()
442 unsigned short **toP, const unsigned short *toLim) in utf8_toUtf16() argument
445 unsigned short *to = *toP; in utf8_toUtf16()
495 *toP = to; in utf8_toUtf16()
548 char **toP, const char *toLim) in latin1_toUtf8() argument
556 if (toLim - *toP < 2) in latin1_toUtf8()
558 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
559 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
563 if (*toP == toLim) in latin1_toUtf8()
565 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
573 unsigned short **toP, const unsigned short *toLim) in latin1_toUtf16() argument
575 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
576 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
578 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
611 char **toP, const char *toLim) in ascii_toUtf8() argument
613 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
614 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
616 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
669 char **toP, const char *toLim) \
681 if (*toP == toLim) { \
685 *(*toP)++ = lo; \
691 if (toLim - *toP < 2) { \
695 *(*toP)++ = ((lo >> 6) | (hi << 2) | UTF8_cval2); \
696 *(*toP)++ = ((lo & 0x3f) | 0x80); \
699 if (toLim - *toP < 3) { \
704 *(*toP)++ = ((hi >> 4) | UTF8_cval3); \
705 *(*toP)++ = (((hi & 0xf) << 2) | (lo >> 6) | 0x80); \
706 *(*toP)++ = ((lo & 0x3f) | 0x80); \
709 if (toLim - *toP < 4) { \
718 *(*toP)++ = ((plane >> 2) | UTF8_cval4); \
719 *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \
722 *(*toP)++ = (((lo & 0x3) << 4) \
726 *(*toP)++ = ((lo2 & 0x3f) | 0x80); \
741 unsigned short **toP, const unsigned short *toLim) \
746 if (fromLim - *fromP > ((toLim - *toP) << 1) \
751 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
752 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
753 if ((*toP == toLim) && (*fromP < fromLim)) \
1442 char **toP, const char *toLim) in unknown_toUtf8() argument
1456 if (n > toLim - *toP) in unknown_toUtf8()
1463 if (n > toLim - *toP) in unknown_toUtf8()
1467 memcpy(*toP, utf8, n); in unknown_toUtf8()
1468 *toP += n; in unknown_toUtf8()
1475 unsigned short **toP, const unsigned short *toLim) in unknown_toUtf16() argument
1478 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1488 *(*toP)++ = c; in unknown_toUtf16()
1491 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()