Home
last modified time | relevance | path

Searched refs:utf_helper (Results 1 - 25 of 41) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_optimized_stubs-inl.h52 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 Dbuiltins_string_iterator.cpp68 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 Dbuiltins_global.h207 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 Dbuiltins_global.cpp263 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 Dbuiltins_string.h297 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 Dutf_helper_test.cpp16 #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 Dstringreflength_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefnewfromutf16_fuzzer/
H A Dstringrefnewfromutf16_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefutf8length_fuzzer/
H A Dstringrefutf8length_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefnewfromutf8_fuzzer/
H A Dstringrefnewfromutf8_fuzzer.cpp18 #include "ecmascript/base/utf_helper.h"
24 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefwithinint32_fuzzer/
H A Djsvaluerefwithinint32_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/deleteworker_fuzzer/
H A Ddeleteworker_fuzzer.cpp18 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefgetnapiwrapperstring_fuzzer/
H A Dstringrefgetnapiwrapperstring_fuzzer.cpp16 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefwriteutf16_fuzzer/
H A Dstringrefwriteutf16_fuzzer.cpp18 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefwritelatin1_fuzzer/
H A Dstringrefwritelatin1_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/stringrefwriteutf8_fuzzer/
H A Dstringrefwriteutf8_fuzzer.cpp19 #include "ecmascript/base/utf_helper.h"
24 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/jsonparse_fuzzer/
H A Djsonparse_fuzzer.cpp18 #include "ecmascript/base/utf_helper.h"
24 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/jsonstringify_fuzzer/
H A Djsonstringify_fuzzer.cpp18 #include "ecmascript/base/utf_helper.h"
24 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/functionrefinherit_fuzzer/
H A Dfunctionrefinherit_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
26 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/ecmascript/base/
H A Djson_helper.cpp17 #include "ecmascript/base/utf_helper.h"
102 auto unicodeRes = utf_helper::ConvertUtf8ToUnicodeChar( in AppendValueToQuotedString()
/arkcompiler/ets_runtime/ecmascript/
H A Decma_string.h23 #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 Djsvaluerefisjs_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
27 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/exceptionclass_fuzzer/
H A Dexceptionclass_fuzzer.cpp18 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefiscorrect_fuzzer/
H A Djsvaluerefiscorrect_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
23 using namespace panda::ecmascript::base::utf_helper;
/arkcompiler/ets_runtime/test/fuzztest/weaksetref_fuzzer/
H A Dweaksetref_fuzzer.cpp17 #include "ecmascript/base/utf_helper.h"
28 using namespace panda::ecmascript::base::utf_helper;

Completed in 14 milliseconds

12