Lines Matching refs:fromP
401 const char **fromP, const char *fromLim, in utf8_toUtf8() argument
408 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8()
411 fromLim = *fromP + bytesStorable; in utf8_toUtf8()
418 _INTERNAL_trim_to_complete_utf8_characters(*fromP, &fromLim); in utf8_toUtf8()
425 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8()
426 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
427 *fromP += bytesToCopy; in utf8_toUtf8()
441 const char **fromP, const char *fromLim, in utf8_toUtf16() argument
446 const char *from = *fromP; in utf8_toUtf16()
494 *fromP = from; in utf8_toUtf16()
547 const char **fromP, const char *fromLim, in latin1_toUtf8() argument
552 if (*fromP == fromLim) in latin1_toUtf8()
554 c = (unsigned char)**fromP; in latin1_toUtf8()
560 (*fromP)++; in latin1_toUtf8()
565 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
572 const char **fromP, const char *fromLim, 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()
610 const char **fromP, const char *fromLim, 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()
668 const char **fromP, const char *fromLim, \
671 const char *from = *fromP; \
682 *fromP = from; \
692 *fromP = from; \
700 *fromP = from; \
710 *fromP = from; \
714 *fromP = from; \
730 *fromP = from; \
740 const char **fromP, const char *fromLim, \
744 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
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)) \
1441 const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1449 if (*fromP == fromLim) in unknown_toUtf8()
1451 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8()
1454 int c = uenc->convert(uenc->userData, *fromP); in unknown_toUtf8()
1459 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf8()
1465 (*fromP)++; in unknown_toUtf8()
1474 const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1478 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1479 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1482 uenc->convert(uenc->userData, *fromP); in unknown_toUtf16()
1483 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf16()
1487 (*fromP)++; in unknown_toUtf16()
1491 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()