Home | History | Annotate | Download | only in src

Lines Matching refs:wc1

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