Lines Matching refs:frm_nxt
1453 const intern_type* frm, const intern_type*, const intern_type*& frm_nxt, in do_out() argument
1456 frm_nxt = frm; in do_out()
1463 const extern_type* frm, const extern_type*, const extern_type*& frm_nxt, in do_in() argument
1466 frm_nxt = frm; in do_in()
1533 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
1543 for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt) in do_out()
1548 size_t n = wcsnrtombs_l(to, &frm_nxt, static_cast<size_t>(fend-frm), in do_out()
1551 size_t n = __wcsnrtombs_l(to, &frm_nxt, fend-frm, to_end-to, &st, __l); in do_out()
1556 for (to_nxt = to; frm != frm_nxt; ++frm) in do_out()
1567 frm_nxt = frm; in do_out()
1590 ++frm_nxt; in do_out()
1592 for (fend = frm_nxt; fend != frm_end; ++fend) in do_out()
1597 return frm_nxt == frm_end ? ok : partial; in do_out()
1602 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
1612 for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt) in do_in()
1617 size_t n = mbsnrtowcs_l(to, &frm_nxt, static_cast<size_t>(fend-frm), in do_in()
1620 size_t n = __mbsnrtowcs_l(to, &frm_nxt, fend-frm, to_end-to, &st, __l); in do_in()
1625 for (to_nxt = to; frm != frm_nxt; ++to_nxt) in do_in()
1639 frm_nxt = frm; in do_in()
1642 frm_nxt = frm; in do_in()
1649 frm_nxt = frm; in do_in()
1650 return frm_nxt == frm_end ? ok : partial; in do_in()
1661 n = mbrtowc_l(to_nxt, frm_nxt, 1, &st, __l); in do_in()
1663 n = __mbrtowc_l(to_nxt, frm_nxt, 1, &st, __l); in do_in()
1668 ++frm_nxt; in do_in()
1670 for (fend = frm_nxt; fend != frm_end; ++fend) in do_in()
1675 return frm_nxt == frm_end ? ok : partial; in do_in()
1782 utf16_to_utf8(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in utf16_to_utf8() argument
1786 frm_nxt = frm; in utf16_to_utf8()
1796 for (; frm_nxt < frm_end; ++frm_nxt) in utf16_to_utf8()
1798 uint16_t wc1 = *frm_nxt; in utf16_to_utf8()
1824 if (frm_end-frm_nxt < 2) in utf16_to_utf8()
1826 uint16_t wc2 = frm_nxt[1]; in utf16_to_utf8()
1834 ++frm_nxt; in utf16_to_utf8()
1859 utf16_to_utf8(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in utf16_to_utf8() argument
1863 frm_nxt = frm; in utf16_to_utf8()
1873 for (; frm_nxt < frm_end; ++frm_nxt) in utf16_to_utf8()
1875 uint16_t wc1 = static_cast<uint16_t>(*frm_nxt); in utf16_to_utf8()
1901 if (frm_end-frm_nxt < 2) in utf16_to_utf8()
1903 uint16_t wc2 = static_cast<uint16_t>(frm_nxt[1]); in utf16_to_utf8()
1911 ++frm_nxt; in utf16_to_utf8()
1936 utf8_to_utf16(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_utf16() argument
1940 frm_nxt = frm; in utf8_to_utf16()
1944 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_utf16()
1945 frm_nxt[2] == 0xBF) in utf8_to_utf16()
1946 frm_nxt += 3; in utf8_to_utf16()
1948 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_utf16()
1950 uint8_t c1 = *frm_nxt; in utf8_to_utf16()
1956 ++frm_nxt; in utf8_to_utf16()
1964 if (frm_end-frm_nxt < 2) in utf8_to_utf16()
1966 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
1973 frm_nxt += 2; in utf8_to_utf16()
1977 if (frm_end-frm_nxt < 3) in utf8_to_utf16()
1979 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
1980 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2004 frm_nxt += 3; in utf8_to_utf16()
2008 if (frm_end-frm_nxt < 4) in utf8_to_utf16()
2010 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2011 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2012 uint8_t c4 = frm_nxt[3]; in utf8_to_utf16()
2045 frm_nxt += 4; in utf8_to_utf16()
2052 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_utf16()
2057 utf8_to_utf16(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_utf16() argument
2061 frm_nxt = frm; in utf8_to_utf16()
2065 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_utf16()
2066 frm_nxt[2] == 0xBF) in utf8_to_utf16()
2067 frm_nxt += 3; in utf8_to_utf16()
2069 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_utf16()
2071 uint8_t c1 = *frm_nxt; in utf8_to_utf16()
2077 ++frm_nxt; in utf8_to_utf16()
2085 if (frm_end-frm_nxt < 2) in utf8_to_utf16()
2087 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2094 frm_nxt += 2; in utf8_to_utf16()
2098 if (frm_end-frm_nxt < 3) in utf8_to_utf16()
2100 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2101 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2125 frm_nxt += 3; in utf8_to_utf16()
2129 if (frm_end-frm_nxt < 4) in utf8_to_utf16()
2131 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16()
2132 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16()
2133 uint8_t c4 = frm_nxt[3]; in utf8_to_utf16()
2166 frm_nxt += 4; in utf8_to_utf16()
2173 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_utf16()
2182 const uint8_t* frm_nxt = frm; in utf8_to_utf16_length() local
2185 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_utf16_length()
2186 frm_nxt[2] == 0xBF) in utf8_to_utf16_length()
2187 frm_nxt += 3; in utf8_to_utf16_length()
2189 for (size_t nchar16_t = 0; frm_nxt < frm_end && nchar16_t < mx; ++nchar16_t) in utf8_to_utf16_length()
2191 uint8_t c1 = *frm_nxt; in utf8_to_utf16_length()
2196 ++frm_nxt; in utf8_to_utf16_length()
2204 if ((frm_end-frm_nxt < 2) || (frm_nxt[1] & 0xC0) != 0x80) in utf8_to_utf16_length()
2206 uint16_t t = static_cast<uint16_t>(((c1 & 0x1F) << 6) | (frm_nxt[1] & 0x3F)); in utf8_to_utf16_length()
2209 frm_nxt += 2; in utf8_to_utf16_length()
2213 if (frm_end-frm_nxt < 3) in utf8_to_utf16_length()
2215 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16_length()
2216 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16_length()
2221 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2225 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2229 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2236 frm_nxt += 3; in utf8_to_utf16_length()
2240 if (frm_end-frm_nxt < 4 || mx-nchar16_t < 2) in utf8_to_utf16_length()
2242 uint8_t c2 = frm_nxt[1]; in utf8_to_utf16_length()
2243 uint8_t c3 = frm_nxt[2]; in utf8_to_utf16_length()
2244 uint8_t c4 = frm_nxt[3]; in utf8_to_utf16_length()
2249 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2253 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2257 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2267 frm_nxt += 4; in utf8_to_utf16_length()
2274 return static_cast<int>(frm_nxt - frm); in utf8_to_utf16_length()
2279 ucs4_to_utf8(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in ucs4_to_utf8() argument
2283 frm_nxt = frm; in ucs4_to_utf8()
2293 for (; frm_nxt < frm_end; ++frm_nxt) in ucs4_to_utf8()
2295 uint32_t wc = *frm_nxt; in ucs4_to_utf8()
2334 utf8_to_ucs4(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_ucs4() argument
2338 frm_nxt = frm; in utf8_to_ucs4()
2342 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs4()
2343 frm_nxt[2] == 0xBF) in utf8_to_ucs4()
2344 frm_nxt += 3; in utf8_to_ucs4()
2346 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_ucs4()
2348 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs4()
2354 ++frm_nxt; in utf8_to_ucs4()
2362 if (frm_end-frm_nxt < 2) in utf8_to_ucs4()
2364 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4()
2372 frm_nxt += 2; in utf8_to_ucs4()
2376 if (frm_end-frm_nxt < 3) in utf8_to_ucs4()
2378 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4()
2379 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4()
2403 frm_nxt += 3; in utf8_to_ucs4()
2407 if (frm_end-frm_nxt < 4) in utf8_to_ucs4()
2409 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4()
2410 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4()
2411 uint8_t c4 = frm_nxt[3]; in utf8_to_ucs4()
2436 frm_nxt += 4; in utf8_to_ucs4()
2443 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_ucs4()
2452 const uint8_t* frm_nxt = frm; in utf8_to_ucs4_length() local
2455 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs4_length()
2456 frm_nxt[2] == 0xBF) in utf8_to_ucs4_length()
2457 frm_nxt += 3; in utf8_to_ucs4_length()
2459 for (size_t nchar32_t = 0; frm_nxt < frm_end && nchar32_t < mx; ++nchar32_t) in utf8_to_ucs4_length()
2461 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs4_length()
2466 ++frm_nxt; in utf8_to_ucs4_length()
2474 if ((frm_end-frm_nxt < 2) || ((frm_nxt[1] & 0xC0) != 0x80)) in utf8_to_ucs4_length()
2476 if ((((c1 & 0x1Fu) << 6) | (frm_nxt[1] & 0x3Fu)) > Maxcode) in utf8_to_ucs4_length()
2478 frm_nxt += 2; in utf8_to_ucs4_length()
2482 if (frm_end-frm_nxt < 3) in utf8_to_ucs4_length()
2484 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4_length()
2485 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4_length()
2490 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2494 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2498 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2505 frm_nxt += 3; in utf8_to_ucs4_length()
2509 if (frm_end-frm_nxt < 4) in utf8_to_ucs4_length()
2511 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs4_length()
2512 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs4_length()
2513 uint8_t c4 = frm_nxt[3]; in utf8_to_ucs4_length()
2518 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2522 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2526 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2534 frm_nxt += 4; in utf8_to_ucs4_length()
2541 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs4_length()
2546 ucs2_to_utf8(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in ucs2_to_utf8() argument
2550 frm_nxt = frm; in ucs2_to_utf8()
2560 for (; frm_nxt < frm_end; ++frm_nxt) in ucs2_to_utf8()
2562 uint16_t wc = *frm_nxt; in ucs2_to_utf8()
2592 utf8_to_ucs2(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf8_to_ucs2() argument
2596 frm_nxt = frm; in utf8_to_ucs2()
2600 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs2()
2601 frm_nxt[2] == 0xBF) in utf8_to_ucs2()
2602 frm_nxt += 3; in utf8_to_ucs2()
2604 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) in utf8_to_ucs2()
2606 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs2()
2612 ++frm_nxt; in utf8_to_ucs2()
2620 if (frm_end-frm_nxt < 2) in utf8_to_ucs2()
2622 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs2()
2630 frm_nxt += 2; in utf8_to_ucs2()
2634 if (frm_end-frm_nxt < 3) in utf8_to_ucs2()
2636 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs2()
2637 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs2()
2661 frm_nxt += 3; in utf8_to_ucs2()
2668 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf8_to_ucs2()
2677 const uint8_t* frm_nxt = frm; in utf8_to_ucs2_length() local
2680 if (frm_end-frm_nxt >= 3 && frm_nxt[0] == 0xEF && frm_nxt[1] == 0xBB && in utf8_to_ucs2_length()
2681 frm_nxt[2] == 0xBF) in utf8_to_ucs2_length()
2682 frm_nxt += 3; in utf8_to_ucs2_length()
2684 for (size_t nchar32_t = 0; frm_nxt < frm_end && nchar32_t < mx; ++nchar32_t) in utf8_to_ucs2_length()
2686 uint8_t c1 = static_cast<uint8_t>(*frm_nxt); in utf8_to_ucs2_length()
2691 ++frm_nxt; in utf8_to_ucs2_length()
2699 if ((frm_end-frm_nxt < 2) || ((frm_nxt[1] & 0xC0) != 0x80)) in utf8_to_ucs2_length()
2701 if ((((c1 & 0x1Fu) << 6) | (frm_nxt[1] & 0x3Fu)) > Maxcode) in utf8_to_ucs2_length()
2703 frm_nxt += 2; in utf8_to_ucs2_length()
2707 if (frm_end-frm_nxt < 3) in utf8_to_ucs2_length()
2709 uint8_t c2 = frm_nxt[1]; in utf8_to_ucs2_length()
2710 uint8_t c3 = frm_nxt[2]; in utf8_to_ucs2_length()
2715 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2719 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2723 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2730 frm_nxt += 3; in utf8_to_ucs2_length()
2737 return static_cast<int>(frm_nxt - frm); in utf8_to_ucs2_length()
2742 ucs4_to_utf16be(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in ucs4_to_utf16be() argument
2746 frm_nxt = frm; in ucs4_to_utf16be()
2755 for (; frm_nxt < frm_end; ++frm_nxt) in ucs4_to_utf16be()
2757 uint32_t wc = *frm_nxt; in ucs4_to_utf16be()
2787 utf16be_to_ucs4(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16be_to_ucs4() argument
2791 frm_nxt = frm; in utf16be_to_ucs4()
2795 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs4()
2796 frm_nxt += 2; in utf16be_to_ucs4()
2798 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16be_to_ucs4()
2800 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs4()
2808 frm_nxt += 2; in utf16be_to_ucs4()
2812 if (frm_end-frm_nxt < 4) in utf16be_to_ucs4()
2814 uint16_t c2 = static_cast<uint16_t>(frm_nxt[2] << 8 | frm_nxt[3]); in utf16be_to_ucs4()
2824 frm_nxt += 4; in utf16be_to_ucs4()
2827 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16be_to_ucs4()
2836 const uint8_t* frm_nxt = frm; in utf16be_to_ucs4_length() local
2839 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs4_length()
2840 frm_nxt += 2; in utf16be_to_ucs4_length()
2842 for (size_t nchar32_t = 0; frm_nxt < frm_end - 1 && nchar32_t < mx; ++nchar32_t) in utf16be_to_ucs4_length()
2844 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs4_length()
2851 frm_nxt += 2; in utf16be_to_ucs4_length()
2855 if (frm_end-frm_nxt < 4) in utf16be_to_ucs4_length()
2857 uint16_t c2 = static_cast<uint16_t>(frm_nxt[2] << 8 | frm_nxt[3]); in utf16be_to_ucs4_length()
2866 frm_nxt += 4; in utf16be_to_ucs4_length()
2869 return static_cast<int>(frm_nxt - frm); in utf16be_to_ucs4_length()
2874 ucs4_to_utf16le(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& frm_nxt, in ucs4_to_utf16le() argument
2878 frm_nxt = frm; in ucs4_to_utf16le()
2887 for (; frm_nxt < frm_end; ++frm_nxt) in ucs4_to_utf16le()
2889 uint32_t wc = *frm_nxt; in ucs4_to_utf16le()
2919 utf16le_to_ucs4(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16le_to_ucs4() argument
2923 frm_nxt = frm; in utf16le_to_ucs4()
2927 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs4()
2928 frm_nxt += 2; in utf16le_to_ucs4()
2930 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16le_to_ucs4()
2932 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs4()
2940 frm_nxt += 2; in utf16le_to_ucs4()
2944 if (frm_end-frm_nxt < 4) in utf16le_to_ucs4()
2946 uint16_t c2 = static_cast<uint16_t>(frm_nxt[3] << 8 | frm_nxt[2]); in utf16le_to_ucs4()
2956 frm_nxt += 4; in utf16le_to_ucs4()
2959 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16le_to_ucs4()
2968 const uint8_t* frm_nxt = frm; in utf16le_to_ucs4_length() local
2971 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs4_length()
2972 frm_nxt += 2; in utf16le_to_ucs4_length()
2974 for (size_t nchar32_t = 0; frm_nxt < frm_end - 1 && nchar32_t < mx; ++nchar32_t) in utf16le_to_ucs4_length()
2976 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs4_length()
2983 frm_nxt += 2; in utf16le_to_ucs4_length()
2987 if (frm_end-frm_nxt < 4) in utf16le_to_ucs4_length()
2989 uint16_t c2 = static_cast<uint16_t>(frm_nxt[3] << 8 | frm_nxt[2]); in utf16le_to_ucs4_length()
2998 frm_nxt += 4; in utf16le_to_ucs4_length()
3001 return static_cast<int>(frm_nxt - frm); in utf16le_to_ucs4_length()
3006 ucs2_to_utf16be(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in ucs2_to_utf16be() argument
3010 frm_nxt = frm; in ucs2_to_utf16be()
3019 for (; frm_nxt < frm_end; ++frm_nxt) in ucs2_to_utf16be()
3021 uint16_t wc = *frm_nxt; in ucs2_to_utf16be()
3034 utf16be_to_ucs2(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16be_to_ucs2() argument
3038 frm_nxt = frm; in utf16be_to_ucs2()
3042 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs2()
3043 frm_nxt += 2; in utf16be_to_ucs2()
3045 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16be_to_ucs2()
3047 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs2()
3051 frm_nxt += 2; in utf16be_to_ucs2()
3053 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16be_to_ucs2()
3062 const uint8_t* frm_nxt = frm; in utf16be_to_ucs2_length() local
3065 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF) in utf16be_to_ucs2_length()
3066 frm_nxt += 2; in utf16be_to_ucs2_length()
3068 for (size_t nchar16_t = 0; frm_nxt < frm_end - 1 && nchar16_t < mx; ++nchar16_t) in utf16be_to_ucs2_length()
3070 uint16_t c1 = static_cast<uint16_t>(frm_nxt[0] << 8 | frm_nxt[1]); in utf16be_to_ucs2_length()
3073 frm_nxt += 2; in utf16be_to_ucs2_length()
3075 return static_cast<int>(frm_nxt - frm); in utf16be_to_ucs2_length()
3080 ucs2_to_utf16le(const uint16_t* frm, const uint16_t* frm_end, const uint16_t*& frm_nxt, in ucs2_to_utf16le() argument
3084 frm_nxt = frm; in ucs2_to_utf16le()
3093 for (; frm_nxt < frm_end; ++frm_nxt) in ucs2_to_utf16le()
3095 uint16_t wc = *frm_nxt; in ucs2_to_utf16le()
3108 utf16le_to_ucs2(const uint8_t* frm, const uint8_t* frm_end, const uint8_t*& frm_nxt, in utf16le_to_ucs2() argument
3112 frm_nxt = frm; in utf16le_to_ucs2()
3116 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs2()
3117 frm_nxt += 2; in utf16le_to_ucs2()
3119 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) in utf16le_to_ucs2()
3121 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs2()
3125 frm_nxt += 2; in utf16le_to_ucs2()
3127 return frm_nxt < frm_end ? codecvt_base::partial : codecvt_base::ok; in utf16le_to_ucs2()
3136 const uint8_t* frm_nxt = frm; in utf16le_to_ucs2_length() local
3137 frm_nxt = frm; in utf16le_to_ucs2_length()
3140 if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE) in utf16le_to_ucs2_length()
3141 frm_nxt += 2; in utf16le_to_ucs2_length()
3143 for (size_t nchar16_t = 0; frm_nxt < frm_end - 1 && nchar16_t < mx; ++nchar16_t) in utf16le_to_ucs2_length()
3145 uint16_t c1 = static_cast<uint16_t>(frm_nxt[1] << 8 | frm_nxt[0]); in utf16le_to_ucs2_length()
3148 frm_nxt += 2; in utf16le_to_ucs2_length()
3150 return static_cast<int>(frm_nxt - frm); in utf16le_to_ucs2_length()
3163 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3173 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3180 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3190 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3240 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3250 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3257 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3267 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3311 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3333 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3340 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3359 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3405 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3416 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3423 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3434 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3480 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3491 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3498 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3509 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3555 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3566 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3573 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3584 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3630 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3641 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3648 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3659 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3705 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3716 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3723 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3734 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3780 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3791 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3798 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3809 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3855 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3866 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3873 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3884 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
3930 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
3941 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
3948 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
3959 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
4005 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
4016 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
4023 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
4034 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
4080 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
4091 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
4098 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
4109 frm_nxt = frm + (_frm_nxt - _frm); in do_in()
4155 const intern_type* frm, const intern_type* frm_end, const intern_type*& frm_nxt, in do_out() argument
4166 frm_nxt = frm + (_frm_nxt - _frm); in do_out()
4173 const extern_type* frm, const extern_type* frm_end, const extern_type*& frm_nxt, in do_in() argument
4184 frm_nxt = frm + (_frm_nxt - _frm); in do_in()