Home
last modified time | relevance | path

Searched refs:stringLength (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Descompat_RegExp.cpp244 RegExpMatchResult Execute(EtsObject *regexpObj, EtsString *inputStrObj, EtsInt stringLength, EtsInt… in Execute() argument
258 u16Buffer = PandaVector<uint16_t>(stringLength); in Execute()
259 inputStr->CopyDataUtf16(u16Buffer.data(), stringLength); in Execute()
262 u8Buffer = PandaVector<uint8_t>(stringLength + 1); in Execute()
263 inputStr->CopyDataMUtf8(u8Buffer.data(), stringLength + 1, true); in Execute()
269 bool ret = executor.Execute(strBuffer, lastIndex, stringLength, buffer, isUtf16); in Execute()
401 EtsInt stringLength = strHandle->GetLength(); in EscompatRegExpExec() local
402 if (lastIndex > stringLength) { in EscompatRegExpExec()
409 …auto execResult = Execute(regexp.GetPtr(), strHandle.GetPtr(), stringLength, lastIndex, hasIndices… in EscompatRegExpExec()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h380 Inst *stringLength; in BuildStringLengthIntrinsic() local
383 stringLength = graph_->CreateInstShr(DataType::INT32, bcAddr, arrayLength, constOneInst); in BuildStringLengthIntrinsic()
384 AddInstruction(stringLength); in BuildStringLengthIntrinsic()
386 stringLength = arrayLength; in BuildStringLengthIntrinsic()
388 UpdateDefinitionAcc(stringLength); in BuildStringLengthIntrinsic()
1574 Inst *stringLength = nullptr; in TryBuildStringCharAtIntrinsic() local
1577 stringLength = graph_->CreateInstShr(DataType::INT32, bcAddr, arrayLength, constOneInst); in TryBuildStringCharAtIntrinsic()
1578 AddInstruction(stringLength); in TryBuildStringCharAtIntrinsic()
1580 stringLength = arrayLength; in TryBuildStringCharAtIntrinsic()
1583 auto boundsCheck = graph_->CreateInstBoundsCheck(DataType::INT32, bcAddr, stringLength, in TryBuildStringCharAtIntrinsic()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1472 int32_t stringLength; in ReadEcmaString() local
1473 if (!JudgeType(SerializationUID::INT32) || !ReadInt(&stringLength)) { in ReadEcmaString()
1476 if (stringLength == 0) { in ReadEcmaString()
1489 uint8_t *string = reinterpret_cast<uint8_t*>(GetBuffer(stringLength + 1)); in ReadEcmaString()
1494 JSHandle<EcmaString> ecmaString = factory_->NewFromUtf8(string, stringLength); in ReadEcmaString()
1498 uint16_t *string = reinterpret_cast<uint16_t*>(GetBuffer(stringLength * sizeof(uint16_t))); in ReadEcmaString()
1502 JSHandle<EcmaString> ecmaString = factory_->NewFromUtf16(string, stringLength); in ReadEcmaString()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_global.cpp346 uint32_t stringLength = EcmaStringAccessor(source).GetLength(); in StringPad() local
348 if (maxLength <= stringLength) { in StringPad()
357 uint32_t fillLen = maxLength - stringLength; in StringPad()
Dbuiltins_string.cpp2044 int32_t stringLength = static_cast<int32_t>(EcmaStringAccessor(thisHandle).GetLength()); in Pad() local
2045 if (intMaxLength <= stringLength) { in Pad()
2061 int64_t fillLen = intMaxLength - stringLength; in Pad()
Dbuiltins_regexp.cpp1670 size_t stringLength = EcmaStringAccessor(inputString).GetLength(); in RegExpExecInternal() local
1682 bool isSuccess = Matcher(thread, regexp, strBuffer, stringLength, lastIndex, isUtf16); in RegExpExecInternal()
/arkcompiler/runtime_core/static_core/runtime/tests/
Dstring_test.cpp827 uint32_t stringLength = 10; in TEST_F() local
828 char *fString = new char[stringLength + 1]; in TEST_F()
829 for (uint32_t i = 0; i < stringLength; i++) { in TEST_F()
834 fString[stringLength] = '\0'; in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DString.ets1405 let stringLength = str.getLength()
1406 assert(position >= 0 && position <= stringLength)
1432 if (tailPos < stringLength) {
1433 result += str.substring(tailPos, stringLength)