Home
last modified time | relevance | path

Searched refs:lastIndexOf (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/third_party/jerryscript/tests/jerry/
Dstring-prototype-lastindexof.js26 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 …]
Darray-prototype-lastindexof.js20 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 …]
Dregression-test-issue-3779.js16 var idx_50 = array.lastIndexOf(50, {
25 var idx_51 = array.lastIndexOf(51, {
/third_party/node/test/parallel/
Dtest-buffer-indexof.js413 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/
Dtypedarray-prototype-lastindexof.js28 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 …]
Dregression-test-issue-3129.js17 arr.lastIndexOf(Number.NaN, -[4294967280]);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java1741 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 …]
DRBNFChinesePostProcessor.java100 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/
DUTF16.java1675 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 …]
DRBNFChinesePostProcessor.java101 int m = buf.lastIndexOf("|", x); in process()
102 int nn = buf.lastIndexOf(ling, x); in process()
/third_party/typescript/src/testRunner/unittests/services/
DcancellableLanguageServiceOperations.ts11 …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/
Dunistr.h1146 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/
Dunistr.h1146 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/
Dunistr.h1146 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/
DCompatibilityTest.java56 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/
DCompatibilityTest.java59 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/
Dthe_string_type_3.ts34 Assert.equal(str.lastIndexOf("b"), 4);
35 Assert.equal(str.lastIndexOf("b", 2), 1);
/third_party/weex-loader/src/
Dtemplate.js30 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/
DDecimalQuantity_DualStorageBCD.java99 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/
DmappedTypeRecursiveInference.errors.txt1lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
3lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
4lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
28lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
30lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
31lastIndexOf: any; localeCompare: any; match: any; replace: any; search: any; slice: any; split: an…
/third_party/node/benchmark/
D_cli.js115 if (scripts.lastIndexOf(filter) !== -1) {
121 if (scripts.lastIndexOf(exclude) !== -1) {
/third_party/node/test/es-module/
Dtest-esm-import-meta-resolve.mjs5 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/
DUTF16Test.java1028 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/
DUTF16Test.java1022 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/
Dustrtest.cpp452 …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 …]

12345678910>>...12