Lines Matching refs:wc1

1766         uint16_t wc1 = *frm_nxt;  in utf16_to_utf8()  local
1767 if (wc1 > Maxcode) in utf16_to_utf8()
1769 if (wc1 < 0x0080) in utf16_to_utf8()
1773 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8()
1775 else if (wc1 < 0x0800) in utf16_to_utf8()
1779 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8()
1780 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8()
1782 else if (wc1 < 0xD800) in utf16_to_utf8()
1786 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1787 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1788 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1790 else if (wc1 < 0xDC00) in utf16_to_utf8()
1799 if (((((wc1 & 0x03C0UL) >> 6) + 1) << 16) + in utf16_to_utf8()
1800 ((wc1 & 0x003FUL) << 10) + (wc2 & 0x03FF) > Maxcode) in utf16_to_utf8()
1803 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1; in utf16_to_utf8()
1805 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2)); in utf16_to_utf8()
1806 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6)); in utf16_to_utf8()
1809 else if (wc1 < 0xE000) in utf16_to_utf8()
1817 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1818 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1819 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1843 uint16_t wc1 = static_cast<uint16_t>(*frm_nxt); in utf16_to_utf8() local
1844 if (wc1 > Maxcode) in utf16_to_utf8()
1846 if (wc1 < 0x0080) in utf16_to_utf8()
1850 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8()
1852 else if (wc1 < 0x0800) in utf16_to_utf8()
1856 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8()
1857 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8()
1859 else if (wc1 < 0xD800) in utf16_to_utf8()
1863 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1864 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1865 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1867 else if (wc1 < 0xDC00) in utf16_to_utf8()
1876 if (((((wc1 & 0x03C0UL) >> 6) + 1) << 16) + in utf16_to_utf8()
1877 ((wc1 & 0x003FUL) << 10) + (wc2 & 0x03FF) > Maxcode) in utf16_to_utf8()
1880 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1; in utf16_to_utf8()
1882 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2)); in utf16_to_utf8()
1883 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6)); in utf16_to_utf8()
1886 else if (wc1 < 0xE000) in utf16_to_utf8()
1894 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1895 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1896 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()