Searched refs:maxLen (Results 1 - 8 of 8) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | string_helper_test.cpp | 134 int maxLen = 1; in HWTEST_F_L0() local 140 EXPECT_EQ(StringHelper::UnicodeFromUtf8(oneByteVaild1, maxLen, pp), 0); in HWTEST_F_L0() 141 EXPECT_EQ(StringHelper::UnicodeFromUtf8(oneByteVaild2, maxLen, pp), 127); in HWTEST_F_L0() 142 EXPECT_EQ(StringHelper::UnicodeFromUtf8(oneByteUnvaild, maxLen, pp), -1); in HWTEST_F_L0() 144 maxLen = 2; in HWTEST_F_L0() 148 EXPECT_EQ(StringHelper::UnicodeFromUtf8(twoByteVaild, maxLen, pp), 2047); // 2047 : utf8 [0xDF, 0xBF] in HWTEST_F_L0() 149 EXPECT_EQ(StringHelper::UnicodeFromUtf8(twoByteUnvaild1, maxLen, pp), -1); in HWTEST_F_L0() 150 EXPECT_EQ(StringHelper::UnicodeFromUtf8(twoByteUnvaild2, maxLen, pp), -1); in HWTEST_F_L0() 152 maxLen = 3; in HWTEST_F_L0() 158 EXPECT_EQ(StringHelper::UnicodeFromUtf8(threeByteVaild, maxLen, p in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | utf_helper.cpp | 493 std::pair<int32_t, size_t> ConvertUtf8ToUnicodeChar(const uint8_t *utf8, size_t maxLen) in ConvertUtf8ToUnicodeChar() argument 495 if (maxLen == 0) { in ConvertUtf8ToUnicodeChar() 498 Span<const uint8_t> sp(utf8, maxLen); in ConvertUtf8ToUnicodeChar() 504 if (maxLen < UtfLength::TWO) { in ConvertUtf8ToUnicodeChar() 516 if (maxLen < UtfLength::THREE) { in ConvertUtf8ToUnicodeChar() 529 if (maxLen < UtfLength::FOUR) { in ConvertUtf8ToUnicodeChar()
|
H A D | utf_helper.h | 142 std::pair<int32_t, size_t> ConvertUtf8ToUnicodeChar(const uint8_t *utf8, size_t maxLen);
|
H A D | string_helper.h | 204 static int UnicodeFromUtf8(const uint8_t *p, int maxLen, const uint8_t **pp) in UnicodeFromUtf8() argument 226 if ((l + 1) > maxLen) { in UnicodeFromUtf8()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_bigint.cpp | 245 uint32_t maxLen = 0; in BitwiseOp() local 250 maxLen = xlen; in BitwiseOp() 253 maxLen = ylen; in BitwiseOp() 256 JSHandle<BigInt> bigint = BigInt::CreateBigint(thread, maxLen); in BitwiseOp() 366 JSHandle<BigInt> BigInt::BitwiseSubOne(JSThread *thread, JSHandle<BigInt> bigint, uint32_t maxLen) in BitwiseSubOne() argument 369 ASSERT(maxLen >= bigint->GetLength()); in BitwiseSubOne() 371 JSHandle<BigInt> newBigint = BigInt::CreateBigint(thread, maxLen); in BitwiseSubOne() 417 uint32_t maxLen = xLength; in OneIsNegativeOR() local 418 if (maxLen < y->GetLength()) { in OneIsNegativeOR() 419 maxLen in OneIsNegativeOR() 452 uint32_t maxLen = x->GetLength(); BitwiseOR() local [all...] |
H A D | js_bigint.h | 57 static JSHandle<BigInt> BitwiseSubOne(JSThread *thread, JSHandle<BigInt> bigint, uint32_t maxLen);
|
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
H A D | regexp_parser.cpp | 66 int UnicodeFromUtf8(const uint8_t *p, int maxLen, const uint8_t **pp) in UnicodeFromUtf8() argument 90 if (l > (maxLen - 1)) { in UnicodeFromUtf8()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_atomics_test.cpp | 246 static JSHandle<TaggedArray> CreateArrayList(JSThread *thread, std::vector<int32_t> vals, size_t maxLen) in CreateArrayList() argument 249 JSHandle<TaggedArray> array(factory->NewTaggedArray(maxLen)); in CreateArrayList()
|
Completed in 12 milliseconds