Lines Matching refs:TWO
91 return UtfLength::TWO; in UTF8Length()
124 case UtfLength::TWO: in IsValidUTF8()
179 return {UtfLength::TWO, {UTF8_2B_FIRST, UTF8_2B_SECOND}}; in ConvertUtf16ToUtf8()
190 return {UtfLength::TWO, {ch0, ch1}}; in ConvertUtf16ToUtf8()
227 res += UtfLength::TWO; // special case for U+0000 => C0 80 in Utf16ToUtf8Size()
232 res += UtfLength::TWO; in Utf16ToUtf8Size()
313 return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUtf16Pair()
316 uint8_t d2 = data[UtfLength::TWO]; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertUtf8ToUtf16Pair()
380 if (maxLen < UtfLength::TWO) { in ConvertUtf8ToUnicodeChar()
387 … return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUnicodeChar()
396 uint8_t d2 = sp[UtfLength::TWO]; in ConvertUtf8ToUnicodeChar()