Lines Matching refs:fromLim
330 const char *fromLim = *fromLimRef; in _INTERNAL_trim_to_complete_utf8_characters() local
332 for (; fromLim > from; fromLim--, walked++) { in _INTERNAL_trim_to_complete_utf8_characters()
333 const unsigned char prev = (unsigned char)fromLim[-1]; in _INTERNAL_trim_to_complete_utf8_characters()
337 fromLim += 4 - 1; in _INTERNAL_trim_to_complete_utf8_characters()
345 fromLim += 3 - 1; in _INTERNAL_trim_to_complete_utf8_characters()
353 fromLim += 2 - 1; in _INTERNAL_trim_to_complete_utf8_characters()
363 *fromLimRef = fromLim; in _INTERNAL_trim_to_complete_utf8_characters()
367 utf8_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf8() argument
373 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8()
377 fromLim = *fromP + bytesStorable; in utf8_toUtf8()
383 const char *const fromLimBefore = fromLim; in utf8_toUtf8()
384 _INTERNAL_trim_to_complete_utf8_characters(*fromP, &fromLim); in utf8_toUtf8()
385 if (fromLim < fromLimBefore) { in utf8_toUtf8()
391 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8()
406 utf8_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf16() argument
411 while (from < fromLim && to < toLim) { in utf8_toUtf16()
414 if (fromLim - from < 2) { in utf8_toUtf16()
422 if (fromLim - from < 3) { in utf8_toUtf16()
436 if (fromLim - from < 4) { in utf8_toUtf16()
453 if (from < fromLim) in utf8_toUtf16()
504 latin1_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in latin1_toUtf8() argument
509 if (*fromP == fromLim) in latin1_toUtf8()
527 latin1_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in latin1_toUtf16() argument
530 while (*fromP < fromLim && *toP < toLim) in latin1_toUtf16()
533 if ((*toP == toLim) && (*fromP < fromLim)) in latin1_toUtf16()
562 ascii_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in ascii_toUtf8() argument
565 while (*fromP < fromLim && *toP < toLim) in ascii_toUtf8()
568 if ((*toP == toLim) && (*fromP < fromLim)) in ascii_toUtf8()
624 const ENCODING *enc, const char **fromP, const char *fromLim, \
628 fromLim = from + (((fromLim - from) >> 1) << 1); /* shrink to even */ \
629 for (; from < fromLim; from += 2) { \
677 if (fromLim - from < 4) { \
693 if (from < fromLim) \
701 const ENCODING *enc, const char **fromP, const char *fromLim, \
705 fromLim = *fromP + (((fromLim - *fromP) >> 1) << 1); /* shrink to even */ \
707 if (fromLim - *fromP > ((toLim - *toP) << 1) \
708 && (GET_HI(fromLim - 2) & 0xF8) == 0xD8) { \
709 fromLim -= 2; \
712 for (; *fromP < fromLim && *toP < toLim; *fromP += 2) \
714 if ((*toP == toLim) && (*fromP < fromLim)) \
1350 unknown_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in unknown_toUtf8() argument
1357 if (*fromP == fromLim) in unknown_toUtf8()
1380 unknown_toUtf16(const ENCODING *enc, const char **fromP, const char *fromLim, in unknown_toUtf16() argument
1383 while (*fromP < fromLim && *toP < toLim) { in unknown_toUtf16()
1394 if ((*toP == toLim) && (*fromP < fromLim)) in unknown_toUtf16()