Home
last modified time | relevance | path

Searched refs:BIT_MASK_1 (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dstring_helper_test.cpp138 const uint8_t oneByteVaild2[1] = { BIT_MASK_1 - 0x01 }; in HWTEST_F_L0()
139 const uint8_t oneByteUnvaild[1] = { BIT_MASK_1 }; in HWTEST_F_L0()
147 const uint8_t twoByteUnvaild2[2] = { BIT_MASK_3, BIT_MASK_1 }; in HWTEST_F_L0()
154 const uint8_t threeByteUnvaild1[3] = { BIT_MASK_3, BIT_MASK_1, BIT_MASK_2 }; in HWTEST_F_L0()
155 const uint8_t threeByteUnvaild2[3] = { BIT_MASK_3, BIT_MASK_2, BIT_MASK_1 }; in HWTEST_F_L0()
156 const uint8_t threeByteUnvaild3[3] = { BIT_MASK_4, BIT_MASK_1, BIT_MASK_1 }; in HWTEST_F_L0()
168 const uint8_t fourByteUnvaild1[4] = { BIT_MASK_4, BIT_MASK_1, BIT_MASK_1, BIT_MASK_2 }; in HWTEST_F_L0()
169 const uint8_t fourByteUnvaild2[4] = { BIT_MASK_4, BIT_MASK_1, BIT_MASK_ in HWTEST_F_L0()
[all...]
H A Dutf_helper_test.cpp95 const std::vector<uint8_t> utfDataOneBitVaild2 = {BIT_MASK_1 - 0x01}; in HWTEST_F_L0()
96 const std::vector<uint8_t> utfDataOneBitInvaild = {BIT_MASK_1}; in HWTEST_F_L0()
101 const std::vector<uint8_t> utfDataTwoBitVaild1 = {BIT_MASK_2 + 0x02, BIT_MASK_1}; in HWTEST_F_L0()
104 const std::vector<uint8_t> utfDataTwoBitInvaild2 = {BIT_MASK_3, BIT_MASK_1}; in HWTEST_F_L0()
105 const std::vector<uint8_t> utfDataTwoBitInvaild3 = {BIT_MASK_2, BIT_MASK_1}; in HWTEST_F_L0()
112 const std::vector<uint8_t> utfDataThreeBitVaild1 = {BIT_MASK_3, BIT_MASK_1 + 0x20, BIT_MASK_1}; in HWTEST_F_L0()
114 const std::vector<uint8_t> utfDataThreeBitVaild3 = {BIT_MASK_3 + 0x01, BIT_MASK_1, BIT_MASK_1}; in HWTEST_F_L0()
115 const std::vector<uint8_t> utfDataThreeBitInvaild1 = {BIT_MASK_3, BIT_MASK_1, BIT_MASK_ in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/base/
H A Dutf_helper.cpp121 if (data.at(0) >= BIT_MASK_1) { in IsValidUTF8()
166 if ((data.at(i) & BIT_MASK_2) != BIT_MASK_1) { in IsValidUTF8()
501 if ((d0 & BIT_MASK_1) == 0) { in ConvertUtf8ToUnicodeChar()
510 if ((d1 & BIT_MASK_2) == BIT_MASK_1) { in ConvertUtf8ToUnicodeChar()
522 if (((d1 & BIT_MASK_2) == BIT_MASK_1) && ((d2 & BIT_MASK_2) == BIT_MASK_1)) { in ConvertUtf8ToUnicodeChar()
535 if (((d1 & BIT_MASK_2) == BIT_MASK_1) && in ConvertUtf8ToUnicodeChar()
536 ((d2 & BIT_MASK_2) == BIT_MASK_1) && ((d3 & BIT_MASK_2) == BIT_MASK_1)) { in ConvertUtf8ToUnicodeChar()
H A Dutf_helper.h55 static constexpr uint8_t BIT_MASK_1 = 0x80; member
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_optimized_stubs-inl.h58 if (!((bb & base::utf_helper::BIT_MASK_2) == base::utf_helper::BIT_MASK_1)) { in DecodePercentEncoding()
112 if ((bb & base::utf_helper::BIT_MASK_1) == 0) { in DecodePercentEncoding()
138 while ((((static_cast<uint32_t>(bb) << static_cast<uint32_t>(n)) & base::utf_helper::BIT_MASK_1) != 0)) { in DecodePercentEncoding()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dutf.h60 constexpr uint8_t BIT_MASK_1 = 0x80; member
H A Dutf.cpp383 if (data.at(0) >= BIT_MASK_1) { in IsValidUTF8()
408 if ((data.at(i) & BIT_MASK_2) != BIT_MASK_1) { in IsValidUTF8()

Completed in 9 milliseconds