Home
last modified time | relevance | path

Searched refs:strLen (Results 1 – 6 of 6) sorted by relevance

/ark/js_runtime/ecmascript/builtins/
Dbuiltins_global.cpp194 uint32_t strLen = str->GetLength(); in Encode() local
204 if (k == strLen) { in Encode()
240 if (k == strLen) { in Encode()
293 [[maybe_unused]] uint32_t strLen = str->GetLength(); in Decode() local
303 if (k == strLen) { in Decode()
325 if (cc == 0 && strLen == 1) { in Decode()
336 if ((k + 2) >= strLen) { // 2: means plus 2 in Decode()
397 if (k + (3 * (n - 1)) >= strLen) { // 3: means multiply by 3 in Decode()
/ark/js_runtime/ecmascript/base/
Dnumber_helper.cpp678 size_t strLen = strObj->GetLength(); in StringToBigInt() local
679 if (strLen == 0) { in StringToBigInt()
684 size_t len = base::utf_helper::Utf16ToUtf8Size(strObj->GetDataUtf16(), strLen) - 1; in StringToBigInt()
686 …len = base::utf_helper::ConvertRegionUtf16ToUtf8(strObj->GetDataUtf16(), buf.data(), strLen, len, … in StringToBigInt()
689 str = Span<const uint8_t>(strObj->GetDataUtf8(), strLen); in StringToBigInt()
Djson_parser.h450 uint32_t strLen = str.size() - 1; in ParseLiteral() local
452 if (UNLIKELY(remainingLength < strLen)) { in ParseLiteral()
456 bool isMatch = MatchText(str, strLen); in ParseLiteral()
/ark/js_runtime/ecmascript/
Djs_tagged_value-inl.h113 size_t strLen = strObj->GetLength(); in ToNumber() local
114 if (strLen == 0) { in ToNumber()
119 size_t len = base::utf_helper::Utf16ToUtf8Size(strObj->GetDataUtf16(), strLen) - 1; in ToNumber()
121 …n = base::utf_helper::ConvertRegionUtf16ToUtf8(strObj->GetDataUtf16(), buf.data(), strLen, len, 0); in ToNumber()
124 str = Span<const uint8_t>(strObj->GetDataUtf8(), strLen); in ToNumber()
Djs_bigint.cpp151 int strLen = BigInt::DATEBITS * len; in GetBinary() local
152 std::string res(strLen, '0'); in GetBinary()
153 int strIndex = strLen - 1; in GetBinary()
/ark/js_runtime/ecmascript/interpreter/
Dslow_runtime_stub.cpp1755 uint32_t strLen = srcString->GetLength(); in StArraySpread() local
1756 for (uint32_t i = 0; i < strLen; i++) { in StArraySpread()
1762 return JSTaggedValue(dstLen + strLen); in StArraySpread()