| /arkcompiler/ets_frontend/es2panda/util/ |
| D | base64.cpp | 19 std::string Base64Encode(const std::string &inputString) in Base64Encode() argument 21 size_t strLen = inputString.length(); in Base64Encode() 32 encodedRes[i] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0xff) >> 2]; in Base64Encode() 34 encodedRes[i + 1] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0x03) << 4 | in Base64Encode() 35 (static_cast<unsigned int>(inputString[j + 1]) & 0xf0) >> 4]; in Base64Encode() 37 … encodedRes[i + 2] = base64CharSet[(static_cast<unsigned int>(inputString[j + 1]) & 0x0f) << 2 | in Base64Encode() 38 (static_cast<unsigned int>(inputString[j + 2]) & 0xc0) >> 6]; in Base64Encode() 40 encodedRes[i + 3] = base64CharSet[static_cast<unsigned int>(inputString[j + 2]) & 0x3f]; in Base64Encode()
|
| D | base64.h | 27 std::string Base64Encode(const std::string &inputString);
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_regexp_test.cpp | 234 JSHandle<EcmaString>& inputString, std::vector<JSHandle<EcmaString>>& result) in ExecCommon() argument 239 ASSERT_EQ(EcmaStringAccessor::Compare(instance, outputInput, inputString), 0); in ExecCommon() 266 JSHandle<EcmaString> inputString = in HWTEST_F_L0() local 271 ecmaRuntimeCallInfo->SetCallArg(0, inputString.GetTaggedValue()); in HWTEST_F_L0() 289 ExecCommon(thread, instance, execResult, inputString, result); in HWTEST_F_L0() 306 JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromASCII("123"); in HWTEST_F_L0() local 310 ecmaRuntimeCallInfo->SetCallArg(0, inputString.GetTaggedValue()); in HWTEST_F_L0() 329 ExecCommon(thread, instance, execResult, inputString, result); in HWTEST_F_L0() 364 JSHandle<EcmaString> inputString = in HWTEST_F_L0() local 366 std::vector<JSTaggedValue> args{inputString.GetTaggedValue()}; in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_regexp.h | 80 const JSHandle<JSTaggedValue> &inputString, bool useCache, 186 JSHandle<EcmaString> inputString, uint32_t inputLength); 189 static bool ShouldUseCache(JSThread *thread, JSHandle<EcmaString> inputString); 191 JSHandle<EcmaString> inputString, uint32_t &flags, 195 const JSHandle<JSTaggedValue> inputString, bool useCache); 203 JSHandle<EcmaString> inputString, int32_t lastIndex);
|
| D | builtins_regexp.cpp | 280 JSHandle<EcmaString> inputString = JSHandle<EcmaString>::Cast(inputStr); in RegExpTestFast() local 281 bool matchResult = RegExpExecInternal(thread, regexp, inputString, lastIndex); in RegExpTestFast() 597 JSHandle<JSTaggedValue> inputString = GetCallArg(argv, 0); in Match() local 598 JSHandle<EcmaString> stringHandle = JSTaggedValue::ToString(thread, inputString); in Match() 751 JSHandle<JSTaggedValue> inputString = GetCallArg(argv, 0); in MatchAll() local 752 JSHandle<EcmaString> stringHandle = JSTaggedValue::ToString(thread, inputString); in MatchAll() 831 … JSHandle<EcmaString> inputString, uint32_t inputLength) in RegExpReplaceFast() argument 844 JSHandle<JSTaggedValue> tagInputString = JSHandle<JSTaggedValue>::Cast(inputString); in RegExpReplaceFast() 853 useCache = ShouldUseCache(thread, inputString); in RegExpReplaceFast() 867 MatchAndReplace(thread, regexp, inputString, flags, in RegExpReplaceFast() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_segments.cpp | 127 icu::BreakIterator* breakIterator, const JSHandle<EcmaString> &inputString, in CreateSegmentDataObject() argument 156 …t::CreateDataPropertyOrThrow(thread, result, inputKey, JSHandle<JSTaggedValue>::Cast(inputString)); in CreateSegmentDataObject()
|
| D | js_segments.h | 99 icu::BreakIterator* breakIterator, const JSHandle<EcmaString> &inputString,
|
| /arkcompiler/ets_runtime/test/moduletest/regexp/ |
| D | regexp.js | 447 let inputString = "/vedio/av{avid}{cid}"; 448 let extractedContent = inputString.match(/\{([^{}]+)\}/g); 449 let replacedString = inputString.replace(/\{([^{}]+)\}/g, '(uuu)').replace(/\//g, "\\/");
|
| /arkcompiler/ets_runtime/ecmascript/napi/test/ |
| D | jsnapi_sample.cpp | 1789 std::string inputString = "Sample Test"; in HWTEST_F_L0() local 1791 Local<StringRef> stringValue = StringRef::NewFromUtf8(vm_, inputString.c_str()); in HWTEST_F_L0() 1795 stringValue->WriteUtf8(vm_, setBuffer, inputString.length()); in HWTEST_F_L0() 1802 resultString->WriteUtf8(vm_, getBuffer, inputString.length()); in HWTEST_F_L0() 1819 printString->WriteUtf8(vm_, printBuffer, inputString.length()); in HWTEST_F_L0()
|