• Home
  • Raw
  • Download

Lines Matching refs:wc1

1635         uint16_t wc1 = *frm_nxt;  in utf16_to_utf8()  local
1636 if (wc1 > Maxcode) in utf16_to_utf8()
1638 if (wc1 < 0x0080) in utf16_to_utf8()
1642 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8()
1644 else if (wc1 < 0x0800) in utf16_to_utf8()
1648 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8()
1649 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8()
1651 else if (wc1 < 0xD800) in utf16_to_utf8()
1655 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1656 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1657 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1659 else if (wc1 < 0xDC00) in utf16_to_utf8()
1668 if ((((((unsigned long)wc1 & 0x03C0) >> 6) + 1) << 16) + in utf16_to_utf8()
1669 (((unsigned long)wc1 & 0x003F) << 10) + (wc2 & 0x03FF) > Maxcode) in utf16_to_utf8()
1672 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1; in utf16_to_utf8()
1674 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2)); in utf16_to_utf8()
1675 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6)); in utf16_to_utf8()
1678 else if (wc1 < 0xE000) in utf16_to_utf8()
1686 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1687 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1688 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1712 uint16_t wc1 = static_cast<uint16_t>(*frm_nxt); in utf16_to_utf8() local
1713 if (wc1 > Maxcode) in utf16_to_utf8()
1715 if (wc1 < 0x0080) in utf16_to_utf8()
1719 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8()
1721 else if (wc1 < 0x0800) in utf16_to_utf8()
1725 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8()
1726 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8()
1728 else if (wc1 < 0xD800) in utf16_to_utf8()
1732 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1733 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1734 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()
1736 else if (wc1 < 0xDC00) in utf16_to_utf8()
1745 if ((((((unsigned long)wc1 & 0x03C0) >> 6) + 1) << 16) + in utf16_to_utf8()
1746 (((unsigned long)wc1 & 0x003F) << 10) + (wc2 & 0x03FF) > Maxcode) in utf16_to_utf8()
1749 uint8_t z = ((wc1 & 0x03C0) >> 6) + 1; in utf16_to_utf8()
1751 *to_nxt++ = static_cast<uint8_t>(0x80 | ((z & 0x03) << 4) | ((wc1 & 0x003C) >> 2)); in utf16_to_utf8()
1752 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0003) << 4) | ((wc2 & 0x03C0) >> 6)); in utf16_to_utf8()
1755 else if (wc1 < 0xE000) in utf16_to_utf8()
1763 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8()
1764 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8()
1765 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x003F)); in utf16_to_utf8()