• Home
  • Raw
  • Download

Lines Matching refs:toP

324             char **toP, const char *toLim)  in utf8_toUtf8()  argument
328 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
330 for (fromLim = *fromP + (toLim - *toP); fromLim > *fromP; fromLim--) in utf8_toUtf8()
334 for (to = *toP, from = *fromP; from != fromLim; from++, to++) in utf8_toUtf8()
337 *toP = to; in utf8_toUtf8()
343 unsigned short **toP, const unsigned short *toLim) in utf8_toUtf16() argument
345 unsigned short *to = *toP; in utf8_toUtf16()
379 *toP = to; in utf8_toUtf16()
431 char **toP, const char *toLim) in latin1_toUtf8() argument
439 if (toLim - *toP < 2) in latin1_toUtf8()
441 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
442 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
446 if (*toP == toLim) in latin1_toUtf8()
448 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
456 unsigned short **toP, const unsigned short *toLim) in latin1_toUtf16() argument
458 while (*fromP != fromLim && *toP != toLim) in latin1_toUtf16()
459 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
489 char **toP, const char *toLim) in ascii_toUtf8() argument
491 while (*fromP != fromLim && *toP != toLim) in ascii_toUtf8()
492 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
542 char **toP, const char *toLim) \
553 if (*toP == toLim) { \
557 *(*toP)++ = lo; \
563 if (toLim - *toP < 2) { \
567 *(*toP)++ = ((lo >> 6) | (hi << 2) | UTF8_cval2); \
568 *(*toP)++ = ((lo & 0x3f) | 0x80); \
571 if (toLim - *toP < 3) { \
576 *(*toP)++ = ((hi >> 4) | UTF8_cval3); \
577 *(*toP)++ = (((hi & 0xf) << 2) | (lo >> 6) | 0x80); \
578 *(*toP)++ = ((lo & 0x3f) | 0x80); \
581 if (toLim - *toP < 4) { \
586 *(*toP)++ = ((plane >> 2) | UTF8_cval4); \
587 *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \
590 *(*toP)++ = (((lo & 0x3) << 4) \
594 *(*toP)++ = ((lo2 & 0x3f) | 0x80); \
605 unsigned short **toP, const unsigned short *toLim) \
608 if (fromLim - *fromP > ((toLim - *toP) << 1) \
611 for (; *fromP != fromLim && *toP != toLim; *fromP += 2) \
612 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
1294 char **toP, const char *toLim) in unknown_toUtf8() argument
1308 if (n > toLim - *toP) in unknown_toUtf8()
1315 if (n > toLim - *toP) in unknown_toUtf8()
1320 *(*toP)++ = *utf8++; in unknown_toUtf8()
1328 unsigned short **toP, const unsigned short *toLim) in unknown_toUtf16() argument
1331 while (*fromP != fromLim && *toP != toLim) { in unknown_toUtf16()
1341 *(*toP)++ = c; in unknown_toUtf16()