| /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/ |
| 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/runtime_core/abc2program/tests/cpp_sources/ |
| D | abc2program_test_utils.cpp | 72 bool Abc2ProgramTestUtils::ValidateStrings(const T &strings, const T &expected_strings) in ValidateStrings() argument 74 if (strings.size() != expected_strings.size()) { in ValidateStrings() 78 const auto string_iter = std::find(strings.begin(), strings.end(), expected_string); in ValidateStrings() 79 if (string_iter == strings.end()) { in ValidateStrings() 145 // Split input strings by white spaces. in ValidateLine() 153 // Compare all divived sub-strings. in ValidateLine() 159 * 0. the sub-strings are same. in ValidateLine() 162 * 2. the sub-strings are literal array names with offset, offset could be modified when in ValidateLine()
|
| /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/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 …]
|
| D | multithreaded_intern_string_table_test.cpp | 171 void TestConcurrentInsertion(const std::array<std::array<uint8_t, 4U>, TEST_ARRAY_SIZE> &strings, u… in TestConcurrentInsertion() argument 189 table->GetOrInternString(strings[currentArrayItem].data(), 2U, ctx); in TestConcurrentInsertion() 199 std::array<std::array<uint8_t, 4U>, TEST_ARRAY_SIZE> strings {}; in TEST_F() local 209 strings[i] = {0xc2, second, dist(engine), 0x00}; in TEST_F() 213 … threads[i] = std::thread(TestConcurrentInsertion, std::ref(strings), std::ref(arrayItem), this); in TEST_F()
|
| /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 | 101 ======> strings <====== 193 ======> strings <====== 199 ======> strings <====== 205 ======> strings <====== 275 ======> strings <====== 345 ======> strings <====== 351 ======> strings <====== 357 ======> strings <====== 441 ======> strings <====== 517 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/projects/bytecodehar-dependency-resolve/ |
| D | hap-file-exec-expected.pa.txt | 103 ======> strings <====== 195 ======> strings <====== 201 ======> strings <====== 207 ======> strings <====== 277 ======> strings <====== 347 ======> strings <====== 353 ======> strings <====== 359 ======> strings <====== 443 ======> strings <====== 539 ======> 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]}`
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/ |
| D | string_api.sts | 80 …assert str3.concat(", world!").equals("hello, world!" as Object): "Strings must be equal after con… 82 …assert str3.replaceChar(c'e', c'a').equals("hallo" as Object): "Strings must be equal after replac… 83 …assert str3.replaceChar(c'l', c't').equals("hetto" as Object): "Strings must be equal after replac… 84 …assert str3.replaceChar(c'm', c'v').equals("hello" as Object): "Strings must be equal after replac… 91 …assert str1.equals("|pRef|AbCd|SUF|:|pRef|Xtt|SUF|:|pRef|G|SUF|" as Object): "Strings must be equa… 94 "Strings must be equal after toLowerCase"; 96 "Strings must be equal after toUpperCase";
|
| D | string_compare_to.sts | 31 // latin strings 65 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", 0 ], // same strings -> EQ 78 // utf-16 strings 112 "ГГГГГГГГГГГГГГГГГГГГГГГГГГГГГГГГ", 0 ], // same strings -> EQ 125 // mixed (utf vs latin) strings comparison, never equals
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/js/projects/bytecodehar-dependency-resolve/ |
| D | hap-file-exec-expected.pa.txt | 107 ======> strings <====== 199 ======> strings <====== 205 ======> strings <====== 211 ======> strings <====== 281 ======> strings <====== 351 ======> strings <====== 357 ======> strings <====== 363 ======> strings <====== 425 ======> strings <====== 534 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyProgramProto.cpp | 43 for (const auto &str : program.strings) { in Serialize() 84 for (const auto &protoString : protoProgram.strings()) { in Deserialize() 85 program.strings.insert(protoString); in Deserialize()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-multi-line-string-expected.txt | 1 SyntaxError: Newline is not allowed in strings [test-multi-line-string.js:17:5]
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | ir_interface.h | 46 auto it = maps_->strings.find(offset); in GetStringIdByOffset() 47 ASSERT(it != maps_->strings.cend()); in GetStringIdByOffset() 55 ASSERT(it != maps_->strings.cend()); in GetLiteralArrayByOffset()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | String.sts | 104 * @returns true if strings are equal and false otherwise 631 * Concatenation of this and array of strings. 633 * @param strings strings to concat with 635 …* @returns new String which is a concatenation of this + strings[0] + ... + strings[string.length … 637 public concat(...strings: String[]): String { 638 let length = strings.length 643 return String.concat2(this, strings[0]); 646 return String.concat3(this, strings[0], strings[1]); 649 return String.concat4(this, strings[0], strings[1], strings[2]); 653 res = res.append(strings[i]) [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/projects/bytecodehar-accuate-version-update/ |
| D | hap-file-exec-expected.pa.txt | 129 ======> strings <====== 409 ======> strings <====== 415 ======> strings <====== 421 ======> strings <====== 518 ======> strings <====== 579 ======> strings <====== 640 ======> strings <====== 701 ======> strings <====== 762 ======> strings <====== 876 ======> strings <====== [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/bytecodehar/projects/bytecodehar-version-update/ |
| D | hap-file-exec-expected.pa.txt | 129 ======> strings <====== 409 ======> strings <====== 415 ======> strings <====== 421 ======> strings <====== 518 ======> strings <====== 579 ======> strings <====== 640 ======> strings <====== 701 ======> strings <====== 762 ======> strings <====== 876 ======> strings <====== [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | lda.str.yaml | 72 # pandasm expects strings in mutf8 format, not \u or \U 221 …description: Check that two strings created by 'lda.str' instructions are the same in the string c… 234 # empty strings 273 …description: Check that two strings created by 'lda.str' instructions are different in the string …
|
| /arkcompiler/runtime_core/static_core/assembler/templates/ |
| D | ins_emit.h.erb | 28 const std::unordered_map<std::string_view, panda_file::StringItem *> &strings, 80 % ops << 'strings.find(ids[0])->second->GetOffset()' 110 if (ids.empty() || (strings.find(ids[0]) == strings.cend())) {
|
| /arkcompiler/runtime_core/assembler/templates/ |
| D | ins_emit.h.erb | 24 const std::unordered_map<std::string, panda_file::StringItem *> &strings, 79 % ops << "strings.find(ids[#{num_id}])->second->GetIndex(method)" 112 if ((ids.size() == 0) || (strings.find(ids[<%= num_id %>]) == strings.cend())) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/ |
| D | README.MD | 70 - strings are enclosed in single quotes (e.g., 'value') or backticks for interpolated strings
|
| /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 */
|