Lines Matching refs:fromP
323 const char **fromP, const char *fromLim, in utf8_toUtf8() argument
329 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
332 for (fromLim = *fromP + (toLim - *toP); fromLim > *fromP; fromLim--) in utf8_toUtf8()
336 for (to = *toP, from = *fromP; (from < fromLim) && (to < toLim); from++, to++) in utf8_toUtf8()
338 *fromP = from; in utf8_toUtf8()
349 const char **fromP, const char *fromLim, in utf8_toUtf16() argument
354 const char *from = *fromP; in utf8_toUtf16()
400 *fromP = from; in utf8_toUtf16()
453 const char **fromP, const char *fromLim, in latin1_toUtf8() argument
458 if (*fromP == fromLim) in latin1_toUtf8()
460 c = (unsigned char)**fromP; in latin1_toUtf8()
466 (*fromP)++; in latin1_toUtf8()
471 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
478 const char **fromP, const char *fromLim, in latin1_toUtf16() argument
481 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
482 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
484 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
516 const char **fromP, const char *fromLim, in ascii_toUtf8() argument
519 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
520 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
522 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
574 const char **fromP, const char *fromLim, \
577 const char *from = *fromP; \
588 *fromP = from; \
598 *fromP = from; \
606 *fromP = from; \
616 *fromP = from; \
620 *fromP = from; \
636 *fromP = from; \
646 const char **fromP, const char *fromLim, \
650 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
652 if (fromLim - *fromP > ((toLim - *toP) << 1) \
657 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
658 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
659 if ((*toP == toLim) && (*fromP < fromLim)) \
1343 const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1351 if (*fromP == fromLim) in unknown_toUtf8()
1353 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8()
1356 int c = uenc->convert(uenc->userData, *fromP); in unknown_toUtf8()
1361 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf8()
1367 (*fromP)++; in unknown_toUtf8()
1377 const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1381 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1382 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1385 uenc->convert(uenc->userData, *fromP); in unknown_toUtf16()
1386 *fromP += (AS_NORMAL_ENCODING(enc)->type[(unsigned char)**fromP] in unknown_toUtf16()
1390 (*fromP)++; in unknown_toUtf16()
1394 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()