Home
last modified time | relevance | path

Searched full:match (Results 1 – 25 of 110) sorted by relevance

12345

/arkcompiler/runtime_core/tests/checked/
Dchecker.rb65 def match_str(match) argument
66 match.is_a?(Regexp) ? "/#{match.source}/" : match
69 def contains?(str, match) argument
70 return str =~ match if match.is_a? Regexp
72 raise_error "Wrong type for search: #{match.class}" unless match.is_a? String
73 str.include? match
91 def find(match) argument
92 return if match.nil?
94 @current_index = @lines.index { |line| contains?(line, match) }
95 raise_error "#{@name} not found: #{match_str(match)}" if @current_index.nil?
[all …]
/arkcompiler/ets_frontend/es2panda/test/
Dtest262util.py126 match = self.includes.search(header)
127 includes = list(map(lambda e: e.strip(), match.group(
128 'includes').split(','))) if match else []
130 match = self.includes2.search(header)
131 includes += list(map(lambda e: e.strip(), match.group(
132 'includes').split('-')))[1:] if match else []
136 match = self.flags.search(header)
138 match.group('flags').split(','))) if match else []
143 match = self.negative.search(header)
144 negative_phase = match.group('phase') if match else 'pass'
[all …]
/arkcompiler/ets_runtime/test/moduletest/builtins/
Dbuiltinsregexp.js26 const data = url.match(/(?<=\/)\w+(.jpg)$/);
37 // Test 3 - RegExp $1 .. $9 match the lastest successful results
44 "abc".match(/(a)/);
54 var res1 = testStr.match(pattern);
57 var res2 = testStr.match(pattern);
60 var res3 = testStr.match(pattern);
/arkcompiler/ets_runtime/ecmascript/
Djs_regexp_iterator.cpp60 // 9. Let match be ? RegExpExec(R, S). in Next()
61 JSTaggedValue match = BuiltinsRegExp::RegExpExec(thread, regexHandle, inputStr, false); in Next() local
62 JSHandle<JSTaggedValue> matchHandle(thread, match); in Next()
65 // 10. If match is null, then in Next()
74 // i. Let matchStr be ? ToString(? Get(match, "0")). in Next()
97 // iii. Return ! CreateIterResultObject(match, false). in Next()
102 // ii. Return ! CreateIterResultObject(match, false). in Next()
Djs_displaynames.cpp235 … // a. If code does not match the unicode_language_id production, throw a RangeError exception. in CanonicalCodeForDisplayNames()
241 THROW_TYPE_ERROR_AND_RETURN(thread, "not match the language id", code); in CanonicalCodeForDisplayNames()
244 THROW_TYPE_ERROR_AND_RETURN(thread, "not match the unicode_language_id", code); in CanonicalCodeForDisplayNames()
260 … // a. If code does not match the unicode_region_subtag production, throw a RangeError exception. in CanonicalCodeForDisplayNames()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp71 ASSERT_TRUE(!loader.Match(expectRecordName, EntityId(10))); in HWTEST_F_L0()
74 ASSERT_TRUE(loader.Match(expectRecordName, EntityId(10))); in HWTEST_F_L0()
118 ASSERT_TRUE(loader.Match(expectRecordName, EntityId(10))); in HWTEST_F_L0()
119 ASSERT_TRUE(loader.Match(expectRecordName, EntityId(20))); in HWTEST_F_L0()
120 ASSERT_TRUE(!loader.Match(expectRecordName, EntityId(15))); in HWTEST_F_L0()
123 ASSERT_TRUE(loader.Match(expectRecordName, EntityId(15))); in HWTEST_F_L0()
162 ASSERT_TRUE(!loader.Match(expectRecordName, EntityId(10))); in HWTEST_F_L0()
165 ASSERT_TRUE(loader.Match(expectRecordName, EntityId(10))); in HWTEST_F_L0()
167 ASSERT_TRUE(loader.Match(expectRecordName1, EntityId(15))); in HWTEST_F_L0()
196 ASSERT_TRUE(loader.Match(expectRecordName, EntityId(10))); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/test262/
Deshost.patch106 + const matches = syntaxErrorMessage.match();
134 + let match = str.match(errorRe1);
135 + if (match) {
137 + name: match[1],
138 + message: match[2],
144 + let errors = str.match(/[(](\d+),(\d+)[)]: (.*)/gm);
166 + errors = str.match(errorRe2);
Des2abc_skip_tests.json100 "built-ins/RegExp/match-indices/indices-array-unicode-property-names.js",
101 "built-ins/RegExp/match-indices/indices-array-non-unicode-match.js",
102 "built-ins/RegExp/match-indices/indices-array-unicode-match.js",
/arkcompiler/runtime_core/tests/cts-generator/generator/
Dtest_case.rb98 if single_line.match(/\#\{.+\}/)
102 if match = single_line.match(/(.+)##\*([[:digit:]]+)$/)
103 str, num = match.captures
/arkcompiler/runtime_core/isa/
Dasserts.rb142 Panda.instructions.select { |i| i.mnemonic.match?(/^(throw|call|return)/) }.map do |i|
149 match = i.mnemonic.match(/[ifu](\d+)to[ifu](\d+)/)
150 next true unless match
152 ssize, dsize = match.captures
/arkcompiler/runtime_core/tests/cts-generator/runner/
Dsingle_test_runner.rb31 .reject { |s| s.match(/^#/) }
77 if match = line.match(/^## panda-options: (.+)\s*$/)
78 @test_panda_options = match.captures[0]
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dcodegen_arm64.rb111 if m = /^ld_(\d+)$/.match(name)
113 elsif m = /^tmp_([suf]\d+)$/.match(name)
/arkcompiler/toolchain/
DOAT.xml41 …is used for define the license, copyright, "*" means match all, the "!" prefix means could not mat…
/arkcompiler/runtime_core/tests/verifier-tests/
Dissue_964.pa16 f64toi32 # instruction is invalid because acc value does not match expected type.
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dcall.yaml572 # 1st arg does not match, exit
632 # 1st arg does not match, exit
639 # 1st arg does not match, exit
646 # 1st arg does not match, exit
695 # 1st arg does not match, exit
748 # 1st arg does not match, exit
756 # 1st arg does not match, exit
764 # 1st arg does not match, exit
859 # 1st arg does not match, exit
867 # 1st arg does not match, exit
[all …]
Dcall.range.yaml489 # 1st arg does not match, exit
549 # 1st arg does not match, exit
556 # 1st arg does not match, exit
563 # 1st arg does not match, exit
612 # 1st arg does not match, exit
664 # 1st arg does not match, exit
672 # 1st arg does not match, exit
680 # 1st arg does not match, exit
775 # 1st arg does not match, exit
783 # 1st arg does not match, exit
[all …]
/arkcompiler/runtime_core/
DOAT.xml33 …is used for define the license, copyright, "*" means match all, the "!" prefix means could not mat…
/arkcompiler/ets_frontend/
DOAT.xml40 …is used for define the license, copyright, "*" means match all, the "!" prefix means could not mat…
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_loader.cpp167 bool PGOProfilerLoader::Match(const CString &recordName, EntityId methodId) in Match() function in panda::ecmascript::PGOProfilerLoader
175 return recordSimpleInfos_->Match(recordName, methodId); in Match()
/arkcompiler/ets_runtime/
DOAT.xml41 …is used for define the license, copyright, "*" means match all, the "!" prefix means could not mat…
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_regexp.h69 // 21.2.5.6 RegExp.prototype [ @@match ] ( string )
70 static JSTaggedValue Match(EcmaRuntimeCallInfo *argv);
151 … bool Match(int entry, JSTaggedValue &pattenStr, JSTaggedValue &flagsStr, JSTaggedValue &inputStr,
/arkcompiler/ets_runtime/ecmascript/compiler/
Dgate.cpp40 CheckFailed("State input does not match (expected:" + GateMetaData::Str(expected) in CheckInputOpcode()
58 CheckFailed("Value input does not match (expected:" in CheckInputMachineType()
68 CheckFailed("State input does not match (expected:<General State> actual:" in CheckGeneralState()
292 CheckFailed("Number of depend flows does not match control flows (expected:" + in CheckSelector()
297 CheckFailed("Number of data flows does not match control flows (expected:" + in CheckSelector()
305 "State input does not match (expected:[MERGE|LOOP_BEGIN] actual:" + in CheckSelector()
318 CheckFailed("State input does not match (" in CheckRelay()
Dcompilation_driver.cpp47 !pfLoader_.Match(recordName, methodLiteral->GetMethodId())) { in FilterMethod()
/arkcompiler/runtime_core/tests/cts-coverage-tool/
Dspectrac.gemspec40 f.match(%r{^(test|spec|features)/})
/arkcompiler/runtime_core/cmake/ark-third-party/zlib/
DCMakeLists.txt137 set(ZLIB_ASMS ${ZLIB_ROOT}/contrib/asm686/match.S)
139 set(ZLIB_ASMS ${ZLIB_ROOT}/contrib/amd64/amd64-match.S)

12345