/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_optimized_stubs-inl.h | 52 if (!(base::utf_helper::IsHexDigits(frontChart) && base::utf_helper::IsHexDigits(behindChart))) { in DecodePercentEncoding() 58 if (!((bb & base::utf_helper::BIT_MASK_2) == base::utf_helper::BIT_MASK_1)) { in DecodePercentEncoding() 72 if (!base::utf_helper::IsValidUTF8(oct)) { in UTF16EncodeCodePoint() 77 if (vv < base::utf_helper::DECODE_SECOND_FACTOR) { in UTF16EncodeCodePoint() 80 uint16_t lv = (((vv - base::utf_helper::DECODE_SECOND_FACTOR) & base::utf_helper::BIT16_MASK) + in UTF16EncodeCodePoint() 81 base::utf_helper::DECODE_TRAIL_LOW); in UTF16EncodeCodePoint() 83 uint16_t hv = ((((vv - base::utf_helper in UTF16EncodeCodePoint() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_string_iterator.cpp | 68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in NextInternal() 69 first > base::utf_helper::DECODE_LEAD_HIGH) { in NextInternal() 84 if (second < base::utf_helper::DECODE_TRAIL_LOW || second > base::utf_helper::DECODE_TRAIL_HIGH) { in NextInternal()
|
H A D | builtins_global.h | 207 return base::utf_helper::DECODE_LEAD_LOW <= ch && ch <= base::utf_helper::DECODE_LEAD_HIGH; in IsUTF16HighSurrogate() 212 return base::utf_helper::DECODE_TRAIL_LOW <= ch && ch <= base::utf_helper::DECODE_TRAIL_HIGH; in IsUTF16LowSurrogate()
|
H A D | builtins_global.cpp | 263 if (cc >= base::utf_helper::DECODE_TRAIL_LOW && cc <= base::utf_helper::DECODE_TRAIL_HIGH) { in Encode() 277 if (cc < base::utf_helper::DECODE_LEAD_LOW || cc > base::utf_helper::DECODE_LEAD_HIGH) { in Encode() 286 if (kc < base::utf_helper::DECODE_TRAIL_LOW || kc > base::utf_helper::DECODE_TRAIL_HIGH) { in Encode() 290 vv = base::utf_helper::UTF16Decode(cc, kc); in Encode() 635 if (!base::utf_helper::IsValidUTF8(oct)) { in UTF16EncodeCodePoint() 640 if (vv < base::utf_helper::DECODE_SECOND_FACTOR) { in UTF16EncodeCodePoint() 650 uint16_t lv = (((vv - base::utf_helper in UTF16EncodeCodePoint() [all...] |
H A D | builtins_string.h | 297 return base::utf_helper::DECODE_LEAD_LOW <= ch && ch <= base::utf_helper::DECODE_LEAD_HIGH; in IsUTF16HighSurrogate() 301 return base::utf_helper::DECODE_TRAIL_LOW <= ch && ch <= base::utf_helper::DECODE_TRAIL_HIGH; in IsUTF16LowSurrogate()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | utf_helper_test.cpp | 16 #include "ecmascript/base/utf_helper.h" 21 using namespace panda::ecmascript::base::utf_helper; 76 uint32_t codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0() 82 codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0() 97 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataOneBitVaild1)); in HWTEST_F_L0() 98 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataOneBitVaild2)); in HWTEST_F_L0() 99 EXPECT_FALSE(utf_helper::IsValidUTF8(utfDataOneBitInvaild)); in HWTEST_F_L0() 106 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataTwoBitVaild1)); in HWTEST_F_L0() 107 EXPECT_TRUE(utf_helper::IsValidUTF8(utfDataTwoBitVaild2)); in HWTEST_F_L0() 108 EXPECT_FALSE(utf_helper in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/test/fuzztest/stringreflength_fuzzer/ |
H A D | stringreflength_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefnewfromutf16_fuzzer/ |
H A D | stringrefnewfromutf16_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefutf8length_fuzzer/ |
H A D | stringrefutf8length_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefnewfromutf8_fuzzer/ |
H A D | stringrefnewfromutf8_fuzzer.cpp | 18 #include "ecmascript/base/utf_helper.h" 24 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefwithinint32_fuzzer/ |
H A D | jsvaluerefwithinint32_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/deleteworker_fuzzer/ |
H A D | deleteworker_fuzzer.cpp | 18 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefgetnapiwrapperstring_fuzzer/ |
H A D | stringrefgetnapiwrapperstring_fuzzer.cpp | 16 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefwriteutf16_fuzzer/ |
H A D | stringrefwriteutf16_fuzzer.cpp | 18 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefwritelatin1_fuzzer/ |
H A D | stringrefwritelatin1_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/stringrefwriteutf8_fuzzer/ |
H A D | stringrefwriteutf8_fuzzer.cpp | 19 #include "ecmascript/base/utf_helper.h" 24 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/jsonparse_fuzzer/ |
H A D | jsonparse_fuzzer.cpp | 18 #include "ecmascript/base/utf_helper.h" 24 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/jsonstringify_fuzzer/ |
H A D | jsonstringify_fuzzer.cpp | 18 #include "ecmascript/base/utf_helper.h" 24 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/functionrefinherit_fuzzer/ |
H A D | functionrefinherit_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 26 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | json_helper.cpp | 17 #include "ecmascript/base/utf_helper.h" 102 auto unicodeRes = utf_helper::ConvertUtf8ToUnicodeChar( in AppendValueToQuotedString()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string.h | 23 #include "ecmascript/base/utf_helper.h" 437 return base::utf_helper::ConvertRegionUtf8ToUtf16(data, buf, bufLength, bufLength); 439 return base::utf_helper::ConvertRegionUtf8ToUtf16(data, buf, length, bufLength); 476 return base::utf_helper::ConvertRegionUtf16ToLatin1(data, buf, maxLength, maxLength); 478 return base::utf_helper::ConvertRegionUtf16ToLatin1(data, buf, length, maxLength); 503 return base::utf_helper::ConvertRegionUtf16ToUtf8(data, buf, maxLength, maxLength, start, 506 return base::utf_helper::ConvertRegionUtf16ToUtf8(data, buf, length, maxLength, start, 528 return base::utf_helper::ConvertRegionUtf8ToUtf16(data, buf, length, maxLength); 555 ASSERT(base::utf_helper::Utf16ToUtf8Size(data, strLen, modify, false, cesu8) > 0); 556 size_t len = base::utf_helper [all...] |
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisjs_fuzzer/ |
H A D | jsvaluerefisjs_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 27 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/exceptionclass_fuzzer/ |
H A D | exceptionclass_fuzzer.cpp | 18 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefiscorrect_fuzzer/ |
H A D | jsvaluerefiscorrect_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 23 using namespace panda::ecmascript::base::utf_helper;
|
/arkcompiler/ets_runtime/test/fuzztest/weaksetref_fuzzer/ |
H A D | weaksetref_fuzzer.cpp | 17 #include "ecmascript/base/utf_helper.h" 28 using namespace panda::ecmascript::base::utf_helper;
|