Home
last modified time | relevance | path

Searched refs:IsUtf8 (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Decma_string.cpp30 bool compressed = (strLeft->IsUtf8() && strRight->IsUtf8()); in Concat()
76 if (strLeft->IsUtf8()) { in Concat()
84 if (strRight->IsUtf8()) { in Concat()
118 if (strOrigin->IsUtf8()) { in CopyStringToOldSpace()
141 if (srcFlat->IsUtf8()) { in FastSubString()
150 if (IsUtf8()) { in WriteData()
151 ASSERT(src->IsUtf8()); in WriteData()
159 } else if (src->IsUtf8()) { in WriteData()
329 if (rhs->IsUtf8() && lhs->IsUtf8()) { in IndexOf()
382 if (rhs->IsUtf8() && lhs->IsUtf8()) { in LastIndexOf()
[all …]
Decma_string-inl.h211 ASSERT_PRINT(IsUtf8(), "EcmaString: Read data as utf8 for utf16 string"); in GetDataUtf8()
226 ASSERT_PRINT(IsUtf8(), "EcmaString: Read data as utf8 for utf16 string"); in GetDataUtf8Writable()
294 if (src->IsUtf8()) { in WriteToFlat()
302 ASSERT(src->IsUtf8()); in WriteToFlat()
328 } else if ((second->IsLineOrConstantString()) && second->IsUtf8()) { in WriteToFlat()
Decma_string.h114 bool IsUtf8() const in IsUtf8() function
618 if (IsUtf8()) { in Set()
663 ASSERT(IsUtf8()); in Get()
791 bool IsUtf8() const in IsUtf8() function
793 return string_->IsUtf8(); in IsUtf8()
Decma_string_table.cpp179 … resultHandle, EcmaStringAccessor(strFlat).GetLength(), EcmaStringAccessor(strFlat).IsUtf8()); in GetOrInternString()
Djs_stable_array.cpp231 …if (EcmaStringAccessor(sepStringHandle).IsUtf8() && EcmaStringAccessor(sepStringHandle).GetLength(… in Join()
249 …= (sep != JSStableArray::SeparatorFlag::MINUS_ONE) || EcmaStringAccessor(sepStringHandle).IsUtf8(); in Join()
278 isOneByte = EcmaStringAccessor(nextStr).IsUtf8() ? isOneByte : false; in Join()
Djs_serializer.cpp608 bool isUtf8 = EcmaStringAccessor(string).IsUtf8(); in WriteEcmaString()
/arkcompiler/ets_runtime/ecmascript/tests/
Dconstant_string_test.cpp62 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrEmpty).IsUtf8()); in HWTEST_F_L0()
82 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrU8).IsUtf8()); in HWTEST_F_L0()
192 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrConcatU8).IsUtf8()); in HWTEST_F_L0()
542 EXPECT_TRUE(EcmaStringAccessor(sourceString).IsUtf8()); in HWTEST_F_L0()
543 EXPECT_TRUE(EcmaStringAccessor(firstString).IsUtf8()); in HWTEST_F_L0()
544 EXPECT_TRUE(EcmaStringAccessor(secondString).IsUtf8()); in HWTEST_F_L0()
581 EXPECT_TRUE(EcmaStringAccessor(lowerEcmaString).IsUtf8()); in HWTEST_F_L0()
589 EXPECT_TRUE(EcmaStringAccessor(lowerEcmaString).IsUtf8()); in HWTEST_F_L0()
597 EXPECT_TRUE(EcmaStringAccessor(testEcmaString).IsUtf8()); in HWTEST_F_L0()
605 EXPECT_TRUE(EcmaStringAccessor(testEcmaString).IsUtf8()); in HWTEST_F_L0()
Decma_string_test.cpp82 EXPECT_TRUE(handleEcmaStrEmpty->IsUtf8()); in HWTEST_F_L0()
101 EXPECT_TRUE(handleEcmaStrAllocComp->IsUtf8()); in HWTEST_F_L0()
112 EXPECT_FALSE(handleEcmaStrAllocNotComp->IsUtf8()); in HWTEST_F_L0()
132 EXPECT_TRUE(handleEcmaStrU8->IsUtf8()); in HWTEST_F_L0()
150 EXPECT_TRUE(handleEcmaStrU16Comp->IsUtf8()); in HWTEST_F_L0()
159 EXPECT_FALSE(handleEcmaStrU16NotComp->IsUtf8()); in HWTEST_F_L0()
425 EXPECT_TRUE(handleEcmaStrConcatU8->IsUtf8()); in HWTEST_F_L0()
581 EXPECT_TRUE(res->IsUtf8()); in HWTEST_F_L0()
603 EXPECT_TRUE(sourceString->IsUtf8()); in HWTEST_F_L0()
605 EXPECT_TRUE(res->IsUtf8()); in HWTEST_F_L0()
[all …]
Decma_string_accessor_test.cpp123 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrAllocComp).IsUtf8()); in HWTEST_F_L0()
134 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrAllocNotComp).IsUtf8()); in HWTEST_F_L0()
148 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrEmpty).IsUtf8()); in HWTEST_F_L0()
168 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrU8).IsUtf8()); in HWTEST_F_L0()
186 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrU16Comp).IsUtf8()); in HWTEST_F_L0()
195 EXPECT_FALSE(EcmaStringAccessor(handleEcmaStrU16NotComp).IsUtf8()); in HWTEST_F_L0()
219 EXPECT_TRUE(EcmaStringAccessor(handleEcmaStrConcatU8).IsUtf8()); in HWTEST_F_L0()
382 EXPECT_TRUE(EcmaStringAccessor(res).IsUtf8()); in HWTEST_F_L0()
404 EXPECT_TRUE(EcmaStringAccessor(sourceString).IsUtf8()); in HWTEST_F_L0()
406 EXPECT_TRUE(EcmaStringAccessor(res).IsUtf8()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_json.cpp49 if (EcmaStringAccessor(parseString).IsUtf8()) { in Parse()
Dbuiltins_typedarray.cpp769 …if (EcmaStringAccessor(sepStringHandle).IsUtf8() && EcmaStringAccessor(sepStringHandle).GetLength(… in Join()
786 EcmaStringAccessor(sepStringHandle).IsUtf8(); in Join()
803 isOneByte = EcmaStringAccessor(nextStr).IsUtf8() ? isOneByte : false; in Join()
Dbuiltins_string.cpp813 bool isUtf8 = EcmaStringAccessor(thisHandle).IsUtf8(); in Repeat()
1558 if (locales->IsUndefined() && EcmaStringAccessor(string).IsUtf8()) { in ToLocaleLowerCase()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp2344 if (EcmaStringAccessor(ecmaStr).IsUtf8()) { in EXCEPTION_ERROR_ALL()