Home
last modified time | relevance | path

Searched refs:length1 (Results 1 - 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_collator.cpp688 const auto length1 = static_cast<int>(EcmaStringAccessor(string1).GetLength()); in TryFastCompareStrings() local
690 int commonLength = std::min(length1, length2); in TryFastCompareStrings()
698 if (!CharIsAsciiOrOutOfBounds(string1, length1, fastCompareData.processedUntil + 1) || in TryFastCompareStrings()
706 UCollationResult lengthResult = ToUCollationResult(length1 - length2); in TryFastCompareStrings()
710 if (!CharCanFastCompareOrOutOfBounds(string1, length1, commonLength) || in TryFastCompareStrings()
/arkcompiler/runtime_core/static_core/runtime/coretypes/
H A Dstring.cpp988 uint32_t length1 = string1->GetLength(); in Concat() local
990 uint32_t newLength = length1 + length2; in Concat()
1007 memcpy_s(sp.Data(), sp.SizeBytes(), string1->GetDataMUtf8(), length1); in Concat()
1008 sp = sp.SubSpan(length1); in Concat()
1013 for (uint32_t i = 0; i < length1; ++i) { in Concat()
1017 memcpy_s(sp.Data(), sp.SizeBytes(), string1->GetDataUtf16(), length1 << 1U); in Concat()
1019 sp = sp.SubSpan(length1); in Concat()

Completed in 4 milliseconds