/third_party/jerryscript/tests/jerry/ |
H A D | string-prototype-lastindexof.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.lastIndexOf, 'length').configurable === length_configurable()); 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.") === 0); 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(" [all...] |
H A 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("fo [all...] |
H A 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/ |
H A D | test-buffer-indexof.js | 409 // Buffer.lastIndexOf, so only testing the separate lastIndexOf semantics. 411 // Test lastIndexOf basic functionality; Buffer b contains 'abcdef'. 412 // lastIndexOf string: 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(' [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | typedarray-prototype-lastindexof.js | 28 e.prototype.lastIndexOf.call (undefined); 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( [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | UTF16.java | 1725 * UTF16.lastIndexOf("abc", 'a') returns 0<br> 1726 * UTF16.lastIndexOf("abc\ud800\udc00", 0x10000) returns 3<br> 1727 * UTF16.lastIndexOf("abc\ud800\udc00", 0xd800) returns -1<br> 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() 1779 * UTF16.lastIndexOf("ab 1795 public static int lastIndexOf(String source, String str) { lastIndexOf() method in UTF16 1852 public static int lastIndexOf(String source, int char32, int fromIndex) { lastIndexOf() method in UTF16 1918 public static int lastIndexOf(String source, String str, int fromIndex) { lastIndexOf() method in UTF16 [all...] |
H A 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/ |
H A D | UTF16.java | 1660 * UTF16.lastIndexOf("abc", 'a') returns 0<br> 1661 * UTF16.lastIndexOf("abc\ud800\udc00", 0x10000) returns 3<br> 1662 * UTF16.lastIndexOf("abc\ud800\udc00", 0xd800) returns -1<br> 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() 1713 * UTF16.lastIndexOf("ab 1728 public static int lastIndexOf(String source, String str) { lastIndexOf() method in UTF16 1784 public static int lastIndexOf(String source, int char32, int fromIndex) { lastIndexOf() method in UTF16 1849 public static int lastIndexOf(String source, String str, int fromIndex) { lastIndexOf() method in UTF16 [all...] |
H A D | RBNFChinesePostProcessor.java | 101 int m = buf.lastIndexOf("|", x); in process() 102 int nn = buf.lastIndexOf(ling, x); in process()
|
/third_party/icu/icu4c/source/common/unicode/ |
H A 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_ 4244 UnicodeString::lastIndexOf(ConstChar16Ptr srcChars, lastIndexOf() function in UnicodeString 4251 UnicodeString::lastIndexOf(const char16_t *srcChars, lastIndexOf() function in UnicodeString 4259 UnicodeString::lastIndexOf(const UnicodeString& srcText, lastIndexOf() function in UnicodeString 4275 UnicodeString::lastIndexOf(const UnicodeString& text, lastIndexOf() function in UnicodeString 4281 UnicodeString::lastIndexOf(const UnicodeString& text, lastIndexOf() function in UnicodeString 4288 UnicodeString::lastIndexOf(const UnicodeString& text) const lastIndexOf() function in UnicodeString 4292 UnicodeString::lastIndexOf(char16_t c, lastIndexOf() function in UnicodeString 4298 UnicodeString::lastIndexOf(UChar32 c, lastIndexOf() function in UnicodeString 4305 UnicodeString::lastIndexOf(char16_t c) const lastIndexOf() function in UnicodeString 4309 UnicodeString::lastIndexOf(UChar32 c) const { lastIndexOf() function in UnicodeString 4314 UnicodeString::lastIndexOf(char16_t c, lastIndexOf() function in UnicodeString 4321 UnicodeString::lastIndexOf(UChar32 c, lastIndexOf() function in UnicodeString [all...] |
/third_party/node/deps/icu-small/source/common/unicode/ |
H A 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_ 4272 UnicodeString::lastIndexOf(ConstChar16Ptr srcChars, lastIndexOf() function in UnicodeString 4279 UnicodeString::lastIndexOf(const char16_t *srcChars, lastIndexOf() function in UnicodeString 4287 UnicodeString::lastIndexOf(const UnicodeString& srcText, lastIndexOf() function in UnicodeString 4303 UnicodeString::lastIndexOf(const UnicodeString& text, lastIndexOf() function in UnicodeString 4309 UnicodeString::lastIndexOf(const UnicodeString& text, lastIndexOf() function in UnicodeString 4316 UnicodeString::lastIndexOf(const UnicodeString& text) const lastIndexOf() function in UnicodeString 4320 UnicodeString::lastIndexOf(char16_t c, lastIndexOf() function in UnicodeString 4326 UnicodeString::lastIndexOf(UChar32 c, lastIndexOf() function in UnicodeString 4333 UnicodeString::lastIndexOf(char16_t c) const lastIndexOf() function in UnicodeString 4337 UnicodeString::lastIndexOf(UChar32 c) const { lastIndexOf() function in UnicodeString 4342 UnicodeString::lastIndexOf(char16_t c, lastIndexOf() function in UnicodeString 4349 UnicodeString::lastIndexOf(UChar32 c, lastIndexOf() function in UnicodeString [all...] |
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
H A 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_ 4244 UnicodeString::lastIndexOf(ConstChar16Ptr srcChars, lastIndexOf() function in UnicodeString 4251 UnicodeString::lastIndexOf(const char16_t *srcChars, lastIndexOf() function in UnicodeString 4259 UnicodeString::lastIndexOf(const UnicodeString& srcText, lastIndexOf() function in UnicodeString 4275 UnicodeString::lastIndexOf(const UnicodeString& text, lastIndexOf() function in UnicodeString 4281 UnicodeString::lastIndexOf(const UnicodeString& text, lastIndexOf() function in UnicodeString 4288 UnicodeString::lastIndexOf(const UnicodeString& text) const lastIndexOf() function in UnicodeString 4292 UnicodeString::lastIndexOf(char16_t c, lastIndexOf() function in UnicodeString 4298 UnicodeString::lastIndexOf(UChar32 c, lastIndexOf() function in UnicodeString 4305 UnicodeString::lastIndexOf(char16_t c) const lastIndexOf() function in UnicodeString 4309 UnicodeString::lastIndexOf(UChar32 c) const { lastIndexOf() function in UnicodeString 4314 UnicodeString::lastIndexOf(char16_t c, lastIndexOf() function in UnicodeString 4321 UnicodeString::lastIndexOf(UChar32 c, lastIndexOf() function in UnicodeString [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/ |
H A 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
H A 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/node/benchmark/ |
H A D | _cli.js | 115 if (scripts.lastIndexOf(filter) !== -1) { 121 if (scripts.lastIndexOf(exclude) !== -1) {
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A 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/protobuf/js/commonjs/ |
H A D | export_asserts.js | 27 return str.lastIndexOf('assert') === 0 || str == 'fail';
|
H A D | rewrite_tests_for_commonjs.js | 40 if (str.lastIndexOf(prefix) !== 0) {
|
/third_party/protobuf/js/compatibility_tests/v3.0.0/commonjs/ |
H A D | export_asserts.js | 23 return str.lastIndexOf('assert') === 0 || str == 'fail';
|
H A D | rewrite_tests_for_commonjs.js | 40 if (str.lastIndexOf(prefix) !== 0) {
|
/third_party/icu/icu4c/source/test/intltest/ |
H A 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, -1, 0)!=1) { in TestCompare() 453 errln("error UnicodeString::lastIndexOf(const UChar *, srcLength=-1, ...) does not work"); in TestCompare() 813 if(test1.lastIndexOf(test2)!=29) { in TestSearching() 814 errln("test1.lastIndexOf(test2)!=29"); in TestSearching() 817 if(test1.lastIndexOf(test2, 15)!=29 || test1.lastIndexOf(test2, 29)!=29 || test1.lastIndexOf(test2, 30)!=-1) { in TestSearching() 818 errln("test1.lastIndexOf(test in TestSearching() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
H A D | UTF16Test.java | 1022 if (UTF16.lastIndexOf(test1, test2) != 29 || in TestIndexOf() 1023 UTF16.lastIndexOf(test1, test2, test1.length()) != 29) { in TestIndexOf() 1024 errln("lastIndexOf failed: expected to find '" + test2 + in TestIndexOf() 1027 if (UTF16.lastIndexOf(test1, testChar1) != 35 || in TestIndexOf() 1028 UTF16.lastIndexOf(test1, testChar1, test1.length()) != 35) { in TestIndexOf() 1029 errln("lastIndexOf failed: expected to find 0x" + 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() 1158 errln("lastIndexOf wit in TestIndexOf() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
H A D | UTF16Test.java | 1028 if (UTF16.lastIndexOf(test1, test2) != 29 || in TestIndexOf() 1029 UTF16.lastIndexOf(test1, test2, test1.length()) != 29) { in TestIndexOf() 1030 errln("lastIndexOf failed: expected to find '" + test2 + in TestIndexOf() 1033 if (UTF16.lastIndexOf(test1, testChar1) != 35 || in TestIndexOf() 1034 UTF16.lastIndexOf(test1, testChar1, test1.length()) != 35) { in TestIndexOf() 1035 errln("lastIndexOf failed: expected to find 0x" + 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() 1164 errln("lastIndexOf wit in TestIndexOf() [all...] |
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/table/opentype/ |
H A D | RuleTests.java | 58 String osFontPath = name.substring(name.lastIndexOf('/', name.lastIndexOf('/') - 1) + 1); in allFonts()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | stringLiteralTypeIsSubtypeOfString.js | 49 lastIndexOf(searchString: string, position?: number): number { return null; } 129 C.prototype.lastIndexOf = function (searchString, position) { return null; };
|