Searched refs:BIT_MASK_1 (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | string_helper_test.cpp | 172 const uint8_t oneByteVaild2[1] = { BIT_MASK_1 - 0x01 }; in HWTEST_F_L0() 173 const uint8_t oneByteUnvaild[1] = { BIT_MASK_1 }; in HWTEST_F_L0() 181 const uint8_t twoByteUnvaild2[2] = { BIT_MASK_3, BIT_MASK_1 }; in HWTEST_F_L0() 188 const uint8_t threeByteUnvaild1[3] = { BIT_MASK_3, BIT_MASK_1, BIT_MASK_2 }; in HWTEST_F_L0() 189 const uint8_t threeByteUnvaild2[3] = { BIT_MASK_3, BIT_MASK_2, BIT_MASK_1 }; in HWTEST_F_L0() 190 const uint8_t threeByteUnvaild3[3] = { BIT_MASK_4, BIT_MASK_1, BIT_MASK_1 }; in HWTEST_F_L0() 202 const uint8_t fourByteUnvaild1[4] = { BIT_MASK_4, BIT_MASK_1, BIT_MASK_1, BIT_MASK_2 }; in HWTEST_F_L0() 203 const uint8_t fourByteUnvaild2[4] = { BIT_MASK_4, BIT_MASK_1, BIT_MASK_2, BIT_MASK_1 }; in HWTEST_F_L0() 204 const uint8_t fourByteUnvaild3[4] = { BIT_MASK_4, BIT_MASK_2, BIT_MASK_1, BIT_MASK_1 }; in HWTEST_F_L0() 205 const uint8_t fourByteUnvaild4[4] = { BIT_MASK_5, BIT_MASK_1, BIT_MASK_1, BIT_MASK_1 }; in HWTEST_F_L0()
|
D | utf_helper_test.cpp | 118 const std::vector<uint8_t> utfDataOneBitVaild2 = {BIT_MASK_1 - 0x01}; in HWTEST_F_L0() 119 const std::vector<uint8_t> utfDataOneBitUnvaild = {BIT_MASK_1}; in HWTEST_F_L0() 123 const std::vector<uint8_t> utfDataTwoBitVaild1 = {BIT_MASK_2, BIT_MASK_1}; // 110xxxxx 10xxxxxx in HWTEST_F_L0() 126 const std::vector<uint8_t> utfDataTwoBitUnvaild2 = {BIT_MASK_3, BIT_MASK_1}; in HWTEST_F_L0() 131 const std::vector<uint8_t> utfDataThreeBitVaild1 = {BIT_MASK_3, BIT_MASK_1, BIT_MASK_1}; in HWTEST_F_L0() 133 const std::vector<uint8_t>utfDataThreeBitUnvaild1 = {BIT_MASK_3, BIT_MASK_1, BIT_MASK_2}; in HWTEST_F_L0() 134 const std::vector<uint8_t>utfDataThreeBitUnvaild2 = {BIT_MASK_3, BIT_MASK_2, BIT_MASK_1}; in HWTEST_F_L0() 135 const std::vector<uint8_t>utfDataThreeBitUnvaild3 = {BIT_MASK_4, BIT_MASK_1, BIT_MASK_1}; in HWTEST_F_L0() 143 … const std::vector<uint8_t>utfDataFourBitVaild1 = {BIT_MASK_4, BIT_MASK_1, BIT_MASK_1, BIT_MASK_1}; in HWTEST_F_L0() 146 …const std::vector<uint8_t>utfDataFourBitUnvaild1 = {BIT_MASK_4, BIT_MASK_1, BIT_MASK_1, BIT_MASK_2… in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | utf_helper.h | 35 static constexpr uint8_t BIT_MASK_1 = 0x80; variable
|
D | utf_helper.cpp | 95 if (data.at(0) >= BIT_MASK_1) { in IsValidUTF8() 121 if ((data.at(i) & BIT_MASK_2) != BIT_MASK_1) { in IsValidUTF8()
|