Lines Matching full:top
371 char **toP, const char *toLim) { in utf8_toUtf8() argument
377 const ptrdiff_t bytesStorable = toLim - *toP; in utf8_toUtf8()
395 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
397 *toP += bytesToCopy; in utf8_toUtf8()
410 unsigned short **toP, const unsigned short *toLim) { in utf8_toUtf16() argument
412 unsigned short *to = *toP; in utf8_toUtf16()
460 *toP = to; in utf8_toUtf16()
508 char **toP, const char *toLim) { in latin1_toUtf8() argument
516 if (toLim - *toP < 2) in latin1_toUtf8()
518 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
519 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
522 if (*toP == toLim) in latin1_toUtf8()
524 *(*toP)++ = *(*fromP)++; in latin1_toUtf8()
531 unsigned short **toP, const unsigned short *toLim) { in latin1_toUtf16() argument
533 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
534 *(*toP)++ = (unsigned char)*(*fromP)++; in latin1_toUtf16()
536 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
566 char **toP, const char *toLim) { in ascii_toUtf8() argument
568 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
569 *(*toP)++ = *(*fromP)++; in ascii_toUtf8()
571 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
628 char **toP, const char *toLim) { \
640 if (*toP == toLim) { \
644 *(*toP)++ = lo; \
655 if (toLim - *toP < 2) { \
659 *(*toP)++ = ((lo >> 6) | (hi << 2) | UTF8_cval2); \
660 *(*toP)++ = ((lo & 0x3f) | 0x80); \
663 if (toLim - *toP < 3) { \
668 *(*toP)++ = ((hi >> 4) | UTF8_cval3); \
669 *(*toP)++ = (((hi & 0xf) << 2) | (lo >> 6) | 0x80); \
670 *(*toP)++ = ((lo & 0x3f) | 0x80); \
676 if (toLim - *toP < 4) { \
685 *(*toP)++ = (char)((plane >> 2) | UTF8_cval4); \
686 *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \
689 *(*toP)++ = (((lo & 0x3) << 4) | ((GET_HI(from) & 0x3) << 2) \
691 *(*toP)++ = ((lo2 & 0x3f) | 0x80); \
705 unsigned short **toP, const unsigned short *toLim) { \
710 if (fromLim - *fromP > ((toLim - *toP) << 1) \
715 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
716 *(*toP)++ = (GET_HI(*fromP) << 8) | GET_LO(*fromP); \
717 if ((*toP == toLim) && (*fromP < fromLim)) \
1354 char **toP, const char *toLim) { in unknown_toUtf8() argument
1367 if (n > toLim - *toP) in unknown_toUtf8()
1373 if (n > toLim - *toP) in unknown_toUtf8()
1377 memcpy(*toP, utf8, n); in unknown_toUtf8()
1378 *toP += n; in unknown_toUtf8()
1384 unsigned short **toP, const unsigned short *toLim) { in unknown_toUtf16() argument
1386 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1394 *(*toP)++ = c; in unknown_toUtf16()
1397 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()