Lines Matching refs:fromP
365 utf8_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf8() argument
371 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8()
375 fromLim = *fromP + bytesStorable; in utf8_toUtf8()
382 _INTERNAL_trim_to_complete_utf8_characters(*fromP, &fromLim); in utf8_toUtf8()
389 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8()
390 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
391 *fromP += bytesToCopy; in utf8_toUtf8()
404 utf8_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf16() argument
408 const char *from = *fromP; in utf8_toUtf16()
454 *fromP = from; in utf8_toUtf16()
502 latin1_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in latin1_toUtf8() argument
507 if (*fromP == fromLim) in latin1_toUtf8()
509 c = (unsigned char)**fromP; in latin1_toUtf8()
515 (*fromP)++; in latin1_toUtf8()
519 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
525 latin1_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in latin1_toUtf16() argument
528 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
529 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
531 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
560 ascii_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in ascii_toUtf8() argument
563 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
564 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
566 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
622 const ENCODING *enc, const char **fromP, const char *fromLim, \
624 const char *from = *fromP; \
636 *fromP = from; \
651 *fromP = from; \
659 *fromP = from; \
672 *fromP = from; \
676 *fromP = from; \
690 *fromP = from; \
699 const ENCODING *enc, const char **fromP, const char *fromLim, \
703 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
705 if (fromLim - *fromP > ((toLim - *toP) << 1) \
710 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
711 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
712 if ((*toP == toLim) && (*fromP < fromLim)) \
1355 unknown_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1362 if (*fromP == fromLim) in unknown_toUtf8()
1364 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8()
1367 int c = uenc->convert(uenc->userData, *fromP); in unknown_toUtf8()
1372 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf8()
1377 (*fromP)++; in unknown_toUtf8()
1385 unknown_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1388 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1389 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1391 c = (unsigned short)uenc->convert(uenc->userData, *fromP); in unknown_toUtf16()
1392 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf16()
1395 (*fromP)++; in unknown_toUtf16()
1399 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()