Home
last modified time | relevance | path

Searched refs:IsValidUTF8 (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dutf_helper_test.cpp115 HWTEST_F_L0(UtfHelperTest, IsValidUTF8) in HWTEST_F_L0() argument
120 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataOneBitVaild1)); in HWTEST_F_L0()
121 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataOneBitVaild2)); in HWTEST_F_L0()
122 EXPECT_FALSE(utf_helper::IsValidUTF8(utfDataOneBitUnvaild)); in HWTEST_F_L0()
127 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataTwoBitVaild1)); in HWTEST_F_L0()
128 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataTwoBitVaild2)); in HWTEST_F_L0()
129 EXPECT_FALSE(utf_helper::IsValidUTF8(utfDataTwoBitUnvaild1)); in HWTEST_F_L0()
130 EXPECT_FALSE(utf_helper::IsValidUTF8(utfDataTwoBitUnvaild2)); in HWTEST_F_L0()
137 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataThreeBitVaild1)); in HWTEST_F_L0()
138 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataThreeBitVaild2)); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dutf_helper.h77 bool IsValidUTF8(const std::vector<uint8_t> &data);
Dutf_helper.cpp90 bool IsValidUTF8(const std::vector<uint8_t> &data) in IsValidUTF8() function
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_global.cpp441 if (!base::utf_helper::IsValidUTF8(oct)) { in Decode()