Lines Matching refs:fromLim

333   const char *fromLim = *fromLimRef;  in _INTERNAL_trim_to_complete_utf8_characters()  local
335 for (; fromLim > from; fromLim--, walked++) { in _INTERNAL_trim_to_complete_utf8_characters()
336 const unsigned char prev = (unsigned char)fromLim[-1]; in _INTERNAL_trim_to_complete_utf8_characters()
340 fromLim += 4 - 1; in _INTERNAL_trim_to_complete_utf8_characters()
348 fromLim += 3 - 1; in _INTERNAL_trim_to_complete_utf8_characters()
356 fromLim += 2 - 1; in _INTERNAL_trim_to_complete_utf8_characters()
366 *fromLimRef = fromLim; in _INTERNAL_trim_to_complete_utf8_characters()
370 utf8_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf8() argument
376 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8()
380 fromLim = *fromP + bytesStorable; in utf8_toUtf8()
386 const char *const fromLimBefore = fromLim; in utf8_toUtf8()
387 _INTERNAL_trim_to_complete_utf8_characters(*fromP, &fromLim); in utf8_toUtf8()
388 if (fromLim < fromLimBefore) { in utf8_toUtf8()
394 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8()
409 utf8_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf16() argument
414 while (from < fromLim && to < toLim) { in utf8_toUtf16()
417 if (fromLim - from < 2) { in utf8_toUtf16()
425 if (fromLim - from < 3) { in utf8_toUtf16()
439 if (fromLim - from < 4) { in utf8_toUtf16()
456 if (from < fromLim) in utf8_toUtf16()
507 latin1_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in latin1_toUtf8() argument
512 if (*fromP == fromLim) in latin1_toUtf8()
530 latin1_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in latin1_toUtf16() argument
533 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
536 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
565 ascii_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in ascii_toUtf8() argument
568 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
571 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
627 const ENCODING *enc, const char **fromP, const char *fromLim, \
631 fromLim = from + (((fromLim - from) >> 1) << 1); /* shrink to even */ \
632 for (; from < fromLim; from += 2) { \
680 if (fromLim - from < 4) { \
696 if (from < fromLim) \
704 const ENCODING *enc, const char **fromP, const char *fromLim, \
708 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
710 if (fromLim - *fromP > ((toLim - *toP) << 1) \
711 && (GET_HI(fromLim - 2) & 0xF8) == 0xD8) { \
712 fromLim -= 2; \
715 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
717 if ((*toP == toLim) && (*fromP < fromLim)) \
1353 unknown_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1360 if (*fromP == fromLim) in unknown_toUtf8()
1383 unknown_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1386 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1397 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()