Searched refs:codePoint (Results 1 – 3 of 3) sorted by relevance
108 uint32_t codePoint = CombineTwoU16(d0, d1); in ConvertUtf16ToUtf8() local110 auto ch0 = static_cast<uint8_t>((codePoint >> UtfOffset::EIGHTEEN) | UTF8_4B_FIRST); in ConvertUtf16ToUtf8()111 … auto ch1 = static_cast<uint8_t>(((codePoint >> UtfOffset::TWELVE) & utf::MASK_6BIT) | utf::MASK1); in ConvertUtf16ToUtf8()112 auto ch2 = static_cast<uint8_t>(((codePoint >> UtfOffset::SIX) & utf::MASK_6BIT) | utf::MASK1); in ConvertUtf16ToUtf8()113 auto ch3 = static_cast<uint8_t>((codePoint & utf::MASK_6BIT) | utf::MASK1); in ConvertUtf16ToUtf8()203 …uint32_t codePoint = ((d0 & utf::MASK_4BIT) << UtfOffset::EIGHTEEN) | ((d1 & utf::MASK_6BIT) << Ut… in ConvertUtf8ToUtf16Pair() local208 … uint32_t lead = ((codePoint >> (utf::PAIR_ELEMENT_WIDTH - utf::DATA_WIDTH)) + utf::U16_LEAD); in ConvertUtf8ToUtf16Pair()209 uint32_t tail = ((codePoint & utf::MASK_10BIT) + utf::U16_TAIL) & utf::MASK_16BIT; in ConvertUtf8ToUtf16Pair()212 …pair |= ((codePoint >> (utf::PAIR_ELEMENT_WIDTH - utf::DATA_WIDTH)) + utf::U16_LEAD) << utf::PAIR_… in ConvertUtf8ToUtf16Pair()213 pair |= ((codePoint & utf::MASK_10BIT) + utf::U16_TAIL) & utf::MASK_16BIT; in ConvertUtf8ToUtf16Pair()
79 uint32_t codePoint = d0 - utf::HI_SURROGATE_MIN; in CombineTwoU16() local80 codePoint <<= UtfOffset::TEN; in CombineTwoU16()81 codePoint |= d1 - utf::LO_SURROGATE_MIN; in CombineTwoU16()82 codePoint += utf::LO_SUPPLEMENTS_MIN; in CombineTwoU16()83 return codePoint; in CombineTwoU16()
99 uint32_t codePoint = d0 - HI_SURROGATE_MIN; in CombineTwoU16() local100 codePoint <<= (PAIR_ELEMENT_WIDTH - DATA_WIDTH); in CombineTwoU16()101 codePoint |= d1 - LO_SURROGATE_MIN; in CombineTwoU16()102 codePoint += LO_SUPPLEMENTS_MIN; in CombineTwoU16()103 return codePoint; in CombineTwoU16()135 uint32_t codePoint = CombineTwoU16(d0, d1); in ConvertUtf16ToMUtf8() local137 auto ch0 = static_cast<uint8_t>((codePoint >> (DATA_WIDTH * CONST_3)) | MUTF8_4B_FIRST); in ConvertUtf16ToMUtf8()138 auto ch1 = static_cast<uint8_t>(((codePoint >> (DATA_WIDTH * CONST_2)) & MASK_6BIT) | MASK1); in ConvertUtf16ToMUtf8()139 auto ch2 = static_cast<uint8_t>(((codePoint >> DATA_WIDTH) & MASK_6BIT) | MASK1); in ConvertUtf16ToMUtf8()140 auto ch3 = static_cast<uint8_t>((codePoint & MASK_6BIT) | MASK1); in ConvertUtf16ToMUtf8()