Lines Matching defs:to_nxt
1296 extern_type*& to_nxt) const {
1298 to_nxt = to;
1309 intern_type*& to_nxt) const {
1311 to_nxt = to;
1316 codecvt<char, char, mbstate_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
1317 to_nxt = to;
1361 extern_type*& to_nxt) const {
1368 to_nxt = to;
1369 for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt) {
1370 // save state in case it is needed to recover to_nxt on error
1375 // need to recover to_nxt
1376 for (to_nxt = to; frm != frm_nxt; ++frm) {
1377 n = __libcpp_wcrtomb_l(to_nxt, *frm, &save_state, __l_);
1380 to_nxt += n;
1387 to_nxt += n;
1388 if (to_nxt == to_end)
1397 if (n > static_cast<size_t>(to_end - to_nxt)) // is there room?
1400 *to_nxt++ = *p++;
1418 intern_type*& to_nxt) const {
1425 to_nxt = to;
1426 for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt) {
1427 // save state in case it is needed to recover to_nxt on error
1432 // need to recover to_nxt
1433 for (to_nxt = to; frm != frm_nxt; ++to_nxt) {
1434 n = __libcpp_mbrtowc_l(to_nxt, frm, static_cast<size_t>(fend - frm), &save_state, __l_);
1455 to_nxt += n;
1456 if (to_nxt == to_end)
1461 n = __libcpp_mbrtowc_l(to_nxt, frm_nxt, 1, &st, __l_);
1464 ++to_nxt;
1476 state_type& st, extern_type* to, extern_type* to_end, extern_type*& to_nxt) const {
1477 to_nxt = to;
1483 if (n > static_cast<size_t>(to_end - to_nxt)) // is there room?
1486 *to_nxt++ = *p++;
1550 uint8_t*& to_nxt,
1554 to_nxt = to;
1556 if (to_end - to_nxt < 3)
1558 *to_nxt++ = static_cast<uint8_t>(0xEF);
1559 *to_nxt++ = static_cast<uint8_t>(0xBB);
1560 *to_nxt++ = static_cast<uint8_t>(0xBF);
1567 if (to_end - to_nxt < 1)
1569 *to_nxt++ = static_cast<uint8_t>(wc1);
1571 if (to_end - to_nxt < 2)
1573 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6));
1574 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F));
1576 if (to_end - to_nxt < 3)
1578 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1579 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1580 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1587 if (to_end - to_nxt < 4)
1593 *to_nxt++ = static_cast<uint8_t>(0xF0 | (z >> 2));
1594 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2));
1595 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6));
1596 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc2 & 0x003F));
1600 if (to_end - to_nxt < 3)
1602 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1603 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1604 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1616 uint8_t*& to_nxt,
1620 to_nxt = to;
1622 if (to_end - to_nxt < 3)
1624 *to_nxt++ = static_cast<uint8_t>(0xEF);
1625 *to_nxt++ = static_cast<uint8_t>(0xBB);
1626 *to_nxt++ = static_cast<uint8_t>(0xBF);
1633 if (to_end - to_nxt < 1)
1635 *to_nxt++ = static_cast<uint8_t>(wc1);
1637 if (to_end - to_nxt < 2)
1639 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6));
1640 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F));
1642 if (to_end - to_nxt < 3)
1644 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1645 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1646 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1653 if (to_end - to_nxt < 4)
1659 *to_nxt++ = static_cast<uint8_t>(0xF0 | (z >> 2));
1660 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2));
1661 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6));
1662 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc2 & 0x003F));
1666 if (to_end - to_nxt < 3)
1668 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1669 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1670 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1682 uint16_t*& to_nxt,
1686 to_nxt = to;
1691 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) {
1696 *to_nxt = static_cast<uint16_t>(c1);
1709 *to_nxt = t;
1737 *to_nxt = t;
1767 if (to_end - to_nxt < 2)
1771 *to_nxt = static_cast<uint16_t>(
1773 *++to_nxt = static_cast<uint16_t>(0xDC00 | ((c3 & 0x0F) << 6) | (c4 & 0x3F));
1788 uint32_t*& to_nxt,
1792 to_nxt = to;
1797 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) {
1802 *to_nxt = static_cast<uint32_t>(c1);
1815 *to_nxt = static_cast<uint32_t>(t);
1843 *to_nxt = static_cast<uint32_t>(t);
1873 if (to_end - to_nxt < 2)
1877 *to_nxt = static_cast<uint32_t>(
1879 *++to_nxt = static_cast<uint32_t>(0xDC00 | ((c3 & 0x0F) << 6) | (c4 & 0x3F));
1977 uint8_t*& to_nxt,
1981 to_nxt = to;
1983 if (to_end - to_nxt < 3)
1985 *to_nxt++ = static_cast<uint8_t>(0xEF);
1986 *to_nxt++ = static_cast<uint8_t>(0xBB);
1987 *to_nxt++ = static_cast<uint8_t>(0xBF);
1994 if (to_end - to_nxt < 1)
1996 *to_nxt++ = static_cast<uint8_t>(wc);
1998 if (to_end - to_nxt < 2)
2000 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc >> 6));
2001 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc & 0x03F));
2003 if (to_end - to_nxt < 3)
2005 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc >> 12));
2006 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc & 0x0FC0) >> 6));
2007 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc & 0x003F));
2010 if (to_end - to_nxt < 4)
2012 *to_nxt++ = static_cast<uint8_t>(0xF0 | (wc >> 18));
2013 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc & 0x03F000) >> 12));
2014 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc & 0x000FC0) >> 6));
2015 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc & 0x00003F));
2027 uint32_t*& to_nxt,
2031 to_nxt = to;
2036 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) {
2041 *to_nxt = static_cast<uint32_t>(c1);
2054 *to_nxt = t;
2082 *to_nxt = t;
2115 *to_nxt = t;
2211 uint8_t*& to_nxt,
2215 to_nxt = to;
2217 if (to_end - to_nxt < 3)
2219 *to_nxt++ = static_cast<uint8_t>(0xEF);
2220 *to_nxt++ = static_cast<uint8_t>(0xBB);
2221 *to_nxt++ = static_cast<uint8_t>(0xBF);
2228 if (to_end - to_nxt < 1)
2230 *to_nxt++ = static_cast<uint8_t>(wc);
2232 if (to_end - to_nxt < 2)
2234 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc >> 6));
2235 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc & 0x03F));
2238 if (to_end - to_nxt < 3)
2240 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc >> 12));
2241 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc & 0x0FC0) >> 6));
2242 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc & 0x003F));
2254 uint16_t*& to_nxt,
2258 to_nxt = to;
2263 for (; frm_nxt < frm_end && to_nxt < to_end; ++to_nxt) {
2268 *to_nxt = static_cast<uint16_t>(c1);
2281 *to_nxt = t;
2309 *to_nxt = t;
2380 uint8_t*& to_nxt,
2384 to_nxt = to;
2386 if (to_end - to_nxt < 2)
2388 *to_nxt++ = static_cast<uint8_t>(0xFE);
2389 *to_nxt++ = static_cast<uint8_t>(0xFF);
2396 if (to_end - to_nxt < 2)
2398 *to_nxt++ = static_cast<uint8_t>(wc >> 8);
2399 *to_nxt++ = static_cast<uint8_t>(wc);
2401 if (to_end - to_nxt < 4)
2404 *to_nxt++ = static_cast<uint8_t>(t >> 8);
2405 *to_nxt++ = static_cast<uint8_t>(t);
2407 *to_nxt++ = static_cast<uint8_t>(t >> 8);
2408 *to_nxt++ = static_cast<uint8_t>(t);
2420 uint32_t*& to_nxt,
2424 to_nxt = to;
2429 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) {
2436 *to_nxt = static_cast<uint32_t>(c1);
2447 *to_nxt = t;
2494 uint8_t*& to_nxt,
2498 to_nxt = to;
2500 if (to_end - to_nxt < 2)
2502 *to_nxt++ = static_cast<uint8_t>(0xFF);
2503 *to_nxt++ = static_cast<uint8_t>(0xFE);
2510 if (to_end - to_nxt < 2)
2512 *to_nxt++ = static_cast<uint8_t>(wc);
2513 *to_nxt++ = static_cast<uint8_t>(wc >> 8);
2515 if (to_end - to_nxt < 4)
2518 *to_nxt++ = static_cast<uint8_t>(t);
2519 *to_nxt++ = static_cast<uint8_t>(t >> 8);
2521 *to_nxt++ = static_cast<uint8_t>(t);
2522 *to_nxt++ = static_cast<uint8_t>(t >> 8);
2534 uint32_t*& to_nxt,
2538 to_nxt = to;
2543 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) {
2550 *to_nxt = static_cast<uint32_t>(c1);
2561 *to_nxt = t;
2608 uint8_t*& to_nxt,
2612 to_nxt = to;
2614 if (to_end - to_nxt < 2)
2616 *to_nxt++ = static_cast<uint8_t>(0xFE);
2617 *to_nxt++ = static_cast<uint8_t>(0xFF);
2623 if (to_end - to_nxt < 2)
2625 *to_nxt++ = static_cast<uint8_t>(wc >> 8);
2626 *to_nxt++ = static_cast<uint8_t>(wc);
2637 uint16_t*& to_nxt,
2641 to_nxt = to;
2646 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) {
2650 *to_nxt = c1;
2682 uint8_t*& to_nxt,
2686 to_nxt = to;
2688 if (to_end - to_nxt < 2)
2690 *to_nxt++ = static_cast<uint8_t>(0xFF);
2691 *to_nxt++ = static_cast<uint8_t>(0xFE);
2697 if (to_end - to_nxt < 2)
2699 *to_nxt++ = static_cast<uint8_t>(wc);
2700 *to_nxt++ = static_cast<uint8_t>(wc >> 8);
2711 uint16_t*& to_nxt,
2715 to_nxt = to;
2720 for (; frm_nxt < frm_end - 1 && to_nxt < to_end; ++to_nxt) {
2724 *to_nxt = c1;
2766 extern_type*& to_nxt) const {
2775 to_nxt = to + (_to_nxt - _to);
2786 intern_type*& to_nxt) const {
2795 to_nxt = to + (_to_nxt - _to);
2800 codecvt<char16_t, char, mbstate_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
2801 to_nxt = to;
2833 extern_type*& to_nxt) const {
2842 to_nxt = to + (_to_nxt - _to);
2853 intern_type*& to_nxt) const {
2862 to_nxt = to + (_to_nxt - _to);
2867 state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
2868 to_nxt = to;
2900 extern_type*& to_nxt) const {
2909 to_nxt = to + (_to_nxt - _to);
2920 intern_type*& to_nxt) const {
2929 to_nxt = to + (_to_nxt - _to);
2934 codecvt<char32_t, char, mbstate_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
2935 to_nxt = to;
2967 extern_type*& to_nxt) const {
2976 to_nxt = to + (_to_nxt - _to);
2987 intern_type*& to_nxt) const {
2996 to_nxt = to + (_to_nxt - _to);
3001 state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3002 to_nxt = to;
3031 extern_type*& to_nxt) const {
3050 to_nxt = to + (_to_nxt - _to);
3061 intern_type*& to_nxt) const {
3077 to_nxt = to + (_to_nxt - _to);
3082 __codecvt_utf8<wchar_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3083 to_nxt = to;
3125 extern_type*& to_nxt) const {
3134 to_nxt = to + (_to_nxt - _to);
3145 intern_type*& to_nxt) const {
3154 to_nxt = to + (_to_nxt - _to);
3159 __codecvt_utf8<char16_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3160 to_nxt = to;
3192 extern_type*& to_nxt) const {
3201 to_nxt = to + (_to_nxt - _to);
3212 intern_type*& to_nxt) const {
3221 to_nxt = to + (_to_nxt - _to);
3226 __codecvt_utf8<char32_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3227 to_nxt = to;
3260 extern_type*& to_nxt) const {
3279 to_nxt = to + (_to_nxt - _to);
3290 intern_type*& to_nxt) const {
3306 to_nxt = to + (_to_nxt - _to);
3311 __codecvt_utf16<wchar_t, false>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3312 to_nxt = to;
3352 extern_type*& to_nxt) const {
3371 to_nxt = to + (_to_nxt - _to);
3382 intern_type*& to_nxt) const {
3398 to_nxt = to + (_to_nxt - _to);
3403 __codecvt_utf16<wchar_t, true>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3404 to_nxt = to;
3445 extern_type*& to_nxt) const {
3454 to_nxt = to + (_to_nxt - _to);
3465 intern_type*& to_nxt) const {
3474 to_nxt = to + (_to_nxt - _to);
3479 __codecvt_utf16<char16_t, false>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3480 to_nxt = to;
3512 extern_type*& to_nxt) const {
3521 to_nxt = to + (_to_nxt - _to);
3532 intern_type*& to_nxt) const {
3541 to_nxt = to + (_to_nxt - _to);
3546 __codecvt_utf16<char16_t, true>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3547 to_nxt = to;
3579 extern_type*& to_nxt) const {
3588 to_nxt = to + (_to_nxt - _to);
3599 intern_type*& to_nxt) const {
3608 to_nxt = to + (_to_nxt - _to);
3613 __codecvt_utf16<char32_t, false>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3614 to_nxt = to;
3646 extern_type*& to_nxt) const {
3655 to_nxt = to + (_to_nxt - _to);
3666 intern_type*& to_nxt) const {
3675 to_nxt = to + (_to_nxt - _to);
3680 __codecvt_utf16<char32_t, true>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3681 to_nxt = to;
3714 extern_type*& to_nxt) const {
3729 to_nxt = to + (_to_nxt - _to);
3740 intern_type*& to_nxt) const {
3755 to_nxt = to + (_to_nxt - _to);
3760 __codecvt_utf8_utf16<wchar_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3761 to_nxt = to;
3792 extern_type*& to_nxt) const {
3801 to_nxt = to + (_to_nxt - _to);
3812 intern_type*& to_nxt) const {
3821 to_nxt = to + (_to_nxt - _to);
3826 __codecvt_utf8_utf16<char16_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3827 to_nxt = to;
3859 extern_type*& to_nxt) const {
3868 to_nxt = to + (_to_nxt - _to);
3879 intern_type*& to_nxt) const {
3888 to_nxt = to + (_to_nxt - _to);
3893 __codecvt_utf8_utf16<char32_t>::do_unshift(state_type&, extern_type* to, extern_type*, extern_type*& to_nxt) const {
3894 to_nxt = to;