| /arkcompiler/ets_runtime/test/moduletest/propertydetector/ |
| D | propertydetector.js | 32 let regexp = /([0-9])([a-z])/g variable 33 let newStr1 = str.replace(regexp, "$1" ); 44 regexp.__proto__ = {} 45 let newStr2 = str.replace(regexp, "$2" ); 50 regexp.__proto__ = p 52 let newStr3 = str.replace(regexp, "$3" );
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | escompat_RegExp.cpp | 127 VMHandle<EtsObject> regexp(coroutine, regexpObject->GetCoreType()); in SetFlags() local 129 auto *regexpClass = regexp->GetClass(); in SetFlags() 135 regexp->SetFieldObject(flagsField, newFlags->AsObject()); in SetFlags() 142 VMHandle<EtsObject> regexp(coroutine, regexpObject->GetCoreType()); in SetBuffer() local 143 auto *regexpClass = regexp->GetClass(); in SetBuffer() 152 regexp.GetPtr()->SetFieldObject(bufferField, etsBuffer->AsObject()); in SetBuffer() 159 VMHandle<EtsObject> regexp(coroutine, regexpObject->GetCoreType()); in SetGroupNames() local 160 auto *regexpClass = regexp->GetClass(); in SetGroupNames() 175 regexp.GetPtr()->SetFieldObject(groupNamesField, arrHandle.GetPtr()->AsObject()); in SetGroupNames() 183 VMHandle<EtsObject> regexp(coroutine, regexpObj->GetCoreType()); in EscompatRegExpCompile() local [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_regexp.h | 79 static JSTaggedValue RegExpExec(JSThread *thread, const JSHandle<JSTaggedValue> ®exp, 93 static bool IsFastRegExp(JSThread *thread, JSHandle<JSTaggedValue> regexp, 95 …static bool GetFlag(JSThread *thread, const JSHandle<JSTaggedValue> regexp, uint32_t flag, bool is… 96 …static bool GetOriginalFlag(JSThread *thread, const JSHandle<JSTaggedValue> regexp, uint32_t flag); 97 static void SetLastIndex(JSThread *thread, const JSHandle<JSTaggedValue> regexp, 99 …static int64_t GetLastIndex(JSThread *thread, const JSHandle<JSTaggedValue> regexp, bool isFastPat… 100 …STaggedValue RegExpBuiltinExecWithoutResult(JSThread *thread, const JSHandle<JSTaggedValue> regexp, 104 static JSTaggedValue RegExpBuiltinExec(JSThread *thread, const JSHandle<JSTaggedValue> regexp, 108 const JSHandle<JSTaggedValue> regexp, 110 static JSTaggedValue RegExpSearchFast(JSThread *thread, const JSHandle<JSTaggedValue> regexp, [all …]
|
| D | builtins_regexp.cpp | 206 bool BuiltinsRegExp::IsFastRegExp(JSThread *thread, JSHandle<JSTaggedValue> regexp, in IsFastRegExp() argument 211 JSHClass *hclass = JSHandle<JSObject>::Cast(regexp)->GetJSHClass(); in IsFastRegExp() 218 …JSTaggedValue lastIndex = JSHandle<JSObject>::Cast(regexp)->GetPropertyInlinedProps(LAST_INDEX_OFF… in IsFastRegExp() 257 JSTaggedValue BuiltinsRegExp::RegExpTestFast(JSThread *thread, JSHandle<JSTaggedValue> regexp, in RegExpTestFast() argument 262 uint32_t lastIndex = static_cast<uint32_t>(GetLastIndex(thread, regexp, true)); in RegExpTestFast() 268 … RegExpExecResultCache::TEST_TYPE, regexp, in RegExpTestFast() 277 SetLastIndex(thread, regexp, JSTaggedValue(0), true); in RegExpTestFast() 281 bool matchResult = RegExpExecInternal(thread, regexp, inputString, lastIndex); in RegExpTestFast() 283 bool global = GetOriginalFlag(thread, regexp, RegExpParser::FLAG_GLOBAL); in RegExpTestFast() 284 bool sticky = GetOriginalFlag(thread, regexp, RegExpParser::FLAG_STICKY); in RegExpTestFast() [all …]
|
| D | builtins_string.cpp | 610 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in Match() local 611 if (thisTag->IsString() && regexp->IsECMAObject()) { in Match() 612 if (BuiltinsRegExp::IsFastRegExp(thread, regexp, BuiltinsRegExp::RegExpSymbol::MATCH)) { in Match() 613 return BuiltinsRegExp::RegExpMatch(thread, regexp, thisTag, true); in Match() 619 if (!regexp->IsUndefined() && !regexp->IsNull()) { in Match() 620 JSHandle<JSTaggedValue> matcher = JSObject::GetMethod(thread, regexp, matchTag); in Match() 624 EcmaInterpreter::NewRuntimeCallInfo(thread, matcher, regexp, undefined, 1); in Match() 633 … JSHandle<JSTaggedValue> rx(thread, BuiltinsRegExp::RegExpCreate(thread, regexp, undifinedHandle)); in Match() 651 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in MatchAll() local 658 if (!regexp->IsUndefined() && !regexp->IsNull()) { in MatchAll() [all …]
|
| /arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
| D | clang_tidy_check.py | 296 regexp = re.compile(".*/third_party/.*") 297 if regexp.search(file_path): 312 regexp = None 314 regexp = re.compile(filename_filter) 322 if regexp and not regexp.search(file_path): 342 regexp = re.compile(".*/tests/.*") 352 if not regexp.search(file_path): 374 regexp = re.compile(".*DPANDA_ENABLE_RELAYOUT_PROFILE.*") 380 if not regexp.search(keys): 431 regexp = re.compile("-I[^ ]*/third_party[^ ]*") [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_regexp_iterator.cpp | 52 JSHandle<JSTaggedValue> regexp(thread, jsIterator->GetIteratingRegExp()); in Next() local 59 bool isFastPath = BuiltinsRegExp::IsFastRegExp(thread, regexp); in Next() 61 match.Update(BuiltinsRegExp::RegExpBuiltinExec(thread, regexp, inputStr, isFastPath, true)); in Next() 63 match.Update(BuiltinsRegExp::RegExpExec(thread, regexp, inputStr, false)); in Next() 94 …uint32_t lastIndex = static_cast<uint32_t>(BuiltinsRegExp::GetLastIndex(thread, regexp, isFastPath… in Next() 98 BuiltinsRegExp::SetLastIndex(thread, regexp, JSTaggedValue(nextIndex), isFastPath); in Next()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | RegExp.sts | 86 private regexp: RegExp 89 constructor(regexp: RegExp, string: String) { 90 this.regexp = regexp 95 let match = this.regexp.exec(this.string) 101 … let nextIndex = RegExp.advanceStringIndex(this.string, this.regexp.lastIndex, this.regexp.unicode) 102 this.regexp.lastIndex = nextIndex 113 private regexp: RegExp 117 constructor(regexp: RegExp, string: String) { 118 this.regexp = regexp 124 let match = this.regexp.exec(this.string) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | RegExpMatchAllTest.sts | 31 let regexp = new RegExp(".", "g") 33 regexp.exec(s) 34 failure += checkTestResult(regexp.lastIndex as int, 1) 35 let iter = s.matchAll(regexp) 36 regexp.exec(s) 37 failure += checkTestResult(regexp.lastIndex as int, 2) 41 failure += checkTestResult(regexp.lastIndex as int, 2)
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | builtinsregexp.js | 69 var regexp = /(\d+)/g variable 71 print(regexp.test(str8));
|
| D | expect_output.txt | 262 builtins regexp start 275 regexp.exec succ 278 builtins regexp end
|
| /arkcompiler/runtime_core/static_core/scripts/code_style/ |
| D | clang_tidy_rename.py | 128 regexp = None 130 regexp = re.compile(filename_filter) 141 if regexp is not None and not regexp.search(file_path):
|
| D | doxygen_style_check.py | 198 for regexp in regexps_for_wrong_styles: 201 strings = regexp.findall(f.read()) 220 for regexp in regexps_for_fine_styles: 223 strings = regexp.findall(f.read())
|
| /arkcompiler/ets_runtime/test/moduletest/regexp/ |
| D | regexp.js | 24 let regexp = /[]/; variable 25 print(JSON.stringify(str.replace(regexp,"b"))); 29 let regexp = /[]/g; 30 print(JSON.stringify(str.replace(regexp,"b"))); 34 let regexp = /[]/u; 35 print(JSON.stringify(str.replace(regexp,"b"))); 39 let regexp = /[\]/; 40 print(JSON.stringify(str.replace(regexp,"b"))); 838 let regexp = /([0-9])([a-z])/g 839 let newStr1 = str1.replace(regexp, "$1" ); [all …]
|
| D | BUILD.gn | 16 host_moduletest_action("regexp") {
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | test_common.h | 57 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in CreateJSRegexpByPatternAndFlags() 60 …uto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8); in CreateJSRegexpByPatternAndFlags() 61 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in CreateJSRegexpByPatternAndFlags()
|
| D | ecma_context_test.cpp | 50 JSHandle<EcmaString> regexp = factory->NewFromASCII("\\g"); in HWTEST_F_L0() local 51 JSHandle<JSTaggedValue> value2(regexp); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/test/perform/string/ |
| D | expect_output.txt | 14 string replace regexp flag is g: 44 15 string replace regexp flag is gi :15 16 string replace regexp pattern is /([^d]*)(d*)([^w]*)/ : 161 19 string split into regexp.split : 22
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-invalid-regexp-flags-expected.txt | 1 SyntaxError: Invalid RegExp flag [test-invalid-regexp-flags.js:16:8]
|
| /arkcompiler/ets_frontend/test262/ |
| D | module_tests.txt | 440 await-expr-regexp.js 484 block-await-expr-regexp.js 502 export-class-decl-await-expr-regexp.js 514 export-dflt-assign-expr-await-expr-regexp.js 526 export-dft-class-decl-await-expr-regexp.js 538 export-lex-decl-await-expr-regexp.js 550 export-var-await-expr-regexp.js 562 for-await-await-expr-regexp.js 574 for-await-expr-regexp.js 586 for-in-await-expr-regexp.js [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/setobjectwithproto/ |
| D | setobjectwithproto.js | 56 /regexp/,
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_regexp_test.cpp | 67 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in HWTEST_F_L0() local 70 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0() 71 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in HWTEST_F_L0() 102 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in HWTEST_F_L0() local 106 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0() 107 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in HWTEST_F_L0() 290 JSHandle<JSTaggedValue> regexp = JSHandle<JSTaggedValue>::Cast(value); in HWTEST_F_L0() local 292 …JSHandle<JSTaggedValue> lastIndexObj(JSObject::GetProperty(thread, regexp, lastIndexHandle).GetVal… in HWTEST_F_L0() 330 JSHandle<JSTaggedValue> regexp = JSHandle<JSTaggedValue>::Cast(value); in HWTEST_F_L0() local 332 …JSHandle<JSTaggedValue> lastIndexObj(JSObject::GetProperty(thread, regexp, lastIndexHandle).GetVal… in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/test/fuzztest/jsvaluerefiscontainer_fuzzer/ |
| D | jsvaluerefiscontainer_fuzzer.cpp | 97 Local<JSValueRef> regexp = JSNApiHelper::ToLocal<JSRegExp>(argumentTag); in JSValueRefIsRegExpFuzzTest() local 98 regexp->IsRegExp(vm); in JSValueRefIsRegExpFuzzTest()
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/test-lists/test262/ |
| D | test262-long-excluded.txt | 15 language/literals/regexp/S7.8.5_A1.1_T2.js 16 language/literals/regexp/S7.8.5_A2.1_T2.js
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/13.compilation_units_packages_and_modules/01.separate_modules/modules/ |
| D | stdlib_implicit_import.sts | 63 export function regexp(): Object {
|