Lines Matching refs:wc1
1794 uint16_t wc1 = *frm_nxt; in utf16_to_utf8() local
1795 if (wc1 > Maxcode) in utf16_to_utf8()
1797 if (wc1 < 0x0080) in utf16_to_utf8()
1801 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8()
1803 else if (wc1 < 0x0800) in utf16_to_utf8()
1807 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8()
1808 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8()
1810 else if (wc1 < 0xD800) in utf16_to_utf8()
1814 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1815 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1816 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1818 else if (wc1 < 0xDC00) in utf16_to_utf8()
1827 if (((((wc1 & 0x03C0UL) >> 6) + 1) << 16) + in utf16_to_utf8()
1828 ((wc1 & 0x003FUL) << 10) + (wc2 & 0x03FF) > Maxcode) in utf16_to_utf8()
1831 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1; in utf16_to_utf8()
1833 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2)); in utf16_to_utf8()
1834 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6)); in utf16_to_utf8()
1837 else if (wc1 < 0xE000) in utf16_to_utf8()
1845 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1846 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1847 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1871 uint16_t wc1 = static_cast<uint16_t>(*frm_nxt); in utf16_to_utf8() local
1872 if (wc1 > Maxcode) in utf16_to_utf8()
1874 if (wc1 < 0x0080) in utf16_to_utf8()
1878 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8()
1880 else if (wc1 < 0x0800) in utf16_to_utf8()
1884 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8()
1885 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8()
1887 else if (wc1 < 0xD800) in utf16_to_utf8()
1891 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1892 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1893 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1895 else if (wc1 < 0xDC00) in utf16_to_utf8()
1904 if (((((wc1 & 0x03C0UL) >> 6) + 1) << 16) + in utf16_to_utf8()
1905 ((wc1 & 0x003FUL) << 10) + (wc2 & 0x03FF) > Maxcode) in utf16_to_utf8()
1908 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1; in utf16_to_utf8()
1910 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2)); in utf16_to_utf8()
1911 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6)); in utf16_to_utf8()
1914 else if (wc1 < 0xE000) in utf16_to_utf8()
1922 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1923 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1924 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()