| /arkcompiler/ets_frontend/ts2panda/src/expression/ |
| D | regularExpression.ts | 34 export function compileRegularExpressionLiteral(compiler: Compiler, regexp: ts.RegularExpressionLit… 36 let regexpText = regexp.text; 44 throw new DiagnosticError(regexp, DiagnosticCode.Incorrect_regular_expression); 48 let flagsBits = updateExpressionFlags(regexpFlags, regexp); 49 pandaGen.createRegExpWithLiteral(regexp, regexpPattern, flagsBits); 53 function updateExpressionFlags(regexpFlags: string, regexp: ts.RegularExpressionLiteral): number { 77 let file = jshelpers.getSourceFileOfNode(regexp); 78 …throw new DiagnosticError(regexp, DiagnosticCode.Invalid_regular_expression_flag_0, file, [regexpF… 81 let file = jshelpers.getSourceFileOfNode(regexp); 82 …throw new DiagnosticError(regexp, DiagnosticCode.Invalid_regular_expression_flag_0, file, [regexpF…
|
| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | castExpressionParentheses.ts | 75 (<any>/regexp/g); 76 AssertType((<any>/regexp/g), "any"); 77 AssertType(<any>/regexp/g, "any");
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_regexp.h | 84 static JSTaggedValue RegExpExec(JSThread *thread, const JSHandle<JSTaggedValue> ®exp, 95 …static RegExpExecutor::MatchResult Matcher(JSThread *thread, const JSHandle<JSTaggedValue> ®exp, 101 static JSTaggedValue RegExpBuiltinExec(JSThread *thread, const JSHandle<JSTaggedValue> ®exp, 117 static JSTaggedValue RegExpReplaceFast(JSThread *thread, JSHandle<JSTaggedValue> ®exp, 137 CacheType type, const JSHandle<JSTaggedValue> ®exp,
|
| D | builtins_regexp.cpp | 587 JSTaggedValue BuiltinsRegExp::RegExpReplaceFast(JSThread *thread, JSHandle<JSTaggedValue> ®exp, in RegExpReplaceFast() argument 590 ASSERT(regexp->IsJSRegExp()); in RegExpReplaceFast() 594 JSTaggedValue bufferData = JSRegExp::Cast(regexp->GetTaggedObject())->GetByteCodeBuffer(); in RegExpReplaceFast() 601 JSHandle<JSRegExp> regexpHandle(regexp); in RegExpReplaceFast() 607 ObjectFastOperator::FastGetPropertyByValue(thread, regexp.GetTaggedValue(), in RegExpReplaceFast() 638 … RegExpExecResultCache::REPLACE_TYPE, regexp, in RegExpReplaceFast() 659 …RegExpExecutor::MatchResult matchResult = Matcher(thread, regexp, strBuffer, inputLength, lastInde… in RegExpReplaceFast() 663 ObjectFastOperator::FastSetPropertyByValue(thread, regexp.GetTaggedValue(), in RegExpReplaceFast() 680 ObjectFastOperator::FastSetPropertyByValue(thread, regexp.GetTaggedValue(), in RegExpReplaceFast() 1324 …cutor::MatchResult BuiltinsRegExp::Matcher(JSThread *thread, const JSHandle<JSTaggedValue> ®exp, in Matcher() argument [all …]
|
| D | builtins_string.cpp | 599 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in Match() local 602 if (regexp->IsJSRegExp()) { in Match() 604 JSHandle<JSRegExp> re(regexp); in Match() 608 … RegExpExecResultCache::MATCH_TYPE, regexp); in Match() 613 if (!regexp->IsUndefined() && !regexp->IsNull()) { in Match() 614 if (regexp->IsECMAObject()) { in Match() 615 JSHandle<JSTaggedValue> matcher = JSObject::GetMethod(thread, regexp, matchTag); in Match() 620 EcmaInterpreter::NewRuntimeCallInfo(thread, matcher, regexp, undefined, 1); in Match() 630 … JSHandle<JSTaggedValue> rx(thread, BuiltinsRegExp::RegExpCreate(thread, regexp, undifinedHandle)); in Match() 648 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in MatchAll() local [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-invalid-regexp-flags-expected.txt | 1 SyntaxError: Invalid RegExp flag [test-invalid-regexp-flags.js:15:612]
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | expect_output.txt | 43 builtins regexp start 54 builtins regexp end
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | ecma_context_test.cpp | 71 JSHandle<EcmaString> regexp = factory->NewFromASCII("\\g"); in HWTEST_F_L0() local 72 JSHandle<JSTaggedValue> value2(regexp); in HWTEST_F_L0()
|
| D | js_regexp_iterator_test.cpp | 58 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in CreateJSRegexpByPatternAndFlags() local 61 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in CreateJSRegexpByPatternAndFlags() 62 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in CreateJSRegexpByPatternAndFlags()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_regexp_test.cpp | 67 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in CreateBuiltinsRegExpObjByPatternAndFlags() local 71 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in CreateBuiltinsRegExpObjByPatternAndFlags() 72 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in CreateBuiltinsRegExpObjByPatternAndFlags() 112 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in HWTEST_F_L0() local 115 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0() 116 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in HWTEST_F_L0() 147 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in HWTEST_F_L0() local 151 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0() 152 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in HWTEST_F_L0() 330 JSHandle<JSTaggedValue> regexp = JSHandle<JSTaggedValue>::Cast(value); in HWTEST_F_L0() local [all …]
|
| D | builtins_string_test.cpp | 76 JSHandle<JSFunction> regexp(env->GetRegExpFunction()); in CreateBuiltinsStringRegExpObjByPatternAndFlags() local 80 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, regexp.GetTaggedValue(), … in CreateBuiltinsStringRegExpObjByPatternAndFlags() 81 ecmaRuntimeCallInfo->SetFunction(regexp.GetTaggedValue()); in CreateBuiltinsStringRegExpObjByPatternAndFlags()
|
| /arkcompiler/ets_runtime/test/moduletest/regexp/ |
| D | BUILD.gn | 16 host_moduletest_action("regexp") {
|
| /arkcompiler/ets_runtime/test/moduletest/ |
| D | BUILD.gn | 112 "regexp", 219 "regexp",
|
| /arkcompiler/ets_runtime/ |
| D | README_zh.md | 43 │ ├─ regexp # 正则引擎模块
|
| D | README.md | 32 │ ├─ regexp # Regular expression engine module
|
| D | BUILD.gn | 106 "//arkcompiler/ets_runtime/ecmascript/regexp/tests:unittest", 140 "ecmascript/regexp/tests:host_unittest", 758 "ecmascript/regexp/regexp_executor.cpp", 759 "ecmascript/regexp/regexp_opcode.cpp", 760 "ecmascript/regexp/regexp_parser.cpp", 761 "ecmascript/regexp/regexp_parser_cache.cpp",
|
| /arkcompiler/ets_frontend/es2panda/ |
| D | BUILD.gn | 192 "lexer/regexp/regexp.cpp", 280 "./lexer/regexp",
|
| D | CMakeLists.txt | 238 lexer/regexp/regexp.cpp
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262skiplist.txt | 9 annexB/language/literals/regexp/class-escape.js 3274 language/literals/regexp/early-err-bad-flag.js 3275 language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.js 3276 language/literals/regexp/named-groups/invalid-dangling-groupname-4.js 3277 language/literals/regexp/named-groups/invalid-dangling-groupname-5.js 3278 language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.js 3279 language/literals/regexp/named-groups/invalid-incomplete-groupname-4.js 3280 language/literals/regexp/named-groups/invalid-incomplete-groupname-5.js 3281 language/literals/regexp/named-groups/invalid-incomplete-groupname-6.js 3282 language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.js [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | lib_ark_builtins.d.ts | 620 match(regexp: string | RegExp): RegExpMatchArray | null; 622 matchAll(regexp: RegExp): IterableIterator; 636 search(regexp: string | RegExp): number;
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | expressionParser.cpp | 1060 auto regexp = lexer_->ScanRegExp(); in ParsePrimaryExpression() local 1062 lexer::RegExpParser reParser(regexp, Allocator()); in ParsePrimaryExpression() 1070 auto *regexpNode = AllocNode<ir::RegExpLiteral>(regexp.patternStr, regexp.flagsStr); in ParsePrimaryExpression()
|
| /arkcompiler/ets_frontend/test262/ |
| D | es5_tests.txt | 4864 …ent-is-object-and-instance-is-number-object-have-overrided-to-string-function-that-return-regexp.js 4865 built-ins/String/prototype/split/argument-is-regexp-and-instance-is-number.js 4866 built-ins/String/prototype/split/argument-is-regexp-a-z-and-instance-is-string-abc.js 4868 built-ins/String/prototype/split/argument-is-regexp-d-and-instance-is-string-dfe23iu-34-65.js 4869 built-ins/String/prototype/split/argument-is-regexp-l-and-instance-is-string-hello.js 4870 built-ins/String/prototype/split/argument-is-regexp-reg-exp-d-and-instance-is-string-dfe23iu-34-65.… 4871 built-ins/String/prototype/split/argument-is-regexp-s-and-instance-is-string-a-b-c-de-f.js 4872 built-ins/String/prototype/split/argument-is-regexp-x-and-instance-is-string-a-b-c-de-f.js 4891 built-ins/String/prototype/split/arguments-are-regexp-l-and-0-and-instance-is-string-hello.js 4892 built-ins/String/prototype/split/arguments-are-regexp-l-and-1-and-instance-is-string-hello.js [all …]
|
| D | CI_tests.txt | 1179 built-ins/String/prototype/includes/return-abrupt-from-searchstring-regexp-test.js 1239 built-ins/String/prototype/split/argument-is-regexp-and-instance-is-number.js 1240 built-ins/String/prototype/split/argument-is-regexp-d-and-instance-is-string-dfe23iu-34-65.js 1243 built-ins/String/prototype/split/arguments-are-regexp-l-and-void-0-and-instance-is-string-hello.js 3029 language/literals/regexp/u-surrogate-pairs-atom-dot.js 3030 language/literals/regexp/invalid-braced-quantifier-range.js 3031 language/literals/regexp/S7.8.5_A3.1_T1.js 3032 language/literals/regexp/u-invalid-oob-decimal-escape.js 3033 language/literals/regexp/u-surrogate-pairs-atom-escape-decimal.js 3034 language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.js [all …]
|
| D | intl_tests.txt | 64 intl402/Collator/legacy-regexp-statics-not-modified.js 220 intl402/DateTimeFormat/legacy-regexp-statics-not-modified.js 654 intl402/NumberFormat/legacy-regexp-statics-not-modified.js
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | syntaxChecker.ts | 1253 function checkRegularExpression(regexp: ts.RegularExpressionLiteral): void { 1254 let regexpText = regexp.text;
|