Home
last modified time | relevance | path

Searched refs:trail (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dutf.cpp28 #define U16_GET_SUPPLEMENTARY(lead, trail) \
29 ((static_cast<uint32_t>(lead) << 10UL) + static_cast<uint32_t>(trail) - U16_SURROGATE_OFFSET)
370 uint32_t UTF16Decode(uint16_t lead, uint16_t trail) in UTF16Decode() argument
373 (trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH)); in UTF16Decode()
374 uint32_t cp = (lead - DECODE_LEAD_LOW) * DECODE_FIRST_FACTOR + (trail - DECODE_TRAIL_LOW) + DECODE_SECOND_FACTOR; in UTF16Decode()
H A Dutf.h128 PANDA_PUBLIC_API uint32_t UTF16Decode(uint16_t lead, uint16_t trail);
/arkcompiler/ets_runtime/ecmascript/base/
H A Dutf_helper.cpp23 #define U16_GET_SUPPLEMENTARY(lead, trail) \
24 ((static_cast<int32_t>(lead) << 10UL) + static_cast<int32_t>(trail) - U16_SURROGATE_OFFSET)
28 uint32_t UTF16Decode(uint16_t lead, uint16_t trail) in UTF16Decode() argument
31 (trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH)); in UTF16Decode()
32 uint32_t cp = (lead - DECODE_LEAD_LOW) * DECODE_FIRST_FACTOR + (trail - DECODE_TRAIL_LOW) + DECODE_SECOND_FACTOR; in UTF16Decode()
H A Dutf_helper.h107 uint32_t UTF16Decode(uint16_t lead, uint16_t trail);
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dutf_helper_test.cpp29 * @tc.desc: Enter a pair of UTF16-encoded surrogate pair corresponding to the lead surrogates and trail surrogates,
66 * @tc.desc: Enter a pair of UTF16-encoded surrogate pair corresponding to the lead surrogates and trail surrogates,
73 uint16_t trail = 0xDF21; in HWTEST_F_L0() local
75 EXPECT_TRUE(trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH); in HWTEST_F_L0()
76 uint32_t codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0()
79 trail = 0xDFCC; in HWTEST_F_L0()
81 EXPECT_TRUE(trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH); in HWTEST_F_L0()
82 codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_string.h241 static uint16_t UTF16Decode(uint16_t lead, uint16_t trail);
303 static uint32_t UTF16SurrogatePairToCodePoint(uint16_t lead, uint16_t trail);
H A Dbuiltins_global.h215 // 11.1.3 Static Semantics: UTF16SurrogatePairToCodePoint ( lead, trail )
216 static uint16_t UTF16SurrogatePairToCodePoint(uint16_t lead, uint16_t trail);
H A Dbuiltins_global.cpp385 // Static Semantics: UTF16SurrogatePairToCodePoint ( lead, trail )
386 uint16_t BuiltinsGlobal::UTF16SurrogatePairToCodePoint(uint16_t lead, uint16_t trail) in UTF16SurrogatePairToCodePoint() argument
388 // 1. Assert: lead is a leading surrogate and trail is a trailing surrogate. in UTF16SurrogatePairToCodePoint()
389 ASSERT(IsUTF16HighSurrogate(lead) && IsUTF16LowSurrogate(trail)); in UTF16SurrogatePairToCodePoint()
390 // 2. Let cp be (lead - 0xD800) × 0x400 + (trail - 0xDC00) + 0x10000. in UTF16SurrogatePairToCodePoint()
391 uint16_t cp = ((lead - 0xD800) << 10UL) + (trail - 0xDC00) + 0x10000; in UTF16SurrogatePairToCodePoint()
H A Dbuiltins_string.cpp882 // Static Semantics: UTF16SurrogatePairToCodePoint ( lead, trail )
883 uint32_t BuiltinsString::UTF16SurrogatePairToCodePoint(uint16_t lead, uint16_t trail) in UTF16SurrogatePairToCodePoint() argument
885 // 1. Assert: lead is a leading surrogate and trail is a trailing surrogate. in UTF16SurrogatePairToCodePoint()
886 ASSERT(IsUTF16HighSurrogate(lead) && IsUTF16LowSurrogate(trail)); in UTF16SurrogatePairToCodePoint()
887 // 2. Let cp be (lead - 0xD800) × 0x400 + (trail - 0xDC00) + 0x10000. in UTF16SurrogatePairToCodePoint()
888 uint32_t cp = ((lead - 0xD800) << 10UL) + (trail - 0xDC00) + 0x10000; in UTF16SurrogatePairToCodePoint()
/arkcompiler/ets_runtime/ecmascript/regexp/
H A Dregexp_parser.cpp290 // Attempt to read trail surrogate. in ParseUnicodeEscape()
294 uint32_t trail = 0; in ParseUnicodeEscape() local
295 if (ParseHexEscape(UNICODE_HEX_VALUE, &trail) && U16_IS_TRAIL(trail)) { in ParseUnicodeEscape()
296 *value = U16_GET_SUPPLEMENTARY((*value), (trail)); // NOLINTNEXTLINE(hicpp-signed-bitwise) in ParseUnicodeEscape()
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/
H A Dregexp_parser.cpp263 // Attempt to read trail surrogate. in ParseUnicodeEscape()
267 uint32_t trail; in ParseUnicodeEscape() local
268 if (ParseHexEscape(UNICODE_HEX_VALUE, &trail) && U16_IS_TRAIL(trail)) { in ParseUnicodeEscape()
269 *value = U16_GET_SUPPLEMENTARY((*value), (trail)); // NOLINT(hicpp-signed-bitwise) in ParseUnicodeEscape()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js[all...]

Completed in 46 milliseconds