Lines Matching refs:frm_nxt
1466 const intern_type* frm, const intern_type*, const intern_type*& frm_nxt, in do_out() argument
1469 frm_nxt = frm; in do_out()
1476 const extern_type* frm, const extern_type*, const extern_type*& frm_nxt, in do_in() argument
1479 frm_nxt = frm; in do_in()
1546 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
1556 for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt) in do_out()
1561 size_t n = wcsnrtombs_l(to, &frm_nxt, static_cast<size_t>(fend-frm), in do_out()
1564 size_t n = __wcsnrtombs_l(to, &frm_nxt, fend-frm, to_end-to, &st, __l); in do_out()
1569 for (to_nxt = to; frm != frm_nxt; ++frm) in do_out()
1580 frm_nxt = frm; in do_out()
1603 ++frm_nxt; in do_out()
1605 for (fend = frm_nxt; fend != frm_end; ++fend) in do_out()
1610 return frm_nxt == frm_end ? ok : partial; in do_out()
1615 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
1625 for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt) in do_in()
1630 size_t n = mbsnrtowcs_l(to, &frm_nxt, static_cast<size_t>(fend-frm), in do_in()
1633 size_t n = __mbsnrtowcs_l(to, &frm_nxt, fend-frm, to_end-to, &st, __l); in do_in()
1638 for (to_nxt = to; frm != frm_nxt; ++to_nxt) in do_in()
1652 frm_nxt = frm; in do_in()
1655 frm_nxt = frm; in do_in()
1662 frm_nxt = frm; in do_in()
1663 return frm_nxt == frm_end ? ok : partial; in do_in()
1674 n = mbrtowc_l(to_nxt, frm_nxt, 1, &st, __l); in do_in()
1676 n = __mbrtowc_l(to_nxt, frm_nxt, 1, &st, __l); in do_in()
1681 ++frm_nxt; in do_in()
1683 for (fend = frm_nxt; fend != frm_end; ++fend) in do_in()
1688 return frm_nxt == frm_end ? ok : partial; in do_in()
1796 utf16_to_utf8(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in utf16_to_utf8() argument
1800 frm_nxt = frm; in utf16_to_utf8()
1810 for (; frm_nxt < frm_end; ++frm_nxt) in utf16_to_utf8()
1812 uint16_t wc1 = *frm_nxt; in utf16_to_utf8()
1838 if (frm_end-frm_nxt < 2) in utf16_to_utf8()
1840 uint16_t wc2 = frm_nxt[1]; in utf16_to_utf8()
1848 ++frm_nxt; in utf16_to_utf8()
1873 utf16_to_utf8(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in utf16_to_utf8() argument
1877 frm_nxt = frm; in utf16_to_utf8()
1887 for (; frm_nxt < frm_end; ++frm_nxt) in utf16_to_utf8()
1889 uint16_t wc1 = static_cast<uint16_t>(*frm_nxt); in utf16_to_utf8()
1915 if (frm_end-frm_nxt < 2) in utf16_to_utf8()
1917 uint16_t wc2 = static_cast<uint16_t>(frm_nxt[1]); in utf16_to_utf8()
1925 ++frm_nxt; in utf16_to_utf8()
1950 utf8_to_utf16(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_utf16() argument
1954 frm_nxt = frm; in utf8_to_utf16()
1958 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_utf16()
1959 frm_nxt[2] == 0xBF) in utf8_to_utf16()
1960 frm_nxt += 3; in utf8_to_utf16()
1962 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_utf16()
1964 uint8_t c1 = *frm_nxt; in utf8_to_utf16()
1970 ++frm_nxt; in utf8_to_utf16()
1978 if (frm_end-frm_nxt < 2) in utf8_to_utf16()
1980 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
1987 frm_nxt += 2; in utf8_to_utf16()
1991 if (frm_end-frm_nxt < 3) in utf8_to_utf16()
1993 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
1994 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2018 frm_nxt += 3; in utf8_to_utf16()
2022 if (frm_end-frm_nxt < 4) in utf8_to_utf16()
2024 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2025 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2026 uint8_t c4 = frm_nxt[3]; in utf8_to_utf16()
2059 frm_nxt += 4; in utf8_to_utf16()
2066 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_utf16()
2071 utf8_to_utf16(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_utf16() argument
2075 frm_nxt = frm; in utf8_to_utf16()
2079 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_utf16()
2080 frm_nxt[2] == 0xBF) in utf8_to_utf16()
2081 frm_nxt += 3; in utf8_to_utf16()
2083 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_utf16()
2085 uint8_t c1 = *frm_nxt; in utf8_to_utf16()
2091 ++frm_nxt; in utf8_to_utf16()
2099 if (frm_end-frm_nxt < 2) in utf8_to_utf16()
2101 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2108 frm_nxt += 2; in utf8_to_utf16()
2112 if (frm_end-frm_nxt < 3) in utf8_to_utf16()
2114 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2115 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2139 frm_nxt += 3; in utf8_to_utf16()
2143 if (frm_end-frm_nxt < 4) in utf8_to_utf16()
2145 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2146 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2147 uint8_t c4 = frm_nxt[3]; in utf8_to_utf16()
2180 frm_nxt += 4; in utf8_to_utf16()
2187 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_utf16()
2196 const uint8_t* frm_nxt = frm; in utf8_to_utf16_length() local
2199 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_utf16_length()
2200 frm_nxt[2] == 0xBF) in utf8_to_utf16_length()
2201 frm_nxt += 3; in utf8_to_utf16_length()
2203 for (size_t nchar16_t = 0; frm_nxt < frm_end && nchar16_t < mx; ++nchar16_t) in utf8_to_utf16_length()
2205 uint8_t c1 = *frm_nxt; in utf8_to_utf16_length()
2210 ++frm_nxt; in utf8_to_utf16_length()
2218 if ((frm_end-frm_nxt < 2) || (frm_nxt[1] & 0xC0) != 0x80) in utf8_to_utf16_length()
2220 uint16_t t = static_cast<uint16_t>(((c1 & 0x1F) << 6) | (frm_nxt[1] & 0x3F)); in utf8_to_utf16_length()
2223 frm_nxt += 2; in utf8_to_utf16_length()
2227 if (frm_end-frm_nxt < 3) in utf8_to_utf16_length()
2229 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16_length()
2230 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16_length()
2235 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2239 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2243 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2250 frm_nxt += 3; in utf8_to_utf16_length()
2254 if (frm_end-frm_nxt < 4 || mx-nchar16_t < 2) in utf8_to_utf16_length()
2256 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16_length()
2257 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16_length()
2258 uint8_t c4 = frm_nxt[3]; in utf8_to_utf16_length()
2263 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2267 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2271 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2281 frm_nxt += 4; in utf8_to_utf16_length()
2288 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2293 ucs4_to_utf8(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in ucs4_to_utf8() argument
2297 frm_nxt = frm; in ucs4_to_utf8()
2307 for (; frm_nxt < frm_end; ++frm_nxt) in ucs4_to_utf8()
2309 uint32_t wc = *frm_nxt; in ucs4_to_utf8()
2348 utf8_to_ucs4(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_ucs4() argument
2352 frm_nxt = frm; in utf8_to_ucs4()
2356 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs4()
2357 frm_nxt[2] == 0xBF) in utf8_to_ucs4()
2358 frm_nxt += 3; in utf8_to_ucs4()
2360 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_ucs4()
2362 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs4()
2368 ++frm_nxt; in utf8_to_ucs4()
2376 if (frm_end-frm_nxt < 2) in utf8_to_ucs4()
2378 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4()
2386 frm_nxt += 2; in utf8_to_ucs4()
2390 if (frm_end-frm_nxt < 3) in utf8_to_ucs4()
2392 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4()
2393 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4()
2417 frm_nxt += 3; in utf8_to_ucs4()
2421 if (frm_end-frm_nxt < 4) in utf8_to_ucs4()
2423 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4()
2424 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4()
2425 uint8_t c4 = frm_nxt[3]; in utf8_to_ucs4()
2450 frm_nxt += 4; in utf8_to_ucs4()
2457 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_ucs4()
2466 const uint8_t* frm_nxt = frm; in utf8_to_ucs4_length() local
2469 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs4_length()
2470 frm_nxt[2] == 0xBF) in utf8_to_ucs4_length()
2471 frm_nxt += 3; in utf8_to_ucs4_length()
2473 for (size_t nchar32_t = 0; frm_nxt < frm_end && nchar32_t < mx; ++nchar32_t) in utf8_to_ucs4_length()
2475 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs4_length()
2480 ++frm_nxt; in utf8_to_ucs4_length()
2488 if ((frm_end-frm_nxt < 2) || ((frm_nxt[1] & 0xC0) != 0x80)) in utf8_to_ucs4_length()
2490 if ((((c1 & 0x1Fu) << 6) | (frm_nxt[1] & 0x3Fu)) > Maxcode) in utf8_to_ucs4_length()
2492 frm_nxt += 2; in utf8_to_ucs4_length()
2496 if (frm_end-frm_nxt < 3) in utf8_to_ucs4_length()
2498 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4_length()
2499 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4_length()
2504 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2508 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2512 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2519 frm_nxt += 3; in utf8_to_ucs4_length()
2523 if (frm_end-frm_nxt < 4) in utf8_to_ucs4_length()
2525 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4_length()
2526 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4_length()
2527 uint8_t c4 = frm_nxt[3]; in utf8_to_ucs4_length()
2532 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2536 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2540 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2548 frm_nxt += 4; in utf8_to_ucs4_length()
2555 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2560 ucs2_to_utf8(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in ucs2_to_utf8() argument
2564 frm_nxt = frm; in ucs2_to_utf8()
2574 for (; frm_nxt < frm_end; ++frm_nxt) in ucs2_to_utf8()
2576 uint16_t wc = *frm_nxt; in ucs2_to_utf8()
2606 utf8_to_ucs2(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_ucs2() argument
2610 frm_nxt = frm; in utf8_to_ucs2()
2614 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs2()
2615 frm_nxt[2] == 0xBF) in utf8_to_ucs2()
2616 frm_nxt += 3; in utf8_to_ucs2()
2618 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_ucs2()
2620 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs2()
2626 ++frm_nxt; in utf8_to_ucs2()
2634 if (frm_end-frm_nxt < 2) in utf8_to_ucs2()
2636 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs2()
2644 frm_nxt += 2; in utf8_to_ucs2()
2648 if (frm_end-frm_nxt < 3) in utf8_to_ucs2()
2650 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs2()
2651 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs2()
2675 frm_nxt += 3; in utf8_to_ucs2()
2682 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_ucs2()
2691 const uint8_t* frm_nxt = frm; in utf8_to_ucs2_length() local
2694 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs2_length()
2695 frm_nxt[2] == 0xBF) in utf8_to_ucs2_length()
2696 frm_nxt += 3; in utf8_to_ucs2_length()
2698 for (size_t nchar32_t = 0; frm_nxt < frm_end && nchar32_t < mx; ++nchar32_t) in utf8_to_ucs2_length()
2700 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs2_length()
2705 ++frm_nxt; in utf8_to_ucs2_length()
2713 if ((frm_end-frm_nxt < 2) || ((frm_nxt[1] & 0xC0) != 0x80)) in utf8_to_ucs2_length()
2715 if ((((c1 & 0x1Fu) << 6) | (frm_nxt[1] & 0x3Fu)) > Maxcode) in utf8_to_ucs2_length()
2717 frm_nxt += 2; in utf8_to_ucs2_length()
2721 if (frm_end-frm_nxt < 3) in utf8_to_ucs2_length()
2723 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs2_length()
2724 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs2_length()
2729 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2733 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2737 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2744 frm_nxt += 3; in utf8_to_ucs2_length()
2751 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2756 ucs4_to_utf16be(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in ucs4_to_utf16be() argument
2760 frm_nxt = frm; in ucs4_to_utf16be()
2769 for (; frm_nxt < frm_end; ++frm_nxt) in ucs4_to_utf16be()
2771 uint32_t wc = *frm_nxt; in ucs4_to_utf16be()
2801 utf16be_to_ucs4(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16be_to_ucs4() argument
2805 frm_nxt = frm; in utf16be_to_ucs4()
2809 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs4()
2810 frm_nxt += 2; in utf16be_to_ucs4()
2812 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16be_to_ucs4()
2814 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs4()
2822 frm_nxt += 2; in utf16be_to_ucs4()
2826 if (frm_end-frm_nxt < 4) in utf16be_to_ucs4()
2828 uint16_t c2 = static_cast<uint16_t>(frm_nxt[2] << 8 | frm_nxt[3]); in utf16be_to_ucs4()
2838 frm_nxt += 4; in utf16be_to_ucs4()
2841 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16be_to_ucs4()
2850 const uint8_t* frm_nxt = frm; in utf16be_to_ucs4_length() local
2853 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs4_length()
2854 frm_nxt += 2; in utf16be_to_ucs4_length()
2856 for (size_t nchar32_t = 0; frm_nxt < frm_end - 1 && nchar32_t < mx; ++nchar32_t) in utf16be_to_ucs4_length()
2858 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs4_length()
2865 frm_nxt += 2; in utf16be_to_ucs4_length()
2869 if (frm_end-frm_nxt < 4) in utf16be_to_ucs4_length()
2871 uint16_t c2 = static_cast<uint16_t>(frm_nxt[2] << 8 | frm_nxt[3]); in utf16be_to_ucs4_length()
2880 frm_nxt += 4; in utf16be_to_ucs4_length()
2883 return static_cast<int>(frm_nxt - frm); in utf16be_to_ucs4_length()
2888 ucs4_to_utf16le(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in ucs4_to_utf16le() argument
2892 frm_nxt = frm; in ucs4_to_utf16le()
2901 for (; frm_nxt < frm_end; ++frm_nxt) in ucs4_to_utf16le()
2903 uint32_t wc = *frm_nxt; in ucs4_to_utf16le()
2933 utf16le_to_ucs4(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16le_to_ucs4() argument
2937 frm_nxt = frm; in utf16le_to_ucs4()
2941 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs4()
2942 frm_nxt += 2; in utf16le_to_ucs4()
2944 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16le_to_ucs4()
2946 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs4()
2954 frm_nxt += 2; in utf16le_to_ucs4()
2958 if (frm_end-frm_nxt < 4) in utf16le_to_ucs4()
2960 uint16_t c2 = static_cast<uint16_t>(frm_nxt[3] << 8 | frm_nxt[2]); in utf16le_to_ucs4()
2970 frm_nxt += 4; in utf16le_to_ucs4()
2973 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16le_to_ucs4()
2982 const uint8_t* frm_nxt = frm; in utf16le_to_ucs4_length() local
2985 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs4_length()
2986 frm_nxt += 2; in utf16le_to_ucs4_length()
2988 for (size_t nchar32_t = 0; frm_nxt < frm_end - 1 && nchar32_t < mx; ++nchar32_t) in utf16le_to_ucs4_length()
2990 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs4_length()
2997 frm_nxt += 2; in utf16le_to_ucs4_length()
3001 if (frm_end-frm_nxt < 4) in utf16le_to_ucs4_length()
3003 uint16_t c2 = static_cast<uint16_t>(frm_nxt[3] << 8 | frm_nxt[2]); in utf16le_to_ucs4_length()
3012 frm_nxt += 4; in utf16le_to_ucs4_length()
3015 return static_cast<int>(frm_nxt - frm); in utf16le_to_ucs4_length()
3020 ucs2_to_utf16be(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in ucs2_to_utf16be() argument
3024 frm_nxt = frm; in ucs2_to_utf16be()
3033 for (; frm_nxt < frm_end; ++frm_nxt) in ucs2_to_utf16be()
3035 uint16_t wc = *frm_nxt; in ucs2_to_utf16be()
3048 utf16be_to_ucs2(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16be_to_ucs2() argument
3052 frm_nxt = frm; in utf16be_to_ucs2()
3056 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs2()
3057 frm_nxt += 2; in utf16be_to_ucs2()
3059 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16be_to_ucs2()
3061 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs2()
3065 frm_nxt += 2; in utf16be_to_ucs2()
3067 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16be_to_ucs2()
3076 const uint8_t* frm_nxt = frm; in utf16be_to_ucs2_length() local
3079 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs2_length()
3080 frm_nxt += 2; in utf16be_to_ucs2_length()
3082 for (size_t nchar16_t = 0; frm_nxt < frm_end - 1 && nchar16_t < mx; ++nchar16_t) in utf16be_to_ucs2_length()
3084 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs2_length()
3087 frm_nxt += 2; in utf16be_to_ucs2_length()
3089 return static_cast<int>(frm_nxt - frm); in utf16be_to_ucs2_length()
3094 ucs2_to_utf16le(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in ucs2_to_utf16le() argument
3098 frm_nxt = frm; in ucs2_to_utf16le()
3107 for (; frm_nxt < frm_end; ++frm_nxt) in ucs2_to_utf16le()
3109 uint16_t wc = *frm_nxt; in ucs2_to_utf16le()
3122 utf16le_to_ucs2(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16le_to_ucs2() argument
3126 frm_nxt = frm; in utf16le_to_ucs2()
3130 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs2()
3131 frm_nxt += 2; in utf16le_to_ucs2()
3133 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16le_to_ucs2()
3135 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs2()
3139 frm_nxt += 2; in utf16le_to_ucs2()
3141 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16le_to_ucs2()
3150 const uint8_t* frm_nxt = frm; in utf16le_to_ucs2_length() local
3151 frm_nxt = frm; in utf16le_to_ucs2_length()
3154 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs2_length()
3155 frm_nxt += 2; in utf16le_to_ucs2_length()
3157 for (size_t nchar16_t = 0; frm_nxt < frm_end - 1 && nchar16_t < mx; ++nchar16_t) in utf16le_to_ucs2_length()
3159 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs2_length()
3162 frm_nxt += 2; in utf16le_to_ucs2_length()
3164 return static_cast<int>(frm_nxt - frm); in utf16le_to_ucs2_length()
3177 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3187 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3194 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3204 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3254 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3264 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3271 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3281 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3325 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3347 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3354 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3373 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3419 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3430 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3437 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3448 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3494 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3505 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3512 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3523 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3569 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3580 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3587 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3598 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3644 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3655 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3662 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3673 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3719 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3730 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3737 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3748 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3794 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3805 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3812 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3823 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3869 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3880 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3887 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3898 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3944 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3955 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3962 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3973 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
4019 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
4030 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
4037 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
4048 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
4094 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
4105 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
4112 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
4123 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
4169 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
4180 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
4187 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
4198 frm_nxt = frm + (_frm_nxt - _frm); in do_in()