Home
last modified time | relevance | path

Searched refs:GetUtf8Length (Results 1 - 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Decma_string-inl.h315 inline size_t EcmaString::GetUtf8Length(bool modify, bool isGetBufferSize) const in GetUtf8Length() function in panda::ecmascript::EcmaString
526 inline size_t EcmaStringAccessor::GetUtf8Length(bool isGetBufferSize) const in GetUtf8Length() function in panda::ecmascript::EcmaStringAccessor
528 return string_->GetUtf8Length(true, isGetBufferSize); in GetUtf8Length()
H A Decma_string.h211 inline size_t GetUtf8Length(bool modify = true, bool isGetBufferSize = false) const;
1164 inline size_t GetUtf8Length(bool isGetBufferSize = false) const;
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dconstant_string_test.cpp232 * @tc.name: GetUtf8Length
233 * @tc.desc: Check whether the value returned through calling GetUtf8Length function is within expectations.
237 HWTEST_F_L0(ConstantStringTest, GetUtf8Length) in HWTEST_F_L0()
243 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).GetUtf8Length(), lengthEcmaStrU8 + 1); in HWTEST_F_L0()
H A Decma_string_test.cpp710 * @tc.name: GetUtf8Length
711 * @tc.desc: Check whether the value returned through calling GetUtf8Length function is within expectations.
715 HWTEST_F_L0(EcmaStringTest, GetUtf8Length) in HWTEST_F_L0()
729 EXPECT_EQ(handleEcmaStrU8->GetUtf8Length(), lengthEcmaStrU8 + 1); in HWTEST_F_L0()
730 EXPECT_EQ(handleEcmaStrU16Comp->GetUtf8Length(), lengthEcmaStrU16Comp + 1); in HWTEST_F_L0()
731 EXPECT_EQ(handleEcmaStrU16NotComp->GetUtf8Length(), 2 * lengthEcmaStrU16NotComp + 1); in HWTEST_F_L0()
H A Decma_string_accessor_test.cpp330 * @tc.name: GetUtf8Length
331 * @tc.desc: Check whether the value returned through calling GetUtf8Length function is within expectations.
335 HWTEST_F_L0(EcmaStringAccessorTest, GetUtf8Length) in HWTEST_F_L0()
349 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).GetUtf8Length(), lengthEcmaStrU8 + 1); in HWTEST_F_L0()
350 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU16Comp).GetUtf8Length(), lengthEcmaStrU16Comp + 1); in HWTEST_F_L0()
351 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU16NotComp).GetUtf8Length(), 2 * lengthEcmaStrU16NotComp + 1); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp2170 return EcmaStringAccessor(EcmaStringAccessor::Flatten(vm, strHandle)).GetUtf8Length(isGetBufferSize); in Utf8Length()

Completed in 25 milliseconds