Home
last modified time | relevance | path

Searched refs:regexp (Results 1 – 25 of 29) sorted by relevance

12

/arkcompiler/ets_frontend/ts2panda/src/expression/
DregularExpression.ts34 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/
DcastExpressionParentheses.ts75 (<any>/regexp/g);
76 AssertType((<any>/regexp/g), "any");
77 AssertType(<any>/regexp/g, "any");
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_regexp.h84 static JSTaggedValue RegExpExec(JSThread *thread, const JSHandle<JSTaggedValue> &regexp,
95 …static RegExpExecutor::MatchResult Matcher(JSThread *thread, const JSHandle<JSTaggedValue> &regexp,
101 static JSTaggedValue RegExpBuiltinExec(JSThread *thread, const JSHandle<JSTaggedValue> &regexp,
117 static JSTaggedValue RegExpReplaceFast(JSThread *thread, JSHandle<JSTaggedValue> &regexp,
137 CacheType type, const JSHandle<JSTaggedValue> &regexp,
Dbuiltins_regexp.cpp587 JSTaggedValue BuiltinsRegExp::RegExpReplaceFast(JSThread *thread, JSHandle<JSTaggedValue> &regexp, 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> &regexp, in Matcher() argument
[all …]
Dbuiltins_string.cpp599 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/
Dtest-invalid-regexp-flags-expected.txt1 SyntaxError: Invalid RegExp flag [test-invalid-regexp-flags.js:15:612]
/arkcompiler/ets_runtime/test/moduletest/builtins/
Dexpect_output.txt43 builtins regexp start
54 builtins regexp end
/arkcompiler/ets_runtime/ecmascript/tests/
Decma_context_test.cpp71 JSHandle<EcmaString> regexp = factory->NewFromASCII("\\g"); in HWTEST_F_L0() local
72 JSHandle<JSTaggedValue> value2(regexp); in HWTEST_F_L0()
Djs_regexp_iterator_test.cpp58 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/
Dbuiltins_regexp_test.cpp67 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 …]
Dbuiltins_string_test.cpp76 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/
DBUILD.gn16 host_moduletest_action("regexp") {
/arkcompiler/ets_runtime/test/moduletest/
DBUILD.gn112 "regexp",
219 "regexp",
/arkcompiler/ets_runtime/
DREADME_zh.md43 │ ├─ regexp # 正则引擎模块
DREADME.md32 │ ├─ regexp # Regular expression engine module
DBUILD.gn106 "//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/
DBUILD.gn192 "lexer/regexp/regexp.cpp",
280 "./lexer/regexp",
DCMakeLists.txt238 lexer/regexp/regexp.cpp
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt9 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/
Dlib_ark_builtins.d.ts620 match(regexp: string | RegExp): RegExpMatchArray | null;
622 matchAll(regexp: RegExp): IterableIterator;
636 search(regexp: string | RegExp): number;
/arkcompiler/ets_frontend/es2panda/parser/
DexpressionParser.cpp1060 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/
Des5_tests.txt4864 …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 …]
DCI_tests.txt1179 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 …]
Dintl_tests.txt64 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/
DsyntaxChecker.ts1253 function checkRegularExpression(regexp: ts.RegularExpressionLiteral): void {
1254 let regexpText = regexp.text;

12