| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_parser_cache.cpp | 39 size_t RegExpParserCache::GetHash(EcmaString *pattern, const uint32_t flags) in GetHash() argument 41 auto hashcode = EcmaStringAccessor(pattern).GetHashcode(); in GetHash() 45 std::pair<JSTaggedValue, size_t> RegExpParserCache::GetCache(EcmaString *pattern, const uint32_t fl… in GetCache() argument 48 size_t hash = GetHash(pattern, flags); in GetCache() 50 if (info.flags_ != flags || !EcmaStringAccessor::StringsAreEqual(info.pattern_, pattern)) { in GetCache() 57 void RegExpParserCache::SetCache(EcmaString *pattern, const uint32_t flags, in SetCache() argument 61 size_t hash = GetHash(pattern, flags); in SetCache() 63 info.pattern_ = pattern; in SetCache()
|
| D | regexp_parser_cache.h | 32 bool IsInCache(EcmaString *pattern, const uint32_t flags); 33 std::pair<JSTaggedValue, size_t> GetCache(EcmaString *pattern, const uint32_t flags, 35 void SetCache(EcmaString *pattern, const uint32_t flags, const JSTaggedValue codeBuffer, 40 size_t GetHash(EcmaString *pattern, const uint32_t flags);
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | builtinsregexp.js | 52 var pattern = /[A-Z]{3}/g; variable 54 var res1 = testStr.match(pattern); 57 var res2 = testStr.match(pattern); 60 var res3 = testStr.match(pattern);
|
| /arkcompiler/runtime_core/scripts/ |
| D | run-check-concurrency-format.sh | 58 for pattern in "${PATTERNS[@]}"; do 59 if grep ${pattern} ${FILE}; then 60 …echo "File ${FILE} contains '${pattern}' usage. Please use wrapper functions from 'os/mutex.h' ins…
|
| /arkcompiler/runtime_core/static_core/gn/build/ |
| D | cmake_configure_file.py | 33 pattern = r'@([^@]*)@|\$\{([^}]*)\}' 47 def replace(pattern): argument 48 key = pattern.group(1) or pattern.group(2) 54 in_line = re.sub(pattern, replace, in_line)
|
| /arkcompiler/runtime_core/gn/build/ |
| D | cmake_configure_file.py | 33 pattern = r'@([^@]*)@|\$\{([^}]*)\}' 47 def replace(pattern): argument 48 key = pattern.group(1) or pattern.group(2) 54 in_line = re.sub(pattern, replace, in_line)
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | README.md | 25 * **EVENT** (event: pattern) search event within all events 26 * **EVENT_NEXT** (event: pattern) ordered search event, i.e. search from position of the last found… 27 * **EVENT_NOT** (event: pattern) ensure event is not occurred 28 * **EVENT_NEXT_NOT** (event: pattern) ensure event is not occurred after current position 32 * **INST** (inst: pattern) search specified instruction in the ir dump file specified by commands `… 33 * **INST_NOT** (inst: pattern) equal to `NOT INST`, i.e. check that instruction is not exist 34 * **INST_NEXT_NOT** (event: pattern) ensure instruction is not occurred after current position 40 * **ASM_INST** (inst: pattern) select a specified instruction in disasm file, next "ASM*" checks wi… 41 * **ASM/ASM_NEXT/ASM_NOT/ASM_NEXT_NOT** (inst: pattern) same as other similar checks, but search on… 43 …(block: pattern) limits the search for instructions to one block. The block is defined by lines "p… [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/base/ |
| D | destructuring.cpp | 243 void Destructuring::Compile(PandaGen *pg, const ir::Expression *pattern) in Compile() argument 248 pg->StoreAccumulator(pattern, rhs); in Compile() 250 if (pattern->IsArrayPattern() || pattern->IsArrayExpression()) { in Compile() 251 auto *arrExpr = pattern->IsArrayPattern() ? pattern->AsArrayPattern() : in Compile() 252 pattern->AsArrayExpression(); in Compile() 255 auto *objExpr = pattern->IsObjectPattern() ? pattern->AsObjectPattern() : in Compile() 256 pattern->AsObjectExpression(); in Compile() 260 pg->LoadAccumulator(pattern, rhs); in Compile()
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | README.md | 25 * **EVENT** (event: pattern) search event within all events 26 * **EVENT_NEXT** (event: pattern) ordered search event, i.e. search from position of the last found… 27 * **EVENT_NOT** (event: pattern) ensure event is not occurred 28 * **EVENT_NEXT_NOT** (event: pattern) ensure event is not occurred after current position 32 * **INST** (inst: pattern) search specified instruction in the ir dump file specified by commands `… 33 * **INST_NOT** (inst: pattern) equal to `NOT INST`, i.e. check that instruction is not exist 34 * **INST_NEXT_NOT** (event: pattern) ensure instruction is not occurred after current position 40 * **ASM_INST** (inst: pattern) select a specified instruction in disasm file, next "ASM*" checks wi… 41 * **ASM/ASM_NEXT/ASM_NOT/ASM_NEXT_NOT** (inst: pattern) same as other similar checks, but search on… 44 *pattern* can be a string(surrounded by quotes) or regex(surrounded by slashes): string - `"SearchP…
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_regexp_iterator_test.cpp | 54 …STaggedValue CreateJSRegexpByPatternAndFlags(JSThread *thread, const JSHandle<EcmaString> &pattern, in CreateJSRegexpByPatternAndFlags() argument 64 ecmaRuntimeCallInfo->SetCallArg(0, pattern.GetTaggedValue()); in CreateJSRegexpByPatternAndFlags() 77 JSHandle<EcmaString> pattern = factory->NewFromASCII("\\w+"); in HWTEST_F_L0() local 80 …JSHandle<JSTaggedValue> matchHandle(thread, CreateJSRegexpByPatternAndFlags(thread, pattern, flags… in HWTEST_F_L0() 93 JSHandle<EcmaString> pattern = factory->NewFromASCII("-[0-9]+"); in HWTEST_F_L0() local 99 JSTaggedValue jsRegExp = CreateJSRegexpByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/templates/ |
| D | messages.rb | 21 def scan_until_exclusive(scanner, pattern) argument 22 scanner.scan_until(Regexp.new(Regexp.escape(pattern)))&.delete_suffix(pattern)
|
| /arkcompiler/runtime_core/static_core/templates/ |
| D | messages.rb | 21 def scan_until_exclusive(scanner, pattern) argument 22 scanner.scan_until(Regexp.new(Regexp.escape(pattern)))&.delete_suffix(pattern)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | RegExp.ets | 342 * Constructs a new RegExp using pattern 344 * @param pattern description of a pattern 346 public constructor(pattern: String) { 347 this(pattern, "") 351 * Constructs a new RegExp using pattern and flags 353 * @param pattern description of a pattern 357 public constructor(pattern: String, flags: String) { 358 this.pattern_ = pattern 360 this.source_ = RegExp.escapePattern(pattern) 372 * @param pattern the text of the regular expression [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
| D | regExpLiteral.cpp | 38 compiler::VReg pattern = pg->AllocReg(); in Compile() local 45 pg->StoreAccumulator(this, pattern); in Compile()
|
| D | regExpLiteral.h | 35 explicit RegExpLiteral(util::StringView pattern, util::StringView flags) in RegExpLiteral() argument 36 : Literal(AstNodeType::REGEXP_LITERAL), pattern_(pattern), flags_(flags) in RegExpLiteral()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/base/ |
| D | destructuring.cpp | 270 void Destructuring::Compile(PandaGen *pg, const ir::Expression *pattern) in Compile() argument 275 pg->StoreAccumulator(pattern, rhs); in Compile() 277 if (pattern->IsArrayPattern()) { in Compile() 278 GenArray(pg, pattern->AsArrayPattern()); in Compile() 280 GenObject(pg, pattern->AsObjectPattern(), rhs); in Compile() 283 pg->LoadAccumulator(pattern, rhs); in Compile()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_regexp.cpp | 47 JSHandle<JSTaggedValue> pattern = GetCallArg(argv, 0); in RegExpConstructor() local 50 bool patternIsRegExp = JSObject::IsRegExp(thread, pattern); in RegExpConstructor() 70 thread, pattern.GetTaggedValue(), constructorString.GetTaggedValue()); in RegExpConstructor() 75 return pattern.GetTaggedValue(); in RegExpConstructor() 81 if (pattern->IsECMAObject()) { in RegExpConstructor() 82 JSHandle<JSObject> patternObj = JSHandle<JSObject>::Cast(pattern); in RegExpConstructor() 88 JSHandle<JSRegExp> patternReg(thread, JSRegExp::Cast(pattern->GetTaggedObject())); in RegExpConstructor() 106 patternTemp = JSObject::GetProperty(thread, pattern, sourceString).GetValue(); in RegExpConstructor() 112 flagsTemp = JSObject::GetProperty(thread, pattern, flagsString).GetValue(); in RegExpConstructor() 122 patternTemp = pattern; in RegExpConstructor() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | arktsconfig.cpp | 114 std::string pattern = value.is_absolute() ? value.string() : (base_ / value).string(); in Match() local 119 pattern = std::regex_replace(pattern, std::regex("\\*\\*/"), ".*"); in Match() 121 pattern = std::regex_replace(pattern, std::regex("([^\\.])\\*"), "$1[^/]*"); in Match() 123 pattern = std::regex_replace(pattern, std::regex("\\?"), "[^/]"); in Match() 127 pattern += R"(.*(\.ts|\.d\.ts|\.ets)$)"; in Match() 130 auto res = std::regex_match(path, m, std::regex(pattern)); in Match()
|
| /arkcompiler/ets_frontend/ets2panda/ir/expressions/literals/ |
| D | regExpLiteral.h | 32 …explicit RegExpLiteral(util::StringView pattern, lexer::RegExpFlags flags, util::StringView flagsS… in RegExpLiteral() argument 33 … : Literal(AstNodeType::REGEXP_LITERAL), pattern_(pattern), flags_(flags), flagsStr_(flagsStr) in RegExpLiteral()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_date_time_format.cpp | 216 HourCycleOption HourCycleFromPattern(const icu::UnicodeString pattern) in HourCycleFromPattern() argument 219 for (int32_t i = 0; i < pattern.length(); i++) { in HourCycleFromPattern() 220 char16_t ch = pattern[i]; in HourCycleFromPattern() 307 icu::UnicodeString pattern(""); in DateTimeStylePattern() local 308 pattern = result->toPattern(pattern); in DateTimeStylePattern() 309 icu::UnicodeString skeleton = icu::DateTimePatternGenerator::staticGetSkeleton(pattern, status); in DateTimeStylePattern() 311 if (hc == HourCycleFromPattern(pattern)) { in DateTimeStylePattern() 315 pattern = generator->getBestPattern(skeleton, UDATPG_MATCH_HOUR_FIELD_LENGTH, status); in DateTimeStylePattern() 316 result = std::make_unique<icu::SimpleDateFormat>(pattern, icuLocale, status); in DateTimeStylePattern() 585 icu::UnicodeString pattern = ChangeHourCyclePattern( in InitializeDateTimeFormat() local [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | compilerUtils.ts | 39 export function compileDestructuring(pattern: ts.BindingOrAssignmentPattern, pandaGen: PandaGen, co… 41 pandaGen.storeAccumulator(pattern, rhs); 43 if (isArrayBindingOrAssignmentPattern(pattern)) { 44 compileArrayDestructuring(<ts.ArrayBindingOrAssignmentPattern>pattern, pandaGen, compiler); 47 if (isObjectBindingOrAssignmentPattern(pattern)) { 48 … compileObjectDestructuring(<ts.ObjectBindingOrAssignmentPattern>pattern, pandaGen, compiler); 51 pandaGen.loadAccumulator(pattern, rhs);
|
| /arkcompiler/runtime_core/static_core/disassembler/tests/ |
| D | metadata_test.cpp | 129 auto matchString = [](const char *pattern, const std::string &str) { in TEST() argument 130 auto regex = std::regex(pattern); in TEST() 198 auto matchString = [](const char *pattern, const std::string &str) { in TEST() argument 199 auto regex = std::regex(pattern); in TEST()
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
| D | test-func-param6-expected.txt | 1 SyntaxError: A binding pattern parameter cannot be optional in an implementation signature. [test-f…
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-func-param6-expected.txt | 1 SyntaxError: A binding pattern parameter cannot be optional in an implementation signature [test-fu…
|
| D | test-ts-parameter-property11-expected.txt | 1 SyntaxError: A parameter property may not be declared using a binding pattern. [test-ts-parameter-p…
|