Lines Matching refs:toP
368 char **toP, const char *toLim) { in utf8_toUtf8() argument
374 const ptrdiff_t bytesStorable = toLim - *toP; in utf8_toUtf8()
392 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
394 *toP += bytesToCopy; in utf8_toUtf8()
407 unsigned short **toP, const unsigned short *toLim) { in utf8_toUtf16() argument
409 unsigned short *to = *toP; in utf8_toUtf16()
457 *toP = to; in utf8_toUtf16()
505 char **toP, const char *toLim) { in latin1_toUtf8() argument
513 if (toLim - *toP < 2) in latin1_toUtf8()
515 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
516 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
519 if (*toP == toLim) in latin1_toUtf8()
521 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
528 unsigned short **toP, const unsigned short *toLim) { in latin1_toUtf16() argument
530 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
531 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
533 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
563 char **toP, const char *toLim) { in ascii_toUtf8() argument
565 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
566 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
568 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
625 char **toP, const char *toLim) { \
637 if (*toP == toLim) { \
641 *(*toP)++ = lo; \
652 if (toLim - *toP < 2) { \
656 *(*toP)++ = ((lo >> 6) | (hi << 2) | UTF8_cval2); \
657 *(*toP)++ = ((lo & 0x3f) | 0x80); \
660 if (toLim - *toP < 3) { \
665 *(*toP)++ = ((hi >> 4) | UTF8_cval3); \
666 *(*toP)++ = (((hi & 0xf) << 2) | (lo >> 6) | 0x80); \
667 *(*toP)++ = ((lo & 0x3f) | 0x80); \
673 if (toLim - *toP < 4) { \
682 *(*toP)++ = (char)((plane >> 2) | UTF8_cval4); \
683 *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \
686 *(*toP)++ = (((lo & 0x3) << 4) | ((GET_HI(from) & 0x3) << 2) \
688 *(*toP)++ = ((lo2 & 0x3f) | 0x80); \
702 unsigned short **toP, const unsigned short *toLim) { \
707 if (fromLim - *fromP > ((toLim - *toP) << 1) \
712 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
713 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
714 if ((*toP == toLim) && (*fromP < fromLim)) \
1351 char **toP, const char *toLim) { in unknown_toUtf8() argument
1364 if (n > toLim - *toP) in unknown_toUtf8()
1370 if (n > toLim - *toP) in unknown_toUtf8()
1374 memcpy(*toP, utf8, n); in unknown_toUtf8()
1375 *toP += n; in unknown_toUtf8()
1381 unsigned short **toP, const unsigned short *toLim) { in unknown_toUtf16() argument
1383 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1391 *(*toP)++ = c; in unknown_toUtf16()
1394 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()