Lines Matching defs:utf16Data

660 bool EcmaString::CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len)
665 if (!IsASCIICharacter(utf16Data[index]) ||
666 !IsASCIICharacter(utf16Data[index + 1]) || // 1: the second element of the block
667 !IsASCIICharacter(utf16Data[index + 2]) || // 2: the third element of the block
668 !IsASCIICharacter(utf16Data[index + 3])) { // 3: the fourth element of the block
674 if (!IsASCIICharacter(utf16Data[index])) {
842 bool EcmaString::StringsAreEqualUtf16(const EcmaString *str1, const uint16_t *utf16Data, uint32_t utf16Len)
851 return IsUtf8EqualsUtf16(data, length, utf16Data, utf16Len);
855 Span<const uint16_t> data2(utf16Data, utf16Len);
969 uint32_t EcmaString::ComputeHashcodeUtf16(const uint16_t *utf16Data, uint32_t length)
973 if (length < MAX_ELEMENT_INDEX_LEN && HashIntegerString(utf16Data, length, &mixHash, 0)) {
976 uint32_t hash = ComputeHashForData(utf16Data, length, 0);
1004 const uint16_t *utf16Data, uint32_t utf16Len)
1009 const uint16_t *utf16End = utf16Data + utf16Len;
1010 while (utf8Data < utf8SafeEnd && utf16Data < utf16End) {
1020 if (utf16Data >= utf16End - 1) {
1024 if (*utf16Data++ != static_cast<uint16_t>((codePoint >> OFFSET_10POS) | H_SURROGATE_START)) {
1026 } else if (*utf16Data++ != static_cast<uint16_t>((codePoint & 0x3FF) | L_SURROGATE_START)) {
1030 if (*utf16Data++ != static_cast<uint16_t>(codePoint)) {
1040 if (*utf16Data++ != static_cast<uint16_t>(((src & LOW_4BITS) << OFFSET_12POS) |
1050 if (*utf16Data++ != static_cast<uint16_t>(((src & LOW_5BITS) << OFFSET_6POS) | (c2 & LOW_6BITS))) {
1058 if (*utf16Data++ != static_cast<uint16_t>(*utf8Data++)) {
1061 } while (utf8Data < utf8SafeEnd && utf16Data < utf16End && *utf8Data < 0x80);
1066 while (utf8Data < utf8End && utf16Data < utf16End) {
1067 if (*utf16Data++ != static_cast<uint16_t>(*utf8Data++)) {
1071 return utf8Data == utf8End && utf16Data == utf16End;