Home
last modified time | relevance | path

Searched refs:rhsSp (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/coretypes/
H A Dstring.cpp278 int32_t CompareStringSpan(Span<T1> &lhsSp, Span<T2> &rhsSp, int32_t count) in CompareStringSpan() argument
281 int32_t charDiff = static_cast<int32_t>(lhsSp[i]) - static_cast<int32_t>(rhsSp[i]); in CompareStringSpan()
341 Span<uint16_t> rhsSp(rstr->GetDataUtf16(), rstrLeng); in Compare()
342 int32_t charDiff = CompareStringSpan(lhsSp, rhsSp, minCount); in Compare()
348 Span<uint8_t> rhsSp(rstr->GetDataMUtf8(), rstrLeng); in Compare()
349 int32_t charDiff = CompareStringSpan(lhsSp, rhsSp, minCount); in Compare()
379 static int32_t IndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos, int32_t max) in IndexOf() argument
382 auto tailedEnd = static_cast<int32_t>(rhsSp.size() - 1); in IndexOf()
385 auto searchChar = rhsSp[tailedEnd]; in IndexOf()
393 if (SubstringEquals(lhsSp, rhsSp, po in IndexOf()
433 LastIndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos) LastIndexOf() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Decma_string.cpp222 int32_t CompareStringSpan(Span<T1> &lhsSp, Span<T2> &rhsSp, int32_t count) in CompareStringSpan() argument
226 auto right = static_cast<int32_t>(rhsSp[i]); in CompareStringSpan()
249 Span<const uint8_t> rhsSp(rhs.GetDataUtf8(), rhsCount); in Compare()
250 int32_t charDiff = CompareStringSpan(lhsSp, rhsSp, minCount); in Compare()
256 Span<const uint16_t> rhsSp(rhs.GetDataUtf16(), rhsCount); in Compare()
257 int32_t charDiff = CompareStringSpan(lhsSp, rhsSp, minCount); in Compare()
263 Span<const uint8_t> rhsSp(rhs.GetDataUtf8(), lhsCount); in Compare()
264 int32_t charDiff = CompareStringSpan(lhsSp, rhsSp, minCount); in Compare()
270 Span<const uint16_t> rhsSp(rhs.GetDataUtf16(), rhsCount); in Compare()
271 int32_t charDiff = CompareStringSpan(lhsSp, rhsSp, minCoun in Compare()
280 IsSubStringAtSpan(Span<T1> &lhsSp, Span<T2> &rhsSp, uint32_t offset) IsSubStringAtSpan() argument
332 IndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos, int32_t max) IndexOf() argument
360 LastIndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos) LastIndexOf() argument
[all...]
H A Decma_string.h674 static int32_t IndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos, int32_t max);
677 static int32_t LastIndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos);

Completed in 7 milliseconds