| /arkcompiler/ets_runtime/test/moduletest/string/ |
| D | string.js | 25 let str1 = tmp.substring(0, 111) + ',,,,,,,,,,,,,,,,,,,,,,,' + tmp.substring(111 + 23); 26 let str2 = tmp.substring(0, 111) + 'nsExpress3SF#123456789的' + tmp.substring(111 + 23,111 + 24) + '… 27 let str3 = tmp.substring(0, 111) + 'nsExpress3SF#123456789的' + tmp.substring(111 + 23); 34 let utf82 = utf81.substring(0, 169) + '8'; 35 let utf83 = utf81.substring(0, 169) + '0'; 50 let string2 = string1.substring(1); 60 let str = tmp1.substring(13, 143); 61 let str4 = tmp1.substring(13, 26); 84 let filename1 = name1.substring(0, 14); 89 let filename2 = name2.substring(0, 14); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | string_substring.ets | 68 let subs: String = golden.substring(i, golden.getLength()); 77 let subs: String = golden.substring(0, i); 86 if (golden.substring(-1, 1) == "a") { 89 console.println("substring failed if begin_index < 0"); 93 if (golden.substring(str_len_plus_1, 1) == "bcΣΨΩ0123456789!") { 96 console.println("substring failed if (begin_index > str_len || begin_index > end_index"); 99 if (golden.substring(0, -1) == "") { 102 console.println("substring failed if end_index < 0"); 105 if (golden.substring(0, str_len_plus_1) == golden) { 108 console.println("substring failed if end_index > str_len");
|
| /arkcompiler/ets_runtime/test/aottest/string/ |
| D | string.ts | 24 let b : string = a.substring(3); 34 let b : string = a.substring(1); 41 let b : string = a.substring(1); 48 var b : string = a.substring(1);
|
| /arkcompiler/ets_runtime/test/aottest/ldobjbyname_typed_path/ |
| D | ldobjbyname_typed_path.ts | 79 print(" - String.prototype.substring: ", strLiteral.substring(7)); // return: 'string literal' 107 substring: function() { 112 print(" - obj.substring: ", obj.substring()); // return: 'obj.substring' 118 arr.substring = function() { 122 print(" - arr.substring: ", arr.substring()); // return: 'arr.substring'
|
| D | expect_output.txt | 38 - String.prototype.substring: string literal 52 - obj.substring: obj.substring 54 - arr.substring: arr.substring
|
| /arkcompiler/ets_runtime/test/aottest/module/ |
| D | add.js | 22 var a1 = a.substring(4, 28); 31 var a7 = d.toLowerCase() + a1.substring(1); 32 var a8 = a2.toUpperCase() + a3.substring(2);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/ |
| D | string_api.ets | 81 assert str3.substring(0).equals("hello" as Object): "Substring from idx 0 must be 'hello'"; 82 assert str3.substring(3).equals("lo" as Object): "Substring from idx 3 must be 'lo'"; 83 assert str3.substring(0, 3).equals("hel" as Object): "Substring from idx 0 to 3 must be 'hel'"; 84 assert str3.substring(1, 3).equals("el" as Object): "Substring from idx 1 to 3 must be 'el'"; 85 assert str3.substring(4, 5).equals("o" as Object): "Substring from idx 4 to 5 must be 'o'"; 86 …assert str3.substring(4, 4).equals("" as Object): "Substring from idx 4 to 4 must be empty string"; 87 assert !str3.substring(3, 5).equals("o" as Object): "Substring from idx 3 to 4 must not be 'o'"; 135 assert arr[0].equals("It"): "First substring must be `It`"; 136 assert arr[1].equals("can't"): "Second substring must be `can't`"; 137 assert arr[2].equals("be"): "Third substring must be `be`"; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/string_add/ |
| D | string_add.ts | 26 var c = a + a.substring(2); 28 a += a.substring(3); 30 a = a + cr.substring(5); 33 var d = cr.substring(1) + a;
|
| /arkcompiler/ets_runtime/test/moduletest/stringtrim/ |
| D | stringtrim.js | 40 let c = a.substring(1, 20); 41 let d = c.substring(2, 20);
|
| /arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
| D | LogParser.js | 77 return [s.substring(0, i), s.substring(i + 1)]; 131 let str = l.substring(idx, idx2 + 1); 150 let tmp = ir.MType.substring(p, i); 152 tmp = tmp.substring(2); 155 tmp = tmp.substring(0, tmp.length - 2); 335 let s = l.substring(11); 337 s = s.substring(1); 409 let s = l.substring(11); 411 s = s.substring(1);
|
| /arkcompiler/ets_runtime/ecmascript/intl/ |
| D | locale_helper.cpp | 260 std::string substring; in IsStructurallyValidLanguageTag() local 265 substring += *it; in IsStructurallyValidLanguageTag() 268 substring += *it; in IsStructurallyValidLanguageTag() 270 containers.push_back(substring); in IsStructurallyValidLanguageTag() 271 if (IsVariantSubtag(substring)) { in IsStructurallyValidLanguageTag() 272 … std::transform(substring.begin(), substring.end(), substring.begin(), AsciiAlphaToLower); in IsStructurallyValidLanguageTag() 273 if (!uniqueSubtags.insert(substring).second) { in IsStructurallyValidLanguageTag() 277 substring.clear(); in IsStructurallyValidLanguageTag()
|
| /arkcompiler/ets_frontend/ts2panda/src/expression/ |
| D | regularExpression.ts | 46 regexpPattern = regexpText.substring(firstSlashPos + 1, lastSlashPos); 47 regexpFlags = regexpText.substring(lastSlashPos + 1);
|
| D | bigIntLiteral.ts | 22 text = text.substring(0, text.length-1);
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/string_validation/ |
| D | string_substring.ts | 20 assert(str.substring(1, 4) === 'bcd', 'success');
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test_satisfies7.ts | 26 let b = p.b.substring(1);
|
| D | test_satisfies.ts | 32 const t5 = (m => m.substring(0)) satisfies T2;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_string_substring.ets | 42 return str.substring(begin, end); 49 let subs2: String = original.substring(0, original.getLength());
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | String.ets | 337 * Checks that the substring of this string that starts from 347 * @returns true if the substring begins with prefix 357 * Checks that the substring of this string that starts from 366 * @returns true if the substring begins with prefix 530 * Selects a substring of this String, starting at a specified index 533 * @param begin to start substring 535 * @returns new String which is a substring of this String 537 public substring(begin: int): String { 538 return this.substring(begin, this.getLength()); 542 * Selects a substring of this String, starting at a specified index [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | RegExp.ets | 247 * Returns the last matched substring 261 * Returns the last parenthesized substring match, if any 275 * Returns the substring preceding the most recent match 289 * Returns the substring following the most recent match 303 * Static accessor properties return parenthesized substring matches 453 accumulatedResult += str.substring(nextSourcePosition, position) + replacement 460 return accumulatedResult + str.substring(nextSourcePosition) 507 accumulatedResult += str.substring(nextSourcePosition, position) + replacement 514 return accumulatedResult + str.substring(nextSourcePosition) 551 let substr = str.substring(lastStart, lastEnd) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | StringFasta.ets | 72 ret += seq.substring(seqi, seqi + lenOut).length(); 76 let s : String = seq.substring(seqi); 78 ret += (s + seq.substring(0, seqi)).length();
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | StringFasta.ets | 72 ret += seq.substring(seqi, seqi + lenOut).length as int; 76 let s : String = seq.substring(seqi); 78 ret += (s + seq.substring(0, seqi)).length as int;
|
| /arkcompiler/ets_runtime/test/moduletest/objecthasownproperty/ |
| D | objecthasownproperty.js | 37 var str6 = str.substring(0, 20);
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_number_format.cpp | 795 JSHandle<EcmaString> substring = in GroupToParts() local 798 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in GroupToParts() 803 … substring = intl::LocaleHelper::UStringToString(thread, formattedText, start, limit); in GroupToParts() 804 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in GroupToParts() 813 JSHandle<EcmaString> substring = in GroupToParts() local 815 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in GroupToParts() 829 …JSHandle<EcmaString> substring = intl::LocaleHelper::UStringToString(thread, formattedText, start,… in GroupToParts() local 830 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in GroupToParts() 839 JSHandle<EcmaString> substring = in GroupToParts() local 841 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in GroupToParts()
|
| D | js_list_format.cpp | 308 …JSHandle<EcmaString> substring = intl::LocaleHelper::UStringToString(thread, listString, start, li… in FormatListToArray() local 310 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in FormatListToArray() 314 …JSHandle<EcmaString> substring = intl::LocaleHelper::UStringToString(thread, listString, start, li… in FormatListToArray() local 316 …SLocale::PutElement(thread, index, receiver, typeString, JSHandle<JSTaggedValue>::Cast(substring)); in FormatListToArray()
|
| /arkcompiler/ets_runtime/test/perform/string/ |
| D | string.js | 159 str.substring(1,10); 170 str.substring(19,3); 181 str.substring(4,4);
|