/external/v8/test/mjsunit/ |
D | string-lastindexof.js | 35 assertEquals(10, s.lastIndexOf("test", Infinity), "tinf"); 36 assertEquals(10, s.lastIndexOf("test", MAX_DOUBLE), "tmaxdouble"); 37 assertEquals(10, s.lastIndexOf("test", MAX_SMI), "tmaxsmi"); 38 assertEquals(10, s.lastIndexOf("test", s.length * 2), "t2length"); 39 assertEquals(10, s.lastIndexOf("test", 15), "t15"); 40 assertEquals(10, s.lastIndexOf("test", 14), "t14"); 41 assertEquals(10, s.lastIndexOf("test", 10), "t10"); 42 assertEquals(5, s.lastIndexOf("test", 9), "t9"); 43 assertEquals(5, s.lastIndexOf("test", 6), "t6"); 44 assertEquals(5, s.lastIndexOf("test", 5), "t5"); [all …]
|
D | array-indexing.js | 121 assertEquals(-1, [].lastIndexOf(1)); 122 assertEquals(-1, array.lastIndexOf(1, -17)); 124 assertEquals(9, array.lastIndexOf(1)); 126 assertEquals(9, array.lastIndexOf(1, array.length)); 128 assertEquals(0, array.lastIndexOf(1, 2)); 129 assertEquals(3, array.lastIndexOf(1, 4)); 130 assertEquals(3, array.lastIndexOf(1, 3)); 132 assertEquals(0, array.lastIndexOf(1, -11)); 135 assertEquals(7, undef_array.lastIndexOf(undefined)); 136 assertEquals(-1, undef_array.lastIndexOf(undefined, 2)); [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-754.js | 34 assertEquals(1, a.lastIndexOf(2)); 35 assertEquals(2, a.lastIndexOf(1)); 36 assertEquals(0, a.lastIndexOf(1, undefined)); 37 assertEquals(0, a.lastIndexOf(1, null)); 38 assertEquals(-1, a.lastIndexOf(2, undefined)); 39 assertEquals(-1, a.lastIndexOf(2, null));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/ |
D | match-002.js | 65 s.lastIndexOf("0"), 75 s.lastIndexOf("0"), 78 re.lastIndex = s.lastIndexOf("0"); 82 s.lastIndexOf("0"), 84 s.lastIndexOf("0"), 87 re.lastIndex = s.lastIndexOf("0") + 1; 91 s.lastIndexOf("0") +1, 93 s.lastIndexOf("0"),
|
D | match-003.js | 79 re.lastIndex = s.lastIndexOf("0"); 83 "re = "+ re +"; re.lastIndex = " + s.lastIndexOf("0"), 87 re.lastIndex = s.lastIndexOf("0") + 1; 91 "re = " +re+ "; re.lastIndex = " + (s.lastIndexOf("0") +1),
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
D | 15.5.4.7-1.js | 78 TEST_STRING.lastIndexOf( String.fromCharCode(i), 0 ) ); 85 TEST_STRING.lastIndexOf( String.fromCharCode(i), k ) ); 92 TEST_STRING.lastIndexOf( String.fromCharCode(i), k+1 ) ); 103 TEST_STRING.lastIndexOf( (String.fromCharCode(i)+ 115 TEST_STRING.lastIndexOf( (String.fromCharCode(i)+ 126 TEST_STRING.lastIndexOf( (String.fromCharCode(i)+ 139 TEST_STRING.lastIndexOf( (String.fromCharCode(i)+ 145 …SECTION, "String.lastIndexOf(" +TEST_STRING + ", 0 )", 0, TEST_STRING.lastIndexOf( TEST_STRING, 0… 147 …se( SECTION, "String.lastIndexOf(" +TEST_STRING + ")", 0, TEST_STRING.lastIndexOf( TEST_STRING ));
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
D | XMLStringDefault.java | 460 public int lastIndexOf(int ch) in lastIndexOf() method in XMLStringDefault 462 return m_str.lastIndexOf(ch); in lastIndexOf() 488 public int lastIndexOf(int ch, int fromIndex) in lastIndexOf() method in XMLStringDefault 490 return m_str.lastIndexOf(ch, fromIndex); in lastIndexOf() 586 public int lastIndexOf(String str) in lastIndexOf() method in XMLStringDefault 588 return m_str.lastIndexOf(str); in lastIndexOf() 611 public int lastIndexOf(String str, int fromIndex) in lastIndexOf() method in XMLStringDefault 613 return m_str.lastIndexOf(str, fromIndex); in lastIndexOf()
|
D | XMLString.java | 391 public abstract int lastIndexOf(int ch); in lastIndexOf() method 416 public abstract int lastIndexOf(int ch, int fromIndex); in lastIndexOf() method 502 public abstract int lastIndexOf(String str); in lastIndexOf() method 524 public abstract int lastIndexOf(String str, int fromIndex); in lastIndexOf() method
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/String/ |
D | regress-107771.js | 43 k = str.lastIndexOf('/'); 49 k = str.lastIndexOf('/'); 56 k = str.lastIndexOf('/'); 63 k = str.lastIndexOf('/'); 70 k = str.lastIndexOf('/');
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | StringBufferTest.java | 567 assertEquals(0, sb.lastIndexOf("0")); in test_lastIndexOfLjava_lang_StringI() 568 assertEquals(0, sb.lastIndexOf("012")); in test_lastIndexOfLjava_lang_StringI() 569 assertEquals(-1, sb.lastIndexOf("02")); in test_lastIndexOfLjava_lang_StringI() 570 assertEquals(8, sb.lastIndexOf("89")); in test_lastIndexOfLjava_lang_StringI() 572 assertEquals(0, sb.lastIndexOf("0"), 0); in test_lastIndexOfLjava_lang_StringI() 573 assertEquals(0, sb.lastIndexOf("012"), 0); in test_lastIndexOfLjava_lang_StringI() 574 assertEquals(-1, sb.lastIndexOf("02"), 0); in test_lastIndexOfLjava_lang_StringI() 575 assertEquals(8, sb.lastIndexOf("89"), 0); in test_lastIndexOfLjava_lang_StringI() 577 assertEquals(-1, sb.lastIndexOf("0"), 5); in test_lastIndexOfLjava_lang_StringI() 578 assertEquals(-1, sb.lastIndexOf("012"), 5); in test_lastIndexOfLjava_lang_StringI() [all …]
|
D | String2Test.java | 581 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W')); in test_lastIndexOfI() 583 .lastIndexOf('Z')); in test_lastIndexOfI() 585 .lastIndexOf(0x10000)); in test_lastIndexOfI() 593 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W', in test_lastIndexOfII() 596 .lastIndexOf('W', 4)); in test_lastIndexOfII() 598 .lastIndexOf('Z', 9)); in test_lastIndexOfII() 607 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World")); in test_lastIndexOfLjava_lang_String() 609 .lastIndexOf("HeKKKKKKKK")); in test_lastIndexOfLjava_lang_String() 618 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World", 9)); in test_lastIndexOfLjava_lang_StringI() 619 int result = hw1.lastIndexOf("Hello", 2); in test_lastIndexOfLjava_lang_StringI() [all …]
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | BytesTest.java | 111 assertEquals(-1, Bytes.lastIndexOf(EMPTY, (byte) 1)); in testLastIndexOf() 112 assertEquals(-1, Bytes.lastIndexOf(ARRAY1, (byte) 2)); in testLastIndexOf() 113 assertEquals(-1, Bytes.lastIndexOf(ARRAY234, (byte) 1)); in testLastIndexOf() 114 assertEquals(0, Bytes.lastIndexOf( in testLastIndexOf() 116 assertEquals(0, Bytes.lastIndexOf(ARRAY234, (byte) 2)); in testLastIndexOf() 117 assertEquals(1, Bytes.lastIndexOf(ARRAY234, (byte) 3)); in testLastIndexOf() 118 assertEquals(2, Bytes.lastIndexOf(ARRAY234, (byte) 4)); in testLastIndexOf() 119 assertEquals(3, Bytes.lastIndexOf( in testLastIndexOf()
|
D | BooleansTest.java | 82 assertEquals(-1, Booleans.lastIndexOf(EMPTY, false)); in testLastIndexOf() 83 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE, true)); in testLastIndexOf() 84 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)); in testLastIndexOf() 85 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE, false)); in testLastIndexOf() 86 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)); in testLastIndexOf() 87 assertEquals(1, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)); in testLastIndexOf() 88 assertEquals(2, Booleans.lastIndexOf(new boolean[] {false, true, true}, true)); in testLastIndexOf()
|
D | DoublesTest.java | 162 assertEquals(-1, Doubles.lastIndexOf(EMPTY, (double) 1)); in testLastIndexOf() 163 assertEquals(-1, Doubles.lastIndexOf(ARRAY1, (double) 2)); in testLastIndexOf() 164 assertEquals(-1, Doubles.lastIndexOf(ARRAY234, (double) 1)); in testLastIndexOf() 165 assertEquals(0, Doubles.lastIndexOf( in testLastIndexOf() 167 assertEquals(0, Doubles.lastIndexOf(ARRAY234, (double) 2)); in testLastIndexOf() 168 assertEquals(1, Doubles.lastIndexOf(ARRAY234, (double) 3)); in testLastIndexOf() 169 assertEquals(2, Doubles.lastIndexOf(ARRAY234, (double) 4)); in testLastIndexOf() 170 assertEquals(3, Doubles.lastIndexOf( in testLastIndexOf() 176 0, Doubles.lastIndexOf(new double[] {value, 5.0}, value)); in testLastIndexOf() 178 assertEquals(-1, Doubles.lastIndexOf(new double[] {NaN, 5.0}, NaN)); in testLastIndexOf()
|
D | FloatsTest.java | 161 assertEquals(-1, Floats.lastIndexOf(EMPTY, (float) 1)); in testLastIndexOf() 162 assertEquals(-1, Floats.lastIndexOf(ARRAY1, (float) 2)); in testLastIndexOf() 163 assertEquals(-1, Floats.lastIndexOf(ARRAY234, (float) 1)); in testLastIndexOf() 164 assertEquals(0, Floats.lastIndexOf( in testLastIndexOf() 166 assertEquals(0, Floats.lastIndexOf(ARRAY234, (float) 2)); in testLastIndexOf() 167 assertEquals(1, Floats.lastIndexOf(ARRAY234, (float) 3)); in testLastIndexOf() 168 assertEquals(2, Floats.lastIndexOf(ARRAY234, (float) 4)); in testLastIndexOf() 169 assertEquals(3, Floats.lastIndexOf( in testLastIndexOf() 175 0, Floats.lastIndexOf(new float[] {value, 5f}, value)); in testLastIndexOf() 177 assertEquals(-1, Floats.lastIndexOf(new float[] {NaN, 5f}, NaN)); in testLastIndexOf()
|
D | LongsTest.java | 131 assertEquals(-1, Longs.lastIndexOf(EMPTY, (long) 1)); in testLastIndexOf() 132 assertEquals(-1, Longs.lastIndexOf(ARRAY1, (long) 2)); in testLastIndexOf() 133 assertEquals(-1, Longs.lastIndexOf(ARRAY234, (long) 1)); in testLastIndexOf() 134 assertEquals(0, Longs.lastIndexOf( in testLastIndexOf() 136 assertEquals(0, Longs.lastIndexOf(ARRAY234, (long) 2)); in testLastIndexOf() 137 assertEquals(1, Longs.lastIndexOf(ARRAY234, (long) 3)); in testLastIndexOf() 138 assertEquals(2, Longs.lastIndexOf(ARRAY234, (long) 4)); in testLastIndexOf() 139 assertEquals(3, Longs.lastIndexOf( in testLastIndexOf()
|
D | ShortsTest.java | 167 assertEquals(-1, Shorts.lastIndexOf(EMPTY, (short) 1)); in testLastIndexOf() 168 assertEquals(-1, Shorts.lastIndexOf(ARRAY1, (short) 2)); in testLastIndexOf() 169 assertEquals(-1, Shorts.lastIndexOf(ARRAY234, (short) 1)); in testLastIndexOf() 170 assertEquals(0, Shorts.lastIndexOf( in testLastIndexOf() 172 assertEquals(0, Shorts.lastIndexOf(ARRAY234, (short) 2)); in testLastIndexOf() 173 assertEquals(1, Shorts.lastIndexOf(ARRAY234, (short) 3)); in testLastIndexOf() 174 assertEquals(2, Shorts.lastIndexOf(ARRAY234, (short) 4)); in testLastIndexOf() 175 assertEquals(3, Shorts.lastIndexOf( in testLastIndexOf()
|
D | CharsTest.java | 158 assertEquals(-1, Chars.lastIndexOf(EMPTY, (char) 1)); in testLastIndexOf() 159 assertEquals(-1, Chars.lastIndexOf(ARRAY1, (char) 2)); in testLastIndexOf() 160 assertEquals(-1, Chars.lastIndexOf(ARRAY234, (char) 1)); in testLastIndexOf() 161 assertEquals(0, Chars.lastIndexOf( in testLastIndexOf() 163 assertEquals(0, Chars.lastIndexOf(ARRAY234, (char) 2)); in testLastIndexOf() 164 assertEquals(1, Chars.lastIndexOf(ARRAY234, (char) 3)); in testLastIndexOf() 165 assertEquals(2, Chars.lastIndexOf(ARRAY234, (char) 4)); in testLastIndexOf() 166 assertEquals(3, Chars.lastIndexOf( in testLastIndexOf()
|
D | IntsTest.java | 159 assertEquals(-1, Ints.lastIndexOf(EMPTY, (int) 1)); in testLastIndexOf() 160 assertEquals(-1, Ints.lastIndexOf(ARRAY1, (int) 2)); in testLastIndexOf() 161 assertEquals(-1, Ints.lastIndexOf(ARRAY234, (int) 1)); in testLastIndexOf() 162 assertEquals(0, Ints.lastIndexOf( in testLastIndexOf() 164 assertEquals(0, Ints.lastIndexOf(ARRAY234, (int) 2)); in testLastIndexOf() 165 assertEquals(1, Ints.lastIndexOf(ARRAY234, (int) 3)); in testLastIndexOf() 166 assertEquals(2, Ints.lastIndexOf(ARRAY234, (int) 4)); in testLastIndexOf() 167 assertEquals(3, Ints.lastIndexOf( in testLastIndexOf()
|
/external/apache-xml/src/main/java/org/apache/xpath/objects/ |
D | XString.java | 700 public int lastIndexOf(int ch) in lastIndexOf() method in XString 702 return str().lastIndexOf(ch); in lastIndexOf() 728 public int lastIndexOf(int ch, int fromIndex) in lastIndexOf() method in XString 730 return str().lastIndexOf(ch, fromIndex); in lastIndexOf() 826 public int lastIndexOf(String str) in lastIndexOf() method in XString 828 return str().lastIndexOf(str); in lastIndexOf() 851 public int lastIndexOf(String str, int fromIndex) in lastIndexOf() method in XString 853 return str().lastIndexOf(str, fromIndex); in lastIndexOf()
|
/external/arduino/hardware/arduino/cores/arduino/ |
D | WString.h | 66 int lastIndexOf( char ch ) const; 67 int lastIndexOf( char ch, unsigned int fromIndex ) const; 68 int lastIndexOf( const String &str ) const; 69 int lastIndexOf( const String &str, unsigned int fromIndex ) const;
|
/external/jmonkeyengine/engine/src/core/com/jme3/asset/ |
D | AssetKey.java | 59 int idx = name.lastIndexOf('.'); in getExtension() 62 idx = name.substring(0, idx).lastIndexOf('.'); in getExtension() 64 idx = name.lastIndexOf('.'); in getExtension() 74 int idx = name.lastIndexOf('/'); in getFolder()
|
/external/icu4c/common/unicode/ |
D | unistr.h | 1096 inline int32_t lastIndexOf(const UnicodeString& text) const; 1107 inline int32_t lastIndexOf(const UnicodeString& text, 1121 inline int32_t lastIndexOf(const UnicodeString& text, 1141 inline int32_t lastIndexOf(const UnicodeString& srcText, 1157 inline int32_t lastIndexOf(const UChar *srcChars, 1173 inline int32_t lastIndexOf(const UChar *srcChars, 1194 int32_t lastIndexOf(const UChar *srcChars, 1207 inline int32_t lastIndexOf(UChar c) const; 1217 inline int32_t lastIndexOf(UChar32 c) const; 1227 inline int32_t lastIndexOf(UChar c, [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | ListSubListTester.java | 282 assertEquals(copy.lastIndexOf(list.get(size - 1)), in testSubList_lastIndexOf() 284 assertEquals(head.lastIndexOf(list.get(size - 2)), in testSubList_lastIndexOf() 286 assertEquals(tail.lastIndexOf(list.get(size - 1)), in testSubList_lastIndexOf() 289 assertEquals(copy.lastIndexOf(list.get(0)), in testSubList_lastIndexOf() 291 assertEquals(head.lastIndexOf(list.get(0)), in testSubList_lastIndexOf() 293 assertEquals(tail.lastIndexOf(list.get(1)), in testSubList_lastIndexOf() 295 assertEquals(head.lastIndexOf(list.get(size - 1)), in testSubList_lastIndexOf() 297 assertEquals(tail.lastIndexOf(list.get(0)), in testSubList_lastIndexOf()
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_6/Array/ |
D | regress-310425-01.js | 47 actual = [].lastIndexOf(undefined, -1); 57 actual = x.lastIndexOf(1);
|