Home
last modified time | relevance | path

Searched refs:DECODE_LEAD_LOW (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
Dutf_helper.cpp29 ASSERT((lead >= DECODE_LEAD_LOW && lead <= DECODE_LEAD_HIGH) && in UTF16Decode()
31 …uint32_t cp = (lead - DECODE_LEAD_LOW) * DECODE_FIRST_FACTOR + (trail - DECODE_TRAIL_LOW) + DECODE… in UTF16Decode()
37 return DECODE_LEAD_LOW <= ch && ch <= DECODE_LEAD_HIGH; in IsUTF16HighSurrogate()
49 …if ((high & SURROGATE_MASK) != DECODE_LEAD_LOW || !IsUTF16HighSurrogate(high) || *index == len - 1… in DecodeUTF16()
57 …return ((high - DECODE_LEAD_LOW) << UTF16_OFFSET) + (low - DECODE_TRAIL_LOW) + DECODE_SECOND_FACTO… in DecodeUTF16()
Dutf_helper.h25 static constexpr uint16_t DECODE_LEAD_LOW = 0xD800; variable
Djson_parser.h254 …if (UNLIKELY(*current_ >= utf_helper::DECODE_LEAD_LOW && *current_ <= utf_helper::DECODE_LEAD_HIGH… in SlowParseString()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_string_iterator.cpp68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in Next()
Dbuiltins_global.cpp240 if (cc < base::utf_helper::DECODE_LEAD_LOW || cc > base::utf_helper::DECODE_LEAD_HIGH) { in Encode()
459 base::utf_helper::DECODE_LEAD_LOW); // 10: means shift left by 10 digits in Decode()
Dbuiltins_string.cpp326 …if (first < base::utf_helper::DECODE_LEAD_LOW || first > base::utf_helper::DECODE_LEAD_HIGH || pos… in CodePointAt()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dutf_helper_test.cpp98 EXPECT_TRUE(lead >= DECODE_LEAD_LOW && lead <= DECODE_LEAD_HIGH); in HWTEST_F_L0()
104 EXPECT_TRUE(lead >= DECODE_LEAD_LOW && lead <= DECODE_LEAD_HIGH); in HWTEST_F_L0()