Home
last modified time | relevance | path

Searched refs:trail (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
Dutf_helper.cpp23 #define U16_GET_SUPPLEMENTARY(lead, trail) \ argument
24 ((static_cast<int32_t>(lead) << 10UL) + static_cast<int32_t>(trail) - U16_SURROGATE_OFFSET)
27 uint32_t UTF16Decode(uint16_t lead, uint16_t trail) in UTF16Decode() argument
30 (trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH)); in UTF16Decode()
31 …uint32_t cp = (lead - DECODE_LEAD_LOW) * DECODE_FIRST_FACTOR + (trail - DECODE_TRAIL_LOW) + DECODE… in UTF16Decode()
Dutf_helper.h75 uint32_t UTF16Decode(uint16_t lead, uint16_t trail);
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dutf_helper_test.cpp97 uint16_t trail = 0xDF21; in HWTEST_F_L0() local
99 EXPECT_TRUE(trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH); in HWTEST_F_L0()
100 uint32_t codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0()
103 trail = 0xDFCC; in HWTEST_F_L0()
105 EXPECT_TRUE(trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH); in HWTEST_F_L0()
106 codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_string.h122 static uint16_t UTF16Decode(uint16_t lead, uint16_t trail);
/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_parser.cpp204 uint32_t trail = 0; in ParseUnicodeEscape() local
205 if (ParseHexEscape(UNICODE_HEX_VALUE, &trail) && U16_IS_TRAIL(trail)) { in ParseUnicodeEscape()
206 … *value = U16_GET_SUPPLEMENTARY((*value), (trail)); // NOLINTNEXTLINE(hicpp-signed-bitwise) in ParseUnicodeEscape()