Lines Matching refs:fromP

369             const char **fromP, const char *fromLim,  in utf8_toUtf8()  argument
375 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
378 fromLim = *fromP + (toLim - *toP); in utf8_toUtf8()
379 align_limit_to_full_utf8_characters(*fromP, &fromLim); in utf8_toUtf8()
381 for (to = *toP, from = *fromP; (from < fromLim) && (to < toLim); from++, to++) in utf8_toUtf8()
383 *fromP = from; in utf8_toUtf8()
394 const char **fromP, const char *fromLim, in utf8_toUtf16() argument
399 const char *from = *fromP; in utf8_toUtf16()
445 *fromP = from; in utf8_toUtf16()
498 const char **fromP, const char *fromLim, in latin1_toUtf8() argument
503 if (*fromP == fromLim) in latin1_toUtf8()
505 c = (unsigned char)**fromP; in latin1_toUtf8()
511 (*fromP)++; in latin1_toUtf8()
516 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
523 const char **fromP, const char *fromLim, in latin1_toUtf16() argument
526 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
527 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
529 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
561 const char **fromP, const char *fromLim, in ascii_toUtf8() argument
564 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
565 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
567 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
619 const char **fromP, const char *fromLim, \
622 const char *from = *fromP; \
633 *fromP = from; \
643 *fromP = from; \
651 *fromP = from; \
661 *fromP = from; \
665 *fromP = from; \
681 *fromP = from; \
691 const char **fromP, const char *fromLim, \
695 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
697 if (fromLim - *fromP > ((toLim - *toP) << 1) \
702 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
703 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
704 if ((*toP == toLim) && (*fromP < fromLim)) \
1388 const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1396 if (*fromP == fromLim) in unknown_toUtf8()
1398 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8()
1401 int c = uenc->convert(uenc->userData, *fromP); in unknown_toUtf8()
1406 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf8()
1412 (*fromP)++; in unknown_toUtf8()
1422 const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1426 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1427 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1430 uenc->convert(uenc->userData, *fromP); in unknown_toUtf16()
1431 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf16()
1435 (*fromP)++; in unknown_toUtf16()
1439 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()