| /arkcompiler/runtime_core/disassembler/tests/ |
| D | disassembler_string_test.cpp | 34 bool ValidateString(const std::vector<std::string> &strings, in ValidateString() argument 38 const auto string_iter = std::find(strings.begin(), strings.end(), expected_string); in ValidateString() 39 if (string_iter == strings.end()) { in ValidateString() 59 std::vector<std::string> strings = disasm.GetStrings(); variable 60 bool has_string = ValidateString(strings, expected_strings); 75 std::vector<std::string> strings = disasm.GetStrings(); variable 76 bool has_string = ValidateString(strings, expected_strings);
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | template_literals.sts | 27 function tag1(strings: TemplateStringsArray): void { 28 console.log(strings); 30 function tag2(strings: TemplateStringsArray, ...values: any[]): void { 31 console.log(strings, values); 34 strings: TemplateStringsArray, 37 console.log(strings, values);
|
| /arkcompiler/runtime_core/static_core/scripts/code_style/ |
| D | doxygen_style_check.py | 83 def check_javadoc(src_path: str, strings: list) -> bool: 89 for string in strings: 111 def check_additional_slashes(src_path: str, strings: list) -> bool: 119 strings = list(set(strings)) # Only unique strings left 120 for string in strings: 150 def check_less_than_slashes(src_path: str, strings: list) -> bool: 157 for string in strings: 199 strings = [] 201 strings = regexp.findall(f.read()) 202 for s in strings: [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/merge_hap/projects/merge_hap_replace_pkg_name/ |
| D | main_hap-expected.pa.txt | 76 ======> strings <====== 140 ======> strings <====== 144 ======> strings <====== 148 ======> strings <====== 152 ======> strings <====== 229 ======> strings <====== 293 ======> strings <====== 297 ======> strings <====== 301 ======> strings <====== 305 ======> strings <======
|
| /arkcompiler/runtime_core/abc2program/tests/cpp_sources/ |
| D | abc2program_test_utils.cpp | 77 bool Abc2ProgramTestUtils::ValidateStrings(const T &strings, const T &expected_strings) in ValidateStrings() argument 79 if (strings.size() != expected_strings.size()) { in ValidateStrings() 83 const auto string_iter = std::find(strings.begin(), strings.end(), expected_string); in ValidateStrings() 84 if (string_iter == strings.end()) { in ValidateStrings() 150 // Split input strings by white spaces. in ValidateLine() 158 // Compare all divived sub-strings. in ValidateLine() 164 * 0. the sub-strings are same. in ValidateLine() 167 * 2. the sub-strings are literal array names with offset, offset could be modified when in ValidateLine()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/models/ |
| D | syntax.test.ts | 20 it('should convert regex strings to RegExp objects', () => { 36 it('should handle deeply nested regex strings', () => { 52 it('should return an identical structure if no regex strings are present', () => { 67 it('should ignore invalid regex format strings', () => {
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/abc2program/update-version/ |
| D | expected.txt | 3 ======> strings <====== 7 ======> strings <====== 11 ======> strings <====== 100 ======> strings <======
|
| /arkcompiler/runtime_core/static_core/abc2program/tests/ |
| D | abc2program_test.cpp | 35 bool ValidateString(const T &strings, const T &expectedStrings) in ValidateString() argument 37 if (strings.size() != expectedStrings.size()) { in ValidateString() 41 const auto stringIter = std::find(strings.begin(), strings.end(), expectedString); in ValidateString() 42 if (stringIter == strings.end()) { in ValidateString() 121 bool stringMatched = ValidateString(prog->strings, expectedStrings); in TEST_F() 167 bool result = ValidateString(prog->strings, expectedStrings); in TEST_F()
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/module_validation/ |
| D | name_space.ts | 38 let strings = ["Hello", "98052", "101"]; variable 46 assert(validators["Letters only"].isAcceptable(strings[0]), 'success'); 47 assert(validators["ZIP code"].isAcceptable(strings[1]), 'success');
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_string_builder_reserve_part20-29.sts | 209 let strings: string[] = ["0", "1", "2"] 211 for (let i = 0; i < strings.length; ++i) 212 sb.append(strings[i]) 217 let strings: string[] = ["0", "1", "2"] 219 for (let s : string of strings) 224 function lenArray_reserve27(strings: string[]) : string { 226 for (let i = 0; i < strings.length; ++i) 227 sb.append(strings[i]) 231 function lenArray_reserve28(strings: string[]) : string { 233 for (let s : string of strings)
|
| /arkcompiler/runtime_core/panda_guard/obfuscate/ |
| D | module_record.h | 37 void ExtractNames(std::set<std::string> &strings) const override; 54 void ExtractNames(std::set<std::string> &strings) const override; 85 void ExtractNames(std::set<std::string> &strings) const override; 112 void ExtractNames(std::set<std::string> &strings) const override; 141 void ExtractNames(std::set<std::string> &strings) const override; 167 void ExtractNames(std::set<std::string> &strings) const override;
|
| D | module_record.cpp | 69 void panda::guard::FilePathItem::ExtractNames(std::set<std::string> &strings) const in ExtractNames() 73 strings.emplace(part); in ExtractNames() 108 void panda::guard::RegularImportItem::ExtractNames(std::set<std::string> &strings) const in ExtractNames() 110 strings.emplace(this->localName_); in ExtractNames() 111 strings.emplace(this->importName_); in ExtractNames() 156 void panda::guard::NameSpaceImportItem::ExtractNames(std::set<std::string> &strings) const in ExtractNames() 158 strings.emplace(this->localName_); in ExtractNames() 207 void panda::guard::LocalExportItem::ExtractNames(std::set<std::string> &strings) const in ExtractNames() 209 strings.emplace(this->localName_); in ExtractNames() 210 strings.emplace(this->exportName_); in ExtractNames() [all …]
|
| D | property.cpp | 52 void panda::guard::Property::ExtractNames(std::set<std::string> &strings) const in ExtractNames() 54 strings.emplace(this->name_); in ExtractNames() 64 this->program_->prog_->strings.emplace(this->obfName_); in Update()
|
| /arkcompiler/runtime_core/libabckit/tests/ut/metadata_core/modify_api/strings/ |
| D | strings_test.cpp | 84 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_static.abc", in TEST_F() 85 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_static_modified.abc", "main", in TEST_F() 115 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_static.abc", in TEST_F() 116 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_static_modify.abc", "main", in TEST_F() 155 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_dynamic.abc", in TEST_F() 156 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_dynamic.abc", "main", in TEST_F() 169 …auto output = helpers::ExecuteDynamicAbc(ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strin… in TEST_F() 196 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_dynamic.abc", in TEST_F() 197 ABCKIT_ABC_DIR "ut/metadata_core/modify_api/strings/strings_dynamic_modified.abc", "main", in TEST_F()
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | epsilon_gcs_test.cpp | 145 std::vector<VMHandle<coretypes::String>> strings; in TEST_F() local 153 if (strings.size() < NUM_OF_ELEMS_CHECKED) { in TEST_F() 154 strings.emplace_back(thread, objString); in TEST_F() 155 size_t lastElemIndx = strings.size() - 1; in TEST_F() 156 nonmovable->Set<ObjectHeader *>(lastElemIndx, strings[lastElemIndx].GetPtr()); in TEST_F() 162 ASSERT_EQ(strings.size(), NUM_OF_ELEMS_CHECKED); in TEST_F() 165 for (size_t i = 0; i < strings.size(); ++i) { in TEST_F() 166 ASSERT_EQ(strings[i].GetPtr(), nonmovable->Get<ObjectHeader *>(i)); in TEST_F() 175 for (size_t i = 0; i < strings.size(); ++i) { in TEST_F() 176 ASSERT_EQ(strings[i].GetPtr(), nonmovable->Get<ObjectHeader *>(i)); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/js/ |
| D | test-multi-line-string.js | 22 /* @@? 17:5 Error SyntaxError: Newline is not allowed in strings */ 23 /* @@? 19:1 Error SyntaxError: Newline is not allowed in strings */
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | InvalidLexer.sts | 64 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 66 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 67 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 68 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 103 /* @@? 46:1 Error SyntaxError: Octal escape sequences are not allowed in template strings */
|
| /arkcompiler/runtime_core/libabckit/src/adapter_static/ |
| D | metadata_modify_static.cpp | 57 const auto &[progValueIter, _] = prog->strings.insert(std::string(value, len)); in CreateStringStatic() 59 auto &strings = file->strings; in CreateStringStatic() local 61 if (strings.find(progValue) != strings.end()) { in CreateStringStatic() 62 return strings.at(progValue).get(); in CreateStringStatic() 67 strings.insert({progValue, std::move(s)}); in CreateStringStatic() 68 return strings[progValue].get(); in CreateStringStatic()
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/cache_projects/bytecodehar-cache-file/ |
| D | hap-file-exec-expected.pa.txt | 101 ======> strings <====== 191 ======> strings <====== 195 ======> strings <====== 199 ======> strings <====== 203 ======> strings <====== 271 ======> strings <====== 339 ======> strings <====== 343 ======> strings <====== 347 ======> strings <====== 351 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/projects/bytecodehar-dependency-resolve/ |
| D | hap-file-exec-expected.pa.txt | 101 ======> strings <====== 191 ======> strings <====== 195 ======> strings <====== 199 ======> strings <====== 203 ======> strings <====== 271 ======> strings <====== 339 ======> strings <====== 343 ======> strings <====== 347 ======> strings <====== 351 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/js/projects/bytecodehar-dependency-resolve/ |
| D | hap-file-exec-expected.pa.txt | 107 ======> strings <====== 197 ======> strings <====== 201 ======> strings <====== 205 ======> strings <====== 209 ======> strings <====== 277 ======> strings <====== 345 ======> strings <====== 349 ======> strings <====== 353 ======> strings <====== 357 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/cache_projects/bytecodehar-mod-hap-cache-file/ |
| D | hap-file-exec-expected.pa.txt | 107 ======> strings <====== 197 ======> strings <====== 201 ======> strings <====== 205 ======> strings <====== 209 ======> strings <====== 277 ======> strings <====== 345 ======> strings <====== 349 ======> strings <====== 353 ======> strings <====== 357 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | dumper.cpp | 46 void Dumper::DumpStrings(std::set<std::string> const &strings) in DumpStrings() argument 48 std::cout << "======> strings <======" << std::endl; in DumpStrings() 49 for (auto &string : strings) { in DumpStrings()
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/projects/bytecodehar-test-project/ |
| D | hap-file-exec-expected.pa.txt | 113 ======> strings <====== 277 ======> strings <====== 281 ======> strings <====== 285 ======> strings <====== 289 ======> strings <====== 357 ======> strings <====== 425 ======> strings <====== 429 ======> strings <====== 433 ======> strings <====== 437 ======> strings <====== [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | to_string_cache.sts | 110 let strings = new Array<String>; 120 strings.push(str); 128 …assert strings[i] == expected: `results of toString differ: expected ${expected}, got ${strings[i]… 129 … assert isEqual(strings[i], numbers[i]): `not equal: string ${strings[i]}, number ${numbers[i]}`
|