Home
last modified time | relevance | path

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

12345678910>>...20

/external/v8/test/mjsunit/
Dstring-lastindexof.js35 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 …]
Darray-indexing.js121 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/webkit/
Darray-lastIndexOf.js32 lastIndex = testArray.lastIndexOf(2,-500);
34 lastIndex = testArray.lastIndexOf(9,500);
36 lastIndex = testArray.lastIndexOf(2);
38 lastIndex = testArray.lastIndexOf(7);
40 lastIndex = testArray.lastIndexOf(2, 3);
42 lastIndex = testArray.lastIndexOf(2, 2);
44 lastIndex = testArray.lastIndexOf(2, -2);
46 lastIndex = testArray.lastIndexOf(2, -1);
51 lastIndex = testArray.lastIndexOf(undefined);
56 lastIndex = testArray.lastIndexOf(undefined);
[all …]
/external/v8/test/mjsunit/es6/
Dtypedarray-indexing.js52 assertEquals(-1, new constructor([]).lastIndexOf(1));
53 assertEquals(-1, array.lastIndexOf(1, -17));
55 assertEquals(9, array.lastIndexOf(1));
57 assertEquals(9, array.lastIndexOf(1, array.length));
59 assertEquals(0, array.lastIndexOf(1, 2));
60 assertEquals(3, array.lastIndexOf(1, 4));
61 assertEquals(3, array.lastIndexOf(1, 3));
63 assertEquals(0, array.lastIndexOf(1, -11));
66 assertEquals(1, array.lastIndexOf.length);
67 assertThrows(function(){ array.lastIndexOf.call([1], 1); }, TypeError);
[all …]
/external/v8/test/mjsunit/regress/
Dregress-754.js34 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));
Dregress-crbug-381534.js13 assertEquals(10, arr.lastIndexOf(-(4/3)));
16 assertEquals(10, arr.lastIndexOf(v));
19 assertEquals(8, arr.lastIndexOf(obj));
26 assertEquals(index, arr.lastIndexOf(0));
29 assertEquals(index, arr.lastIndexOf(v));
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLStringDefault.java460 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()
DXMLString.java391 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/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DBooleansTest.java90 assertEquals(-1, Booleans.lastIndexOf(EMPTY, false)); in testLastIndexOf()
91 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE, true)); in testLastIndexOf()
92 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)); in testLastIndexOf()
93 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE, false)); in testLastIndexOf()
94 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)); in testLastIndexOf()
95 assertEquals(1, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)); in testLastIndexOf()
96 assertEquals(2, Booleans.lastIndexOf(new boolean[] {false, true, true}, true)); in testLastIndexOf()
227 assertEquals(-1, Booleans.asList(ARRAY_FALSE).lastIndexOf(true)); in testAsListLastIndexOf()
228 assertEquals(1, Booleans.asList(ARRAY_FALSE_TRUE).lastIndexOf(true)); in testAsListLastIndexOf()
229 assertEquals(1, Booleans.asList(ARRAY_FALSE_FALSE).lastIndexOf(false)); in testAsListLastIndexOf()
[all …]
DBytesTest.java109 assertEquals(-1, Bytes.lastIndexOf(EMPTY, (byte) 1)); in testLastIndexOf()
110 assertEquals(-1, Bytes.lastIndexOf(ARRAY1, (byte) 2)); in testLastIndexOf()
111 assertEquals(-1, Bytes.lastIndexOf(ARRAY234, (byte) 1)); in testLastIndexOf()
112 assertEquals(0, Bytes.lastIndexOf( in testLastIndexOf()
114 assertEquals(0, Bytes.lastIndexOf(ARRAY234, (byte) 2)); in testLastIndexOf()
115 assertEquals(1, Bytes.lastIndexOf(ARRAY234, (byte) 3)); in testLastIndexOf()
116 assertEquals(2, Bytes.lastIndexOf(ARRAY234, (byte) 4)); in testLastIndexOf()
117 assertEquals(3, Bytes.lastIndexOf( in testLastIndexOf()
DFloatsTest.java158 assertEquals(-1, Floats.lastIndexOf(EMPTY, (float) 1)); in testLastIndexOf()
159 assertEquals(-1, Floats.lastIndexOf(ARRAY1, (float) 2)); in testLastIndexOf()
160 assertEquals(-1, Floats.lastIndexOf(ARRAY234, (float) 1)); in testLastIndexOf()
161 assertEquals(0, Floats.lastIndexOf( in testLastIndexOf()
163 assertEquals(0, Floats.lastIndexOf(ARRAY234, (float) 2)); in testLastIndexOf()
164 assertEquals(1, Floats.lastIndexOf(ARRAY234, (float) 3)); in testLastIndexOf()
165 assertEquals(2, Floats.lastIndexOf(ARRAY234, (float) 4)); in testLastIndexOf()
166 assertEquals(3, Floats.lastIndexOf( in testLastIndexOf()
172 0, Floats.lastIndexOf(new float[] {value, 5f}, value)); in testLastIndexOf()
174 assertEquals(-1, Floats.lastIndexOf(new float[] {NaN, 5f}, NaN)); in testLastIndexOf()
DCharsTest.java155 assertEquals(-1, Chars.lastIndexOf(EMPTY, (char) 1)); in testLastIndexOf()
156 assertEquals(-1, Chars.lastIndexOf(ARRAY1, (char) 2)); in testLastIndexOf()
157 assertEquals(-1, Chars.lastIndexOf(ARRAY234, (char) 1)); in testLastIndexOf()
158 assertEquals(0, Chars.lastIndexOf( in testLastIndexOf()
160 assertEquals(0, Chars.lastIndexOf(ARRAY234, (char) 2)); in testLastIndexOf()
161 assertEquals(1, Chars.lastIndexOf(ARRAY234, (char) 3)); in testLastIndexOf()
162 assertEquals(2, Chars.lastIndexOf(ARRAY234, (char) 4)); in testLastIndexOf()
163 assertEquals(3, Chars.lastIndexOf( in testLastIndexOf()
DDoublesTest.java161 assertEquals(-1, Doubles.lastIndexOf(EMPTY, (double) 1)); in testLastIndexOf()
162 assertEquals(-1, Doubles.lastIndexOf(ARRAY1, (double) 2)); in testLastIndexOf()
163 assertEquals(-1, Doubles.lastIndexOf(ARRAY234, (double) 1)); in testLastIndexOf()
164 assertEquals(0, Doubles.lastIndexOf( in testLastIndexOf()
166 assertEquals(0, Doubles.lastIndexOf(ARRAY234, (double) 2)); in testLastIndexOf()
167 assertEquals(1, Doubles.lastIndexOf(ARRAY234, (double) 3)); in testLastIndexOf()
168 assertEquals(2, Doubles.lastIndexOf(ARRAY234, (double) 4)); in testLastIndexOf()
169 assertEquals(3, Doubles.lastIndexOf( in testLastIndexOf()
175 0, Doubles.lastIndexOf(new double[] {value, 5.0}, value)); in testLastIndexOf()
177 assertEquals(-1, Doubles.lastIndexOf(new double[] {NaN, 5.0}, NaN)); in testLastIndexOf()
DShortsTest.java164 assertEquals(-1, Shorts.lastIndexOf(EMPTY, (short) 1)); in testLastIndexOf()
165 assertEquals(-1, Shorts.lastIndexOf(ARRAY1, (short) 2)); in testLastIndexOf()
166 assertEquals(-1, Shorts.lastIndexOf(ARRAY234, (short) 1)); in testLastIndexOf()
167 assertEquals(0, Shorts.lastIndexOf( in testLastIndexOf()
169 assertEquals(0, Shorts.lastIndexOf(ARRAY234, (short) 2)); in testLastIndexOf()
170 assertEquals(1, Shorts.lastIndexOf(ARRAY234, (short) 3)); in testLastIndexOf()
171 assertEquals(2, Shorts.lastIndexOf(ARRAY234, (short) 4)); in testLastIndexOf()
172 assertEquals(3, Shorts.lastIndexOf( in testLastIndexOf()
/external/guava/guava-tests/test/com/google/common/primitives/
DBooleansTest.java93 assertEquals(-1, Booleans.lastIndexOf(EMPTY, false)); in testLastIndexOf()
94 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE, true)); in testLastIndexOf()
95 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)); in testLastIndexOf()
96 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE, false)); in testLastIndexOf()
97 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)); in testLastIndexOf()
98 assertEquals(1, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)); in testLastIndexOf()
99 assertEquals(2, Booleans.lastIndexOf(new boolean[] {false, true, true}, true)); in testLastIndexOf()
236 assertEquals(-1, Booleans.asList(ARRAY_FALSE).lastIndexOf(true)); in testAsListLastIndexOf()
237 assertEquals(1, Booleans.asList(ARRAY_FALSE_TRUE).lastIndexOf(true)); in testAsListLastIndexOf()
238 assertEquals(1, Booleans.asList(ARRAY_FALSE_FALSE).lastIndexOf(false)); in testAsListLastIndexOf()
[all …]
DBytesTest.java111 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()
DCharsTest.java158 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()
DDoublesTest.java165 assertEquals(-1, Doubles.lastIndexOf(EMPTY, (double) 1)); in testLastIndexOf()
166 assertEquals(-1, Doubles.lastIndexOf(ARRAY1, (double) 2)); in testLastIndexOf()
167 assertEquals(-1, Doubles.lastIndexOf(ARRAY234, (double) 1)); in testLastIndexOf()
168 assertEquals(0, Doubles.lastIndexOf( in testLastIndexOf()
170 assertEquals(0, Doubles.lastIndexOf(ARRAY234, (double) 2)); in testLastIndexOf()
171 assertEquals(1, Doubles.lastIndexOf(ARRAY234, (double) 3)); in testLastIndexOf()
172 assertEquals(2, Doubles.lastIndexOf(ARRAY234, (double) 4)); in testLastIndexOf()
173 assertEquals(3, Doubles.lastIndexOf( in testLastIndexOf()
179 0, Doubles.lastIndexOf(new double[] {value, 5.0}, value)); in testLastIndexOf()
181 assertEquals(-1, Doubles.lastIndexOf(new double[] {NaN, 5.0}, NaN)); in testLastIndexOf()
DFloatsTest.java163 assertEquals(-1, Floats.lastIndexOf(EMPTY, (float) 1)); in testLastIndexOf()
164 assertEquals(-1, Floats.lastIndexOf(ARRAY1, (float) 2)); in testLastIndexOf()
165 assertEquals(-1, Floats.lastIndexOf(ARRAY234, (float) 1)); in testLastIndexOf()
166 assertEquals(0, Floats.lastIndexOf( in testLastIndexOf()
168 assertEquals(0, Floats.lastIndexOf(ARRAY234, (float) 2)); in testLastIndexOf()
169 assertEquals(1, Floats.lastIndexOf(ARRAY234, (float) 3)); in testLastIndexOf()
170 assertEquals(2, Floats.lastIndexOf(ARRAY234, (float) 4)); in testLastIndexOf()
171 assertEquals(3, Floats.lastIndexOf( in testLastIndexOf()
177 0, Floats.lastIndexOf(new float[] {value, 5f}, value)); in testLastIndexOf()
179 assertEquals(-1, Floats.lastIndexOf(new float[] {NaN, 5f}, NaN)); in testLastIndexOf()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXString.java700 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/icu/android_icu4j/src/main/java/android/icu/text/
DUTF16.java1671 public static int lastIndexOf(String source, int char32) { in lastIndexOf() method in UTF16
1678 return source.lastIndexOf((char) char32); in lastIndexOf()
1682 int result = source.lastIndexOf((char) char32); in lastIndexOf()
1686 return lastIndexOf(source, char32, result - 1); in lastIndexOf()
1690 return lastIndexOf(source, char32, result - 1); in lastIndexOf()
1697 return source.lastIndexOf(char32str); in lastIndexOf()
1724 public static int lastIndexOf(String source, String str) { in lastIndexOf() method in UTF16
1728 return source.lastIndexOf(str); in lastIndexOf()
1731 int result = source.lastIndexOf(str); in lastIndexOf()
1736 return lastIndexOf(source, str, result - 1); in lastIndexOf()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java1734 public static int lastIndexOf(String source, int char32) { in lastIndexOf() method in UTF16
1741 return source.lastIndexOf((char) char32); in lastIndexOf()
1745 int result = source.lastIndexOf((char) char32); in lastIndexOf()
1749 return lastIndexOf(source, char32, result - 1); in lastIndexOf()
1753 return lastIndexOf(source, char32, result - 1); in lastIndexOf()
1760 return source.lastIndexOf(char32str); in lastIndexOf()
1788 public static int lastIndexOf(String source, String str) { in lastIndexOf() method in UTF16
1792 return source.lastIndexOf(str); in lastIndexOf()
1795 int result = source.lastIndexOf(str); in lastIndexOf()
1800 return lastIndexOf(source, str, result - 1); in lastIndexOf()
[all …]
/external/icu/icu4c/source/common/unicode/
Dunistr.h1144 inline int32_t lastIndexOf(const UnicodeString& text) const;
1155 inline int32_t lastIndexOf(const UnicodeString& text,
1169 inline int32_t lastIndexOf(const UnicodeString& text,
1189 inline int32_t lastIndexOf(const UnicodeString& srcText,
1205 inline int32_t lastIndexOf(const UChar *srcChars,
1221 inline int32_t lastIndexOf(const UChar *srcChars,
1242 int32_t lastIndexOf(const UChar *srcChars,
1255 inline int32_t lastIndexOf(UChar c) const;
1265 inline int32_t lastIndexOf(UChar32 c) const;
1275 inline int32_t lastIndexOf(UChar c,
[all …]
/external/jacoco/org.jacoco.report/src/org/jacoco/report/
DJavaNames.java29 final int pos = vmname.lastIndexOf('/'); in getClassName()
35 final int dollarPosition = vmname.lastIndexOf('$'); in isAnonymous()
64 vmname.lastIndexOf('$')); in getClassName()
127 final int pos = name.lastIndexOf('.'); in getShortTypeName()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DListSubListTester.java293 assertEquals(copy.lastIndexOf(list.get(size - 1)), in testSubList_lastIndexOf()
295 assertEquals(head.lastIndexOf(list.get(size - 2)), in testSubList_lastIndexOf()
297 assertEquals(tail.lastIndexOf(list.get(size - 1)), in testSubList_lastIndexOf()
300 assertEquals(copy.lastIndexOf(list.get(0)), in testSubList_lastIndexOf()
302 assertEquals(head.lastIndexOf(list.get(0)), in testSubList_lastIndexOf()
304 assertEquals(tail.lastIndexOf(list.get(1)), in testSubList_lastIndexOf()
306 assertEquals(head.lastIndexOf(list.get(size - 1)), in testSubList_lastIndexOf()
308 assertEquals(tail.lastIndexOf(list.get(0)), in testSubList_lastIndexOf()

12345678910>>...20