Home
last modified time | relevance | path

Searched refs:UtfOffset (Results 1 – 2 of 2) sorted by relevance

/ark/js_runtime/ecmascript/base/
Dutf_helper.cpp75 … auto ch0 = static_cast<uint8_t>(UTF8_3B_FIRST | static_cast<uint8_t>(d0 >> UtfOffset::TWELVE)); in ConvertUtf16ToUtf8()
76 …auto ch1 = static_cast<uint8_t>(UTF8_3B_SECOND | (static_cast<uint8_t>(d0 >> UtfOffset::SIX) & utf… in ConvertUtf16ToUtf8()
93 auto ch0 = static_cast<uint8_t>(UTF8_2B_FIRST | static_cast<uint8_t>(d0 >> UtfOffset::SIX)); in ConvertUtf16ToUtf8()
98 … auto ch0 = static_cast<uint8_t>(UTF8_3B_FIRST | static_cast<uint8_t>(d0 >> UtfOffset::TWELVE)); in ConvertUtf16ToUtf8()
99 …auto ch1 = static_cast<uint8_t>(UTF8_3B_SECOND | (static_cast<uint8_t>(d0 >> UtfOffset::SIX) & utf… in ConvertUtf16ToUtf8()
110 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()
197 …return {((d0 & utf::MASK_4BIT) << UtfOffset::TWELVE) | ((d1 & utf::MASK_6BIT) << utf::DATA_WIDTH) | in ConvertUtf8ToUtf16Pair()
203 …uint32_t codePoint = ((d0 & utf::MASK_4BIT) << UtfOffset::EIGHTEEN) | ((d1 & utf::MASK_6BIT) << Ut… in ConvertUtf8ToUtf16Pair()
Dutf_helper.h51 enum UtfOffset : uint8_t { SIX = 6, TEN = 10, TWELVE = 12, EIGHTEEN = 18 }; enum
80 codePoint <<= UtfOffset::TEN; in CombineTwoU16()