/third_party/jerryscript/tests/jerry/ |
D | string-prototype-lastindexof.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.lastIndexOf, 'length').configurable === len… 28 assert(Object.getOwnPropertyDescriptor(String.prototype.lastIndexOf, 'length').enumerable === false… 30 assert(Object.getOwnPropertyDescriptor(String.prototype.lastIndexOf, 'length').writable === false); 32 assert(String.prototype.lastIndexOf.length === 1); 35 assert("Hello welcome, welcome to the universe.".lastIndexOf("welcome") === 15); 37 assert("Hello world, welcome to the universe.".lastIndexOf("Hello world, welcome to the universe.")… 39 assert("Hello welcome, welcome to the universe.".lastIndexOf("welcome", 5) === -1); 41 assert("Hello welcome, welcome to the universe.".lastIndexOf("welcome", -100) == -1); 43 assert("Hello welcome, welcome to the universe.".lastIndexOf("welcome", 15) === 15); 45 assert("Hello welcome, welcome to the universe o.".lastIndexOf("o", 10) === 10); [all …]
|
D | array-prototype-lastindexof.js | 20 var index = array.lastIndexOf("foo"); 24 assert(array.lastIndexOf("foo", 3) === 0); 25 assert(array.lastIndexOf("foo", -8) === -1); 27 var index = array.lastIndexOf("baz"); 31 assert(array.lastIndexOf("baz", -2) === -1); 33 var index = array.lastIndexOf(obj); 37 assert(array.lastIndexOf("foo", NaN) === 0); 38 assert(array.lastIndexOf("foo", Infinity) === 4); 39 assert(array.lastIndexOf("foo", -Infinity) === -1); 43 assert(arr.lastIndexOf("foo", -1) === 4294967294) [all …]
|
D | regression-test-issue-3779.js | 16 var idx_50 = array.lastIndexOf(50, { 25 var idx_51 = array.lastIndexOf(51, {
|
/third_party/node/test/parallel/ |
D | test-buffer-indexof.js | 413 assert.strictEqual(b.lastIndexOf('a'), 0); 414 assert.strictEqual(b.lastIndexOf('a', 1), 0); 415 assert.strictEqual(b.lastIndexOf('b', 1), 1); 416 assert.strictEqual(b.lastIndexOf('c', 1), -1); 417 assert.strictEqual(b.lastIndexOf('a', -1), 0); 418 assert.strictEqual(b.lastIndexOf('a', -4), 0); 419 assert.strictEqual(b.lastIndexOf('a', -b.length), 0); 420 assert.strictEqual(b.lastIndexOf('a', -b.length - 1), -1); 421 assert.strictEqual(b.lastIndexOf('a', NaN), 0); 422 assert.strictEqual(b.lastIndexOf('a', -Infinity), -1); [all …]
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | typedarray-prototype-lastindexof.js | 28 e.prototype.lastIndexOf.call (undefined); method in e 34 var index = e.lastIndexOf(0); 39 assert(e.lastIndexOf(0, 3) === 0); 40 assert(e.lastIndexOf(0, -8) === -1); 41 assert(e.lastIndexOf(2) === 2); 42 assert(e.lastIndexOf(5, 3) === -1); 43 assert(e.lastIndexOf(3, 6) === 3); 46 assert(e.lastIndexOf() === -1); 49 assert(e.lastIndexOf("foo") === -1); 50 assert(e.lastIndexOf(0, "foo") === 0); [all …]
|
D | regression-test-issue-3129.js | 17 arr.lastIndexOf(Number.NaN, -[4294967280]);
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UTF16.java | 1741 public static int lastIndexOf(String source, int char32) { in lastIndexOf() method in UTF16 1748 return source.lastIndexOf((char) char32); in lastIndexOf() 1752 int result = source.lastIndexOf((char) char32); in lastIndexOf() 1756 return lastIndexOf(source, char32, result - 1); in lastIndexOf() 1760 return lastIndexOf(source, char32, result - 1); in lastIndexOf() 1767 return source.lastIndexOf(char32str); in lastIndexOf() 1795 public static int lastIndexOf(String source, String str) { in lastIndexOf() method in UTF16 1799 return source.lastIndexOf(str); in lastIndexOf() 1802 int result = source.lastIndexOf(str); in lastIndexOf() 1807 return lastIndexOf(source, str, result - 1); in lastIndexOf() [all …]
|
D | RBNFChinesePostProcessor.java | 100 int m = buf.lastIndexOf("|", x); in process() 101 int nn = buf.lastIndexOf(ling, x); in process()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | UTF16.java | 1675 public static int lastIndexOf(String source, int char32) { in lastIndexOf() method in UTF16 1682 return source.lastIndexOf((char) char32); in lastIndexOf() 1686 int result = source.lastIndexOf((char) char32); in lastIndexOf() 1690 return lastIndexOf(source, char32, result - 1); in lastIndexOf() 1694 return lastIndexOf(source, char32, result - 1); in lastIndexOf() 1701 return source.lastIndexOf(char32str); in lastIndexOf() 1728 public static int lastIndexOf(String source, String str) { in lastIndexOf() method in UTF16 1732 return source.lastIndexOf(str); in lastIndexOf() 1735 int result = source.lastIndexOf(str); in lastIndexOf() 1740 return lastIndexOf(source, str, result - 1); in lastIndexOf() [all …]
|
D | RBNFChinesePostProcessor.java | 101 int m = buf.lastIndexOf("|", x); in process() 102 int nn = buf.lastIndexOf(ling, x); in process()
|
/third_party/typescript/src/testRunner/unittests/services/ |
D | cancellableLanguageServiceOperations.ts | 11 …service.getSignatureHelpItems("file.ts", file.lastIndexOf("f"), emptyOptions)!, r => assert.exists… 17 … service.findReferences("file.ts", file.lastIndexOf("o"))!, r => assert.exists(r[0].definition) 23 …service.getQuickInfoAtPosition("file.ts", file.lastIndexOf("o"))!, r => assert.exists(r.displayPar… 50 …service.getCompletionEntryDetails("file.ts", file.lastIndexOf("f"), "foo", options, /*source*/ und…
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
D | unistr.h | 1146 inline int32_t lastIndexOf(const UnicodeString& text) const; 1157 inline int32_t lastIndexOf(const UnicodeString& text, 1171 inline int32_t lastIndexOf(const UnicodeString& text, 1191 inline int32_t lastIndexOf(const UnicodeString& srcText, 1207 inline int32_t lastIndexOf(const char16_t *srcChars, 1223 inline int32_t lastIndexOf(ConstChar16Ptr srcChars, 1244 int32_t lastIndexOf(const char16_t *srcChars, 1257 inline int32_t lastIndexOf(char16_t c) const; 1267 inline int32_t lastIndexOf(UChar32 c) const; 1277 inline int32_t lastIndexOf(char16_t c, [all …]
|
/third_party/icu/icu4c/source/common/unicode/ |
D | unistr.h | 1146 inline int32_t lastIndexOf(const UnicodeString& text) const; 1157 inline int32_t lastIndexOf(const UnicodeString& text, 1171 inline int32_t lastIndexOf(const UnicodeString& text, 1191 inline int32_t lastIndexOf(const UnicodeString& srcText, 1207 inline int32_t lastIndexOf(const char16_t *srcChars, 1223 inline int32_t lastIndexOf(ConstChar16Ptr srcChars, 1244 int32_t lastIndexOf(const char16_t *srcChars, 1257 inline int32_t lastIndexOf(char16_t c) const; 1267 inline int32_t lastIndexOf(UChar32 c) const; 1277 inline int32_t lastIndexOf(char16_t c, [all …]
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | unistr.h | 1146 inline int32_t lastIndexOf(const UnicodeString& text) const; 1157 inline int32_t lastIndexOf(const UnicodeString& text, 1171 inline int32_t lastIndexOf(const UnicodeString& text, 1191 inline int32_t lastIndexOf(const UnicodeString& srcText, 1207 inline int32_t lastIndexOf(const char16_t *srcChars, 1223 inline int32_t lastIndexOf(ConstChar16Ptr srcChars, 1244 int32_t lastIndexOf(const char16_t *srcChars, 1257 inline int32_t lastIndexOf(char16_t c) const; 1267 inline int32_t lastIndexOf(UChar32 c) const; 1277 inline int32_t lastIndexOf(char16_t c, [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | CompatibilityTest.java | 56 int fileBreak = tmpPath.lastIndexOf('/'); in FileHolder() 57 this.className = fileName.substring(fileBreak + 1, tmpPath.lastIndexOf('.')); in FileHolder() 58 int finalDirBreak = tmpPath.lastIndexOf("/ICU"); in FileHolder() 60 className = className.substring(className.lastIndexOf('/') + 1); in FileHolder()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/ |
D | CompatibilityTest.java | 59 int fileBreak = tmpPath.lastIndexOf('/'); in FileHolder() 60 this.className = fileName.substring(fileBreak + 1, tmpPath.lastIndexOf('.')); in FileHolder() 61 int finalDirBreak = tmpPath.lastIndexOf("/ICU"); in FileHolder() 63 className = className.substring(className.lastIndexOf('/') + 1); in FileHolder()
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/primitive_types/the_string_type/ |
D | the_string_type_3.ts | 34 Assert.equal(str.lastIndexOf("b"), 4); 35 Assert.equal(str.lastIndexOf("b", 2), 1);
|
/third_party/weex-loader/src/ |
D | template.js | 30 if (process.env.DEVICE_LEVEL !== DEVICE_LEVEL.RICH && source.lastIndexOf('</element>') > 0) { 31 const count = source.lastIndexOf('</element>')
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_DualStorageBCD.java | 99 int ePos = num.lastIndexOf('e'); in fromExponentString() 101 ePos = num.lastIndexOf('c'); in fromExponentString() 104 ePos = num.lastIndexOf('E'); in fromExponentString() 107 ePos = num.lastIndexOf('C'); in fromExponentString()
|
/third_party/typescript/tests/baselines/reference/ |
D | mappedTypeRecursiveInference.errors.txt | 1 …lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an… 3 …lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an… 4 …lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an… 28 …lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an… 30 …lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an… 31 …lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
|
/third_party/node/benchmark/ |
D | _cli.js | 115 if (scripts.lastIndexOf(filter) !== -1) { 121 if (scripts.lastIndexOf(exclude) !== -1) {
|
/third_party/node/test/es-module/ |
D | test-esm-import-meta-resolve.mjs | 5 const dirname = import.meta.url.slice(0, import.meta.url.lastIndexOf('/') + 1); 6 const fixtures = dirname.slice(0, dirname.lastIndexOf('/', dirname.length - 2) + 1) + 'fixtures/';
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UTF16Test.java | 1028 if (UTF16.lastIndexOf(test1, test2) != 29 || in TestIndexOf() 1029 UTF16.lastIndexOf(test1, test2, test1.length()) != 29) { in TestIndexOf() 1033 if (UTF16.lastIndexOf(test1, testChar1) != 35 || in TestIndexOf() 1034 UTF16.lastIndexOf(test1, testChar1, test1.length()) != 35) { in TestIndexOf() 1039 if (UTF16.lastIndexOf(test3, testChar2) != 13 || in TestIndexOf() 1040 UTF16.lastIndexOf(test3, testChar2, test3.length()) != 13) { in TestIndexOf() 1157 startPos = UTF16.lastIndexOf(test1, test2, startPos); in TestIndexOf() 1169 startPos = UTF16.lastIndexOf(test1, testChar1, startPos); in TestIndexOf() 1183 startPos = UTF16.lastIndexOf(test3, testChar2, startPos - 5); in TestIndexOf() 1215 if (UTF16.lastIndexOf(INDEXOF_SUPPLEMENTARY_STRING_, ch, in TestIndexOf() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
D | UTF16Test.java | 1022 if (UTF16.lastIndexOf(test1, test2) != 29 || in TestIndexOf() 1023 UTF16.lastIndexOf(test1, test2, test1.length()) != 29) { in TestIndexOf() 1027 if (UTF16.lastIndexOf(test1, testChar1) != 35 || in TestIndexOf() 1028 UTF16.lastIndexOf(test1, testChar1, test1.length()) != 35) { in TestIndexOf() 1033 if (UTF16.lastIndexOf(test3, testChar2) != 13 || in TestIndexOf() 1034 UTF16.lastIndexOf(test3, testChar2, test3.length()) != 13) { in TestIndexOf() 1151 startPos = UTF16.lastIndexOf(test1, test2, startPos); in TestIndexOf() 1163 startPos = UTF16.lastIndexOf(test1, testChar1, startPos); in TestIndexOf() 1177 startPos = UTF16.lastIndexOf(test3, testChar2, startPos - 5); in TestIndexOf() 1209 if (UTF16.lastIndexOf(INDEXOF_SUPPLEMENTARY_STRING_, ch, in TestIndexOf() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | ustrtest.cpp | 452 …if(s.lastIndexOf(u, 1, -1, 0, 999)!=1 || s.lastIndexOf(u+1, -1, 0, 999)!=1 || s.lastIndexOf(u+1, -… in TestCompare() 813 if(test1.lastIndexOf(test2)!=29) { in TestSearching() 817 …if(test1.lastIndexOf(test2, 15)!=29 || test1.lastIndexOf(test2, 29)!=29 || test1.lastIndexOf(test2… in TestSearching() 823 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching() 831 (startPos = test1.lastIndexOf(testChar, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching() 841 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching() 850 if(subString.lastIndexOf(testChar32) != -1 ){ in TestSearching() 865 if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 || in TestSearching() 866 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 || in TestSearching() 867 … test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16 in TestSearching() [all …]
|