• Home
  • Raw
  • Download

Lines Matching refs:toP

370             char **toP, const char *toLim)  in utf8_toUtf8()  argument
375 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
378 fromLim = *fromP + (toLim - *toP); in utf8_toUtf8()
381 for (to = *toP, from = *fromP; (from < fromLim) && (to < toLim); from++, to++) in utf8_toUtf8()
384 *toP = to; in utf8_toUtf8()
395 unsigned short **toP, const unsigned short *toLim) in utf8_toUtf16() argument
398 unsigned short *to = *toP; in utf8_toUtf16()
446 *toP = to; in utf8_toUtf16()
499 char **toP, const char *toLim) in latin1_toUtf8() argument
507 if (toLim - *toP < 2) in latin1_toUtf8()
509 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
510 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
514 if (*toP == toLim) in latin1_toUtf8()
516 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
524 unsigned short **toP, const unsigned short *toLim) 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()
562 char **toP, const char *toLim) 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()
620 char **toP, const char *toLim) \
632 if (*toP == toLim) { \
636 *(*toP)++ = lo; \
642 if (toLim - *toP < 2) { \
646 *(*toP)++ = ((lo >> 6) | (hi << 2) | UTF8_cval2); \
647 *(*toP)++ = ((lo & 0x3f) | 0x80); \
650 if (toLim - *toP < 3) { \
655 *(*toP)++ = ((hi >> 4) | UTF8_cval3); \
656 *(*toP)++ = (((hi & 0xf) << 2) | (lo >> 6) | 0x80); \
657 *(*toP)++ = ((lo & 0x3f) | 0x80); \
660 if (toLim - *toP < 4) { \
669 *(*toP)++ = ((plane >> 2) | UTF8_cval4); \
670 *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \
673 *(*toP)++ = (((lo & 0x3) << 4) \
677 *(*toP)++ = ((lo2 & 0x3f) | 0x80); \
692 unsigned short **toP, const unsigned short *toLim) \
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)) \
1389 char **toP, const char *toLim) in unknown_toUtf8() argument
1403 if (n > toLim - *toP) in unknown_toUtf8()
1410 if (n > toLim - *toP) in unknown_toUtf8()
1415 *(*toP)++ = *utf8++; in unknown_toUtf8()
1423 unsigned short **toP, const unsigned short *toLim) in unknown_toUtf16() argument
1426 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1436 *(*toP)++ = c; in unknown_toUtf16()
1439 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()