/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
D | StringUtilsEqualsIndexOfTest.java | 515 assertEquals(-1, StringUtils.lastIndexOf(null, ' ')); 516 assertEquals(-1, StringUtils.lastIndexOf("", ' ')); 517 assertEquals(7, StringUtils.lastIndexOf("aabaabaa", 'a')); 518 assertEquals(5, StringUtils.lastIndexOf("aabaabaa", 'b')); 520 assertEquals(5, StringUtils.lastIndexOf(new StringBuilder("aabaabaa"), 'b')); 525 assertEquals(-1, StringUtils.lastIndexOf(null, ' ', 0)); 526 assertEquals(-1, StringUtils.lastIndexOf(null, ' ', -1)); 527 assertEquals(-1, StringUtils.lastIndexOf("", ' ', 0)); 528 assertEquals(-1, StringUtils.lastIndexOf("", ' ', -1)); 529 assertEquals(7, StringUtils.lastIndexOf("aabaabaa", 'a', 8)); [all …]
|
D | ArrayUtilsTest.java | 1670 assertEquals(-1, ArrayUtils.lastIndexOf(null, null)); in testLastIndexOf() 1671 assertEquals(-1, ArrayUtils.lastIndexOf(null, "0")); in testLastIndexOf() 1672 assertEquals(5, ArrayUtils.lastIndexOf(array, "0")); in testLastIndexOf() 1673 assertEquals(1, ArrayUtils.lastIndexOf(array, "1")); in testLastIndexOf() 1674 assertEquals(2, ArrayUtils.lastIndexOf(array, "2")); in testLastIndexOf() 1675 assertEquals(3, ArrayUtils.lastIndexOf(array, "3")); in testLastIndexOf() 1676 assertEquals(4, ArrayUtils.lastIndexOf(array, null)); in testLastIndexOf() 1677 assertEquals(-1, ArrayUtils.lastIndexOf(array, "notInArray")); in testLastIndexOf() 1683 assertEquals(-1, ArrayUtils.lastIndexOf(array, true)); in testLastIndexOfBoolean() 1685 assertEquals(-1, ArrayUtils.lastIndexOf(array, true)); in testLastIndexOfBoolean() [all …]
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/text/ |
D | StrBuilderTest.java | 1250 assertEquals (2, sb.lastIndexOf('a')); in testLastIndexOf_char() 1252 assertEquals ("abab".lastIndexOf('a'), sb.lastIndexOf('a')); in testLastIndexOf_char() 1254 assertEquals(3, sb.lastIndexOf('b')); in testLastIndexOf_char() 1255 assertEquals ("abab".lastIndexOf('b'), sb.lastIndexOf('b')); in testLastIndexOf_char() 1257 assertEquals (-1, sb.lastIndexOf('z')); in testLastIndexOf_char() 1263 assertEquals(-1, sb.lastIndexOf('a', -1)); in testLastIndexOf_char_int() 1264 assertEquals(0, sb.lastIndexOf('a', 0)); in testLastIndexOf_char_int() 1265 assertEquals(0, sb.lastIndexOf('a', 1)); in testLastIndexOf_char_int() 1268 assertEquals("abab".lastIndexOf('a', 1), sb.lastIndexOf('a', 1)); in testLastIndexOf_char_int() 1270 assertEquals(1, sb.lastIndexOf('b', 2)); in testLastIndexOf_char_int() [all …]
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | ByteStringTest.kt | 156 assertEquals(0, byteString.lastIndexOf("112233".decodeHex()).toLong()) in lastIndexOfByteString() 157 assertEquals(0, byteString.lastIndexOf("1122".decodeHex()).toLong()) in lastIndexOfByteString() 158 assertEquals(0, byteString.lastIndexOf("11".decodeHex()).toLong()) in lastIndexOfByteString() 159 assertEquals(0, byteString.lastIndexOf("11".decodeHex(), 3).toLong()) in lastIndexOfByteString() 160 assertEquals(0, byteString.lastIndexOf("11".decodeHex(), 0).toLong()) in lastIndexOfByteString() 161 assertEquals(0, byteString.lastIndexOf("".decodeHex(), 0).toLong()) in lastIndexOfByteString() 162 assertEquals(1, byteString.lastIndexOf("2233".decodeHex()).toLong()) in lastIndexOfByteString() 163 assertEquals(1, byteString.lastIndexOf("22".decodeHex()).toLong()) in lastIndexOfByteString() 164 assertEquals(1, byteString.lastIndexOf("22".decodeHex(), 3).toLong()) in lastIndexOfByteString() 165 assertEquals(1, byteString.lastIndexOf("22".decodeHex(), 1).toLong()) in lastIndexOfByteString() [all …]
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | ByteStringJavaTest.java | 228 assertEquals(0, byteString.lastIndexOf(ByteString.decodeHex("112233"))); in lastIndexOfByteString() 229 assertEquals(0, byteString.lastIndexOf(ByteString.decodeHex("1122"))); in lastIndexOfByteString() 230 assertEquals(0, byteString.lastIndexOf(ByteString.decodeHex("11"))); in lastIndexOfByteString() 231 assertEquals(0, byteString.lastIndexOf(ByteString.decodeHex("11"), 3)); in lastIndexOfByteString() 232 assertEquals(0, byteString.lastIndexOf(ByteString.decodeHex("11"), 0)); in lastIndexOfByteString() 233 assertEquals(0, byteString.lastIndexOf(ByteString.decodeHex(""), 0)); in lastIndexOfByteString() 234 assertEquals(1, byteString.lastIndexOf(ByteString.decodeHex("2233"))); in lastIndexOfByteString() 235 assertEquals(1, byteString.lastIndexOf(ByteString.decodeHex("22"))); in lastIndexOfByteString() 236 assertEquals(1, byteString.lastIndexOf(ByteString.decodeHex("22"), 3)); in lastIndexOfByteString() 237 assertEquals(1, byteString.lastIndexOf(ByteString.decodeHex("22"), 1)); in lastIndexOfByteString() [all …]
|
/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/apache-commons-lang/src/main/java/org/apache/commons/lang3/ |
D | CharSequenceUtils.java | 150 static int lastIndexOf(final CharSequence cs, final CharSequence searchChar, int start) { in lastIndexOf() method in CharSequenceUtils 156 return ((String) cs).lastIndexOf((String) searchChar, start); in lastIndexOf() 159 return ((StringBuilder) cs).lastIndexOf((String) searchChar, start); in lastIndexOf() 162 return ((StringBuffer) cs).lastIndexOf((String) searchChar, start); in lastIndexOf() 183 return ((String) cs).lastIndexOf(searchChar.toString(), start); in lastIndexOf() 186 return ((StringBuilder) cs).lastIndexOf(searchChar.toString(), start); in lastIndexOf() 189 return ((StringBuffer) cs).lastIndexOf(searchChar.toString(), start); in lastIndexOf() 245 static int lastIndexOf(final CharSequence cs, final int searchChar, int start) { in lastIndexOf() method in CharSequenceUtils 247 return ((String) cs).lastIndexOf(searchChar, start); in lastIndexOf()
|
/external/guava/android/guava-tests/test/com/google/common/primitives/ |
D | BooleansTest.java | 103 assertEquals(-1, Booleans.lastIndexOf(EMPTY, false)); in testLastIndexOf() 104 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE, true)); in testLastIndexOf() 105 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)); in testLastIndexOf() 106 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE, false)); in testLastIndexOf() 107 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)); in testLastIndexOf() 108 assertEquals(1, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)); in testLastIndexOf() 109 assertEquals(2, Booleans.lastIndexOf(new boolean[] {false, true, true}, true)); in testLastIndexOf() 276 assertEquals(-1, Booleans.asList(EMPTY).lastIndexOf((Object) "wrong type")); in testAsListLastIndexOf() 277 assertEquals(-1, Booleans.asList(EMPTY).lastIndexOf(true)); in testAsListLastIndexOf() 278 assertEquals(-1, Booleans.asList(ARRAY_FALSE).lastIndexOf(true)); in testAsListLastIndexOf() [all …]
|
D | BytesTest.java | 102 assertEquals(-1, Bytes.lastIndexOf(EMPTY, (byte) 1)); in testLastIndexOf() 103 assertEquals(-1, Bytes.lastIndexOf(ARRAY1, (byte) 2)); in testLastIndexOf() 104 assertEquals(-1, Bytes.lastIndexOf(ARRAY234, (byte) 1)); in testLastIndexOf() 105 assertEquals(0, Bytes.lastIndexOf(new byte[] {(byte) -1}, (byte) -1)); in testLastIndexOf() 106 assertEquals(0, Bytes.lastIndexOf(ARRAY234, (byte) 2)); in testLastIndexOf() 107 assertEquals(1, Bytes.lastIndexOf(ARRAY234, (byte) 3)); in testLastIndexOf() 108 assertEquals(2, Bytes.lastIndexOf(ARRAY234, (byte) 4)); in testLastIndexOf() 110 3, Bytes.lastIndexOf(new byte[] {(byte) 2, (byte) 3, (byte) 2, (byte) 3}, (byte) 3)); in testLastIndexOf()
|
D | CharsTest.java | 149 assertEquals(-1, Chars.lastIndexOf(EMPTY, (char) 1)); in testLastIndexOf() 150 assertEquals(-1, Chars.lastIndexOf(ARRAY1, (char) 2)); in testLastIndexOf() 151 assertEquals(-1, Chars.lastIndexOf(ARRAY234, (char) 1)); in testLastIndexOf() 152 assertEquals(0, Chars.lastIndexOf(new char[] {(char) -1}, (char) -1)); in testLastIndexOf() 153 assertEquals(0, Chars.lastIndexOf(ARRAY234, (char) 2)); in testLastIndexOf() 154 assertEquals(1, Chars.lastIndexOf(ARRAY234, (char) 3)); in testLastIndexOf() 155 assertEquals(2, Chars.lastIndexOf(ARRAY234, (char) 4)); in testLastIndexOf() 157 3, Chars.lastIndexOf(new char[] {(char) 2, (char) 3, (char) 2, (char) 3}, (char) 3)); in testLastIndexOf()
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | BooleansTest.java | 103 assertEquals(-1, Booleans.lastIndexOf(EMPTY, false)); in testLastIndexOf() 104 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE, true)); in testLastIndexOf() 105 assertEquals(-1, Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)); in testLastIndexOf() 106 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE, false)); in testLastIndexOf() 107 assertEquals(0, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)); in testLastIndexOf() 108 assertEquals(1, Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)); in testLastIndexOf() 109 assertEquals(2, Booleans.lastIndexOf(new boolean[] {false, true, true}, true)); in testLastIndexOf() 276 assertEquals(-1, Booleans.asList(EMPTY).lastIndexOf((Object) "wrong type")); in testAsListLastIndexOf() 277 assertEquals(-1, Booleans.asList(EMPTY).lastIndexOf(true)); in testAsListLastIndexOf() 278 assertEquals(-1, Booleans.asList(ARRAY_FALSE).lastIndexOf(true)); in testAsListLastIndexOf() [all …]
|
D | BytesTest.java | 102 assertEquals(-1, Bytes.lastIndexOf(EMPTY, (byte) 1)); in testLastIndexOf() 103 assertEquals(-1, Bytes.lastIndexOf(ARRAY1, (byte) 2)); in testLastIndexOf() 104 assertEquals(-1, Bytes.lastIndexOf(ARRAY234, (byte) 1)); in testLastIndexOf() 105 assertEquals(0, Bytes.lastIndexOf(new byte[] {(byte) -1}, (byte) -1)); in testLastIndexOf() 106 assertEquals(0, Bytes.lastIndexOf(ARRAY234, (byte) 2)); in testLastIndexOf() 107 assertEquals(1, Bytes.lastIndexOf(ARRAY234, (byte) 3)); in testLastIndexOf() 108 assertEquals(2, Bytes.lastIndexOf(ARRAY234, (byte) 4)); in testLastIndexOf() 110 3, Bytes.lastIndexOf(new byte[] {(byte) 2, (byte) 3, (byte) 2, (byte) 3}, (byte) 3)); 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/icu/android_icu4j/src/main/java/android/icu/text/ |
D | UTF16.java | 1678 public static int lastIndexOf(String source, int char32) { in lastIndexOf() method in UTF16 1685 return source.lastIndexOf((char) char32); in lastIndexOf() 1689 int result = source.lastIndexOf((char) char32); in lastIndexOf() 1693 return lastIndexOf(source, char32, result - 1); in lastIndexOf() 1697 return lastIndexOf(source, char32, result - 1); in lastIndexOf() 1704 return source.lastIndexOf(char32str); in lastIndexOf() 1731 public static int lastIndexOf(String source, String str) { in lastIndexOf() method in UTF16 1735 return source.lastIndexOf(str); in lastIndexOf() 1738 int result = source.lastIndexOf(str); in lastIndexOf() 1743 return lastIndexOf(source, str, result - 1); in lastIndexOf() [all …]
|
/external/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 …]
|
/external/cronet/third_party/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 …]
|
/external/icu/libicu/cts_headers/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 …]
|
/external/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 …]
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/ |
D | JavaNames.java | 30 final int pos = vmname.lastIndexOf('/'); in getClassName() 36 final int dollarPosition = vmname.lastIndexOf('$'); in isAnonymous() 65 vmname.lastIndexOf('$')); in getClassName() 128 final int pos = name.lastIndexOf('.'); in getShortTypeName()
|
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
D | AppDataDirGuesser.java | 90 int index = input.lastIndexOf('['); in processClassLoaderString42OrEarlier() 114 int quoteEnd = split[i].lastIndexOf('"'); in processClassLoaderString43OrLater() 144 int end = potential.lastIndexOf(".apk"); in guessPath() 148 int endSlash = potential.lastIndexOf("/", end); in guessPath() 153 int startSlash = potential.lastIndexOf("/", endSlash - 1); in guessPath()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | ListSubListTester.java | 289 assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1))); in testSubList_lastIndexOf() 290 assertEquals(size - 2, head.lastIndexOf(list.get(size - 2))); in testSubList_lastIndexOf() 291 assertEquals(size - 2, tail.lastIndexOf(list.get(size - 1))); in testSubList_lastIndexOf() 293 assertEquals(0, copy.lastIndexOf(list.get(0))); in testSubList_lastIndexOf() 294 assertEquals(0, head.lastIndexOf(list.get(0))); in testSubList_lastIndexOf() 295 assertEquals(0, tail.lastIndexOf(list.get(1))); in testSubList_lastIndexOf() 296 assertEquals(-1, head.lastIndexOf(list.get(size - 1))); in testSubList_lastIndexOf() 297 assertEquals(-1, tail.lastIndexOf(list.get(0))); in testSubList_lastIndexOf()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | ListSubListTester.java | 289 assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1))); in testSubList_lastIndexOf() 290 assertEquals(size - 2, head.lastIndexOf(list.get(size - 2))); in testSubList_lastIndexOf() 291 assertEquals(size - 2, tail.lastIndexOf(list.get(size - 1))); in testSubList_lastIndexOf() 293 assertEquals(0, copy.lastIndexOf(list.get(0))); in testSubList_lastIndexOf() 294 assertEquals(0, head.lastIndexOf(list.get(0))); in testSubList_lastIndexOf() 295 assertEquals(0, tail.lastIndexOf(list.get(1))); in testSubList_lastIndexOf() 296 assertEquals(-1, head.lastIndexOf(list.get(size - 1))); in testSubList_lastIndexOf() 297 assertEquals(-1, tail.lastIndexOf(list.get(0))); in testSubList_lastIndexOf()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | String8.java | 294 cp = buf.lastIndexOf(File.separatorChar); in getPathLeaf() 343 lastSlashIndex = str.lastIndexOf(File.pathSeparator); in find_extension() 350 return str.lastIndexOf(".", lastSlashIndex); in find_extension()
|
/external/robolectric/resources/src/main/java/org/robolectric/res/android/ |
D | String8.java | 303 cp = buf.lastIndexOf('/'); in getPathLeaf() 352 lastSlashIndex = str.lastIndexOf(File.pathSeparator); in find_extension() 359 return str.lastIndexOf(".", lastSlashIndex); in find_extension()
|