Home | History | Annotate | Download | only in src

Lines Matching refs:wc1

1715         uint16_t wc1 = *frm_nxt;
1716 if (wc1 > Maxcode)
1718 if (wc1 < 0x0080)
1722 *to_nxt++ = static_cast<uint8_t>(wc1);
1724 else if (wc1 < 0x0800)
1728 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6));
1729 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F));
1731 else if (wc1 < 0xD800)
1735 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1736 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1737 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1739 else if (wc1 < 0xDC00)
1748 if (((((wc1 & 0x03C0UL) >> 6) + 1) << 16) +
1749 ((wc1 & 0x003FUL) << 10) + (wc2 & 0x03FF) > Maxcode)
1752 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1;
1754 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2));
1755 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6));
1758 else if (wc1 < 0xE000)
1766 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1767 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1768 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1792 uint16_t wc1 = static_cast<uint16_t>(*frm_nxt);
1793 if (wc1 > Maxcode)
1795 if (wc1 < 0x0080)
1799 *to_nxt++ = static_cast<uint8_t>(wc1);
1801 else if (wc1 < 0x0800)
1805 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6));
1806 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F));
1808 else if (wc1 < 0xD800)
1812 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1813 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1814 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));
1816 else if (wc1 < 0xDC00)
1825 if (((((wc1 & 0x03C0UL) >> 6) + 1) << 16) +
1826 ((wc1 & 0x003FUL) << 10) + (wc2 & 0x03FF) > Maxcode)
1829 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1;
1831 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2));
1832 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6));
1835 else if (wc1 < 0xE000)
1843 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12));
1844 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6));
1845 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F));