Lines Matching refs:fromP
404 const char **fromP, const char *fromLim, in utf8_toUtf8() argument
411 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8()
414 fromLim = *fromP + bytesStorable; in utf8_toUtf8()
421 _INTERNAL_trim_to_complete_utf8_characters(*fromP, &fromLim); in utf8_toUtf8()
428 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8()
429 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
430 *fromP += bytesToCopy; in utf8_toUtf8()
444 const char **fromP, const char *fromLim, in utf8_toUtf16() argument
449 const char *from = *fromP; in utf8_toUtf16()
497 *fromP = from; in utf8_toUtf16()
550 const char **fromP, const char *fromLim, in latin1_toUtf8() argument
555 if (*fromP == fromLim) in latin1_toUtf8()
557 c = (unsigned char)**fromP; in latin1_toUtf8()
563 (*fromP)++; in latin1_toUtf8()
568 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
575 const char **fromP, const char *fromLim, in latin1_toUtf16() argument
578 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
579 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
581 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
613 const char **fromP, const char *fromLim, in ascii_toUtf8() argument
616 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
617 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
619 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
671 const char **fromP, const char *fromLim, \
674 const char *from = *fromP; \
685 *fromP = from; \
695 *fromP = from; \
703 *fromP = from; \
713 *fromP = from; \
717 *fromP = from; \
733 *fromP = from; \
743 const char **fromP, const char *fromLim, \
747 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
749 if (fromLim - *fromP > ((toLim - *toP) << 1) \
754 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
755 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
756 if ((*toP == toLim) && (*fromP < fromLim)) \
1444 const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1452 if (*fromP == fromLim) in unknown_toUtf8()
1454 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8()
1457 int c = uenc->convert(uenc->userData, *fromP); in unknown_toUtf8()
1462 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf8()
1468 (*fromP)++; in unknown_toUtf8()
1477 const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1481 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1482 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1485 uenc->convert(uenc->userData, *fromP); in unknown_toUtf16()
1486 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf16()
1490 (*fromP)++; in unknown_toUtf16()
1494 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()