/arkcompiler/ets_runtime/ecmascript/regexp/ |
D | regexp_parser.cpp | 184 if (c0_ == '{' && IsUtf16()) { in ParseUnicodeEscape() 199 if (result && IsUtf16() && U16_IS_LEAD(*value) && c0_ == '\\') { in ParseUnicodeEscape() 293 if (!IsUtf16()) { in ParseAlternative() 374 rangeResult.Invert(IsUtf16()); in ParseAlternative() 409 if (IsUtf16()) { in ParseAlternative() 436 … matchedChar = static_cast<uint32_t>(Canonicalize(static_cast<int>(matchedChar), IsUtf16())); in ParseAlternative() 952 atomRange.Invert(IsUtf16()); in ParseAtomEscape() 972 atomRange.Invert(IsUtf16()); in ParseAtomEscape() 991 atomRange.Invert(IsUtf16()); in ParseAtomEscape() 1007 if (!IsUtf16() || HasNamedCaptures()) { in ParseAtomEscape() [all …]
|
D | regexp_executor.h | 107 currentChar = static_cast<uint32_t>(RegExpParser::Canonicalize(currentChar, IsUtf16())); in HandleOpChar() 266 currentChar = static_cast<uint32_t>(RegExpParser::Canonicalize(currentChar, IsUtf16())); in HandleOpRange32() 353 c1 = static_cast<uint32_t>(RegExpParser::Canonicalize(c1, IsUtf16())); in HandleOpBackReference() 354 c2 = static_cast<uint32_t>(RegExpParser::Canonicalize(c2, IsUtf16())); in HandleOpBackReference() 380 c1 = static_cast<uint32_t>(RegExpParser::Canonicalize(c1, IsUtf16())); in HandleOpBackReference() 381 c2 = static_cast<uint32_t>(RegExpParser::Canonicalize(c2, IsUtf16())); in HandleOpBackReference() 432 if (U16_IS_LEAD(c) && IsUtf16() && cptr < end) { in GetChar() 456 if (U16_IS_LEAD(c) && IsUtf16() && cptr < end) { in PeekChar() 475 if (U16_IS_LEAD(c1) && IsUtf16() && cptr < end) { in AdvancePtr() 497 if (U16_IS_TRAIL(c) && IsUtf16() && cptr > start) { in PeekPrevChar() [all …]
|
D | regexp_parser.h | 172 inline bool IsUtf16() const in IsUtf16() function
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_string.cpp | 206 if (!lhs->IsUtf16() && !rhs->IsUtf16()) { in Compare() 213 } else if (!lhs->IsUtf16()) { in Compare() 220 } else if (!rhs->IsUtf16()) { in Compare() 333 } else if (rhs->IsUtf16() && lhs->IsUtf16()) { // NOLINT(readability-else-after-return) in IndexOf() 337 } else if (rhs->IsUtf16()) { in IndexOf() 386 } else if (rhs->IsUtf16() && lhs->IsUtf16()) { // NOLINT(readability-else-after-return) in LastIndexOf() 390 } else if (rhs->IsUtf16()) { in LastIndexOf() 403 if (IsUtf16()) { in ToU16String() 463 if (IsUtf16()) { in EqualToSplicedString() 471 if (str1->IsUtf16() || str2->IsUtf16()) { in EqualToSplicedString() [all …]
|
D | ecma_string.h | 119 bool IsUtf16() const in IsUtf16() function 276 if (IsUtf16()) { in CopyDataToUtf16() 318 if (!IsUtf16()) { in WriteOneByte() 346 if (!IsUtf16()) { 392 if (IsUtf16()) { in CopyDataRegionUtf16() 413 if (IsUtf16()) { in ToOneByteDataForced() 428 if (UNLIKELY(IsUtf16())) { 590 return str->IsUtf16() ? ComputeSizeUtf16(length) : ComputeSizeUtf8(length); in ObjectSize() 607 if (!IsUtf16()) { in Get() 796 bool IsUtf16() const in IsUtf16() function [all …]
|
D | ecma_string-inl.h | 220 LOG_ECMA_IF(!IsUtf16(), FATAL) << "EcmaString: Read data as utf16 for utf8 string"; in GetDataUtf16() 235 LOG_ECMA_IF(!IsUtf16(), FATAL) << "EcmaString: Read data as utf16 for utf8 string"; in GetDataUtf16Writable() 242 if (!IsUtf16()) { in GetUtf8Length()
|
D | js_number_format.cpp | 288 if (EcmaStringAccessor(currencyStr).IsUtf16()) { in SetNumberFormatUnitOptions() 334 if (EcmaStringAccessor(unitStr).IsUtf16()) { in SetNumberFormatUnitOptions() 482 if (EcmaStringAccessor(numberingSystemEcmaString).IsUtf16()) { in InitializeNumberFormat()
|
D | js_relative_time_format.cpp | 63 if (EcmaStringAccessor(numberingSystemString).IsUtf16()) { in InitializeRelativeTimeFormat()
|
D | js_locale.cpp | 315 if (EcmaStringAccessor(valueEStr).IsUtf16()) { in GetOptionOfString()
|
D | js_date.cpp | 510 if (strAccessor.IsUtf16()) { in Parse()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | ecma_string_test.cpp | 83 EXPECT_FALSE(handleEcmaStrEmpty->IsUtf16()); in HWTEST_F_L0() 102 EXPECT_FALSE(handleEcmaStrAllocComp->IsUtf16()); in HWTEST_F_L0() 113 EXPECT_TRUE(handleEcmaStrAllocNotComp->IsUtf16()); in HWTEST_F_L0() 133 EXPECT_FALSE(handleEcmaStrU8->IsUtf16()); in HWTEST_F_L0() 151 EXPECT_FALSE(handleEcmaStrU16Comp->IsUtf16()); in HWTEST_F_L0() 160 EXPECT_TRUE(handleEcmaStrU16NotComp->IsUtf16()); in HWTEST_F_L0() 455 EXPECT_TRUE(handleEcmaStrConcatU16NotComp->IsUtf16()); in HWTEST_F_L0() 485 EXPECT_TRUE(handleEcmaStrConcatU8U16NotComp->IsUtf16()); in HWTEST_F_L0() 579 EXPECT_TRUE(sourceString->IsUtf16()); in HWTEST_F_L0() 587 EXPECT_TRUE(sourceString->IsUtf16()); in HWTEST_F_L0() [all …]
|
D | ecma_string_accessor_test.cpp | 124 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrAllocComp).IsUtf16()); in HWTEST_F_L0() 135 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrAllocNotComp).IsUtf16()); in HWTEST_F_L0() 149 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrEmpty).IsUtf16()); in HWTEST_F_L0() 169 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrU8).IsUtf16()); in HWTEST_F_L0() 187 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrU16Comp).IsUtf16()); in HWTEST_F_L0() 196 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrU16NotComp).IsUtf16()); in HWTEST_F_L0() 249 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrConcatU16NotComp).IsUtf16()); in HWTEST_F_L0() 281 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrConcatU8U16NotComp).IsUtf16()); in HWTEST_F_L0() 380 EXPECT_TRUE(EcmaStringAccessor(sourceString).IsUtf16()); in HWTEST_F_L0() 388 EXPECT_TRUE(EcmaStringAccessor(sourceString).IsUtf16()); in HWTEST_F_L0() [all …]
|
D | constant_string_test.cpp | 63 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrEmpty).IsUtf16()); in HWTEST_F_L0() 83 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrU8).IsUtf16()); in HWTEST_F_L0() 222 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrConcatU8U16NotComp).IsUtf16()); in HWTEST_F_L0() 582 EXPECT_FALSE(EcmaStringAccessor(lowerEcmaString).IsUtf16()); in HWTEST_F_L0() 590 EXPECT_FALSE(EcmaStringAccessor(lowerEcmaString).IsUtf16()); in HWTEST_F_L0() 598 EXPECT_FALSE(EcmaStringAccessor(testEcmaString).IsUtf16()); in HWTEST_F_L0() 606 EXPECT_FALSE(EcmaStringAccessor(testEcmaString).IsUtf16()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 220 if (EcmaStringAccessor(nextSeg).IsUtf16()) { in Raw() 230 if (EcmaStringAccessor(nextSub).IsUtf16()) { in Raw() 357 if (EcmaStringAccessor(thisHandle).IsUtf16()) { in Concat() 365 if (EcmaStringAccessor(nextHandle).IsUtf16()) { in Concat() 1058 if (EcmaStringAccessor(prefixString).IsUtf16()) { in ReplaceAll() 1062 if (EcmaStringAccessor(realReplaceStr).IsUtf16()) { in ReplaceAll() 1075 if (EcmaStringAccessor(suffixString).IsUtf16()) { in ReplaceAll() 1110 if (EcmaStringAccessor(replacementFlat).IsUtf16()) { in GetSubstitution() 1134 if (EcmaStringAccessor(matched).IsUtf16()) { in GetSubstitution() 1143 if (EcmaStringAccessor(prefix).IsUtf16()) { in GetSubstitution() [all …]
|
D | builtins_regexp.cpp | 655 bool isUtf16 = EcmaStringAccessor(inputString).IsUtf16(); in RegExpReplaceFast() 688 … bool unicode = EcmaStringAccessor(inputString).IsUtf16() && (flags & RegExpParser::FLAG_UTF16); in RegExpReplaceFast() 1447 bool isUtf16 = EcmaStringAccessor(inputString).IsUtf16(); in RegExpBuiltinExec()
|
/arkcompiler/ets_runtime/ecmascript/intl/ |
D | locale_helper.cpp | 182 if (EcmaStringAccessor(locale).GetLength() == 0 || EcmaStringAccessor(locale).IsUtf16()) { in CanonicalizeUnicodeLocaleId()
|
/arkcompiler/toolchain/tooling/agent/ |
D | runtime_impl.cpp | 732 jsValueRef = regExpRef->IsUtf16(vm_); in GetRegExpValue()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
D | jsnapi.h | 897 Local<JSValueRef> IsUtf16(const EcmaVM *vm);
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 2455 Local<JSValueRef> RegExpRef::IsUtf16(const EcmaVM *vm) in IsUtf16() function in panda::RegExpRef
|