Searched refs:trail (Results 1 - 12 of 12) sorted by relevance
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | utf.cpp | 28 #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 D | utf.h | 128 PANDA_PUBLIC_API uint32_t UTF16Decode(uint16_t lead, uint16_t trail);
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | utf_helper.cpp | 23 #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 D | utf_helper.h | 107 uint32_t UTF16Decode(uint16_t lead, uint16_t trail);
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | utf_helper_test.cpp | 29 * @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 D | builtins_string.h | 241 static uint16_t UTF16Decode(uint16_t lead, uint16_t trail); 303 static uint32_t UTF16SurrogatePairToCodePoint(uint16_t lead, uint16_t trail);
|
H A D | builtins_global.h | 215 // 11.1.3 Static Semantics: UTF16SurrogatePairToCodePoint ( lead, trail ) 216 static uint16_t UTF16SurrogatePairToCodePoint(uint16_t lead, uint16_t trail);
|
H A D | builtins_global.cpp | 385 // 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 D | builtins_string.cpp | 882 // 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 D | regexp_parser.cpp | 290 // 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 D | regexp_parser.cpp | 263 // 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 D | cocos_worker_test.js | [all...] |
Completed in 46 milliseconds