Home
last modified time | relevance | path

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

12345

/libcore/ojluni/src/test/java/lang/StringBuilder/
DCompactStringBuilder.java83 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("A"), 0); in testCompactStringBuilderForLatinA()
84 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("\uFF21"), -1); in testCompactStringBuilderForLatinA()
85 assertEquals(new StringBuilder(ORIGIN).lastIndexOf(""), 1); in testCompactStringBuilderForLatinA()
121 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("A"), -1); in testCompactStringBuilderForNonLatinA()
122 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("\uFF21"), 0); in testCompactStringBuilderForNonLatinA()
123 assertEquals(new StringBuilder(ORIGIN).lastIndexOf(""), 1); in testCompactStringBuilderForNonLatinA()
150 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("A"), 1); in testCompactStringBuilderForMixedA1()
151 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("\uFF21"), 0); in testCompactStringBuilderForMixedA1()
152 assertEquals(new StringBuilder(ORIGIN).lastIndexOf(""), 2); in testCompactStringBuilderForMixedA1()
184 assertEquals(new StringBuilder(ORIGIN).lastIndexOf("A"), 9); in testCompactStringBuilderForDuplicatedMixedA1()
[all …]
DBuilderForwarding.java246 int pos = sb.lastIndexOf("xyz"); in lastIndexOfString()
253 int pos = sb.lastIndexOf("xyz",5); in lastIndexOfStringint()
255 pos = sb.lastIndexOf("xyz", 6); in lastIndexOfStringint()
/libcore/ojluni/src/test/java/lang/StringBuffer/
DCompactStringBuffer.java83 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("A"), 0); in testCompactStringBufferForLatinA()
84 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("\uFF21"), -1); in testCompactStringBufferForLatinA()
85 assertEquals(new StringBuffer(ORIGIN).lastIndexOf(""), 1); in testCompactStringBufferForLatinA()
121 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("A"), -1); in testCompactStringBufferForNonLatinA()
122 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("\uFF21"), 0); in testCompactStringBufferForNonLatinA()
123 assertEquals(new StringBuffer(ORIGIN).lastIndexOf(""), 1); in testCompactStringBufferForNonLatinA()
149 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("A"), 1); in testCompactStringBufferForMixedA1()
150 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("\uFF21"), 0); in testCompactStringBufferForMixedA1()
151 assertEquals(new StringBuffer(ORIGIN).lastIndexOf(""), 2); in testCompactStringBufferForMixedA1()
183 assertEquals(new StringBuffer(ORIGIN).lastIndexOf("A"), 9); in testCompactStringBufferForDuplicatedMixedA1()
[all …]
DIndexOf.java130 sourceBuffer.lastIndexOf(targetString)) in compareIndexOfLastIndexOf()
134 sourceString.lastIndexOf(targetString)) in compareIndexOfLastIndexOf()
176 sAnswer = testString.lastIndexOf(fragment); in compareStringStringBuffer()
177 sbAnswer = testBuffer.lastIndexOf(fragment); in compareStringStringBuffer()
184 sAnswer = testString.lastIndexOf(fragment, testIndex); in compareStringStringBuffer()
185 sbAnswer = testBuffer.lastIndexOf(fragment, testIndex); in compareStringStringBuffer()
DBufferForwarding.java221 int pos = sb.lastIndexOf("xyz"); in lastIndexOfString()
227 int pos = sb.lastIndexOf("xyz",5); in lastIndexOfStringint()
229 pos = sb.lastIndexOf("xyz", 6); in lastIndexOfStringint()
/libcore/ojluni/src/main/java/sun/security/x509/
DRFC822Name.java203 int inNdx = thisName.lastIndexOf(inName); in constrains()
217 int ndx = inName.lastIndexOf(thisName); in constrains()
243 int atNdx = subtree.lastIndexOf('@'); in subtreeDepth()
250 for (; subtree.lastIndexOf('.') >= 0; i++) { in subtreeDepth()
251 subtree=subtree.substring(0,subtree.lastIndexOf('.')); in subtreeDepth()
DDNSName.java208 int inNdx = thisName.lastIndexOf(inName); in constrains()
214 int ndx = inName.lastIndexOf(thisName); in constrains()
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java52 assertEquals(4, array.lastIndexOf(Integer.valueOf(1))); in testArrayList()
54 assertTrue(array.lastIndexOf(Integer.valueOf(5)) < 0); in testArrayList()
68 assertEquals(2, array.lastIndexOf(Integer.valueOf(1))); in testArrayList()
70 assertTrue(array.lastIndexOf(Integer.valueOf(5)) < 0); in testArrayList()
77 assertTrue(array.lastIndexOf(Integer.valueOf(5)) < 0); in testArrayList()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBufferTest.java568 assertEquals(0, sb.lastIndexOf("0")); in test_lastIndexOfLjava_lang_StringI()
569 assertEquals(0, sb.lastIndexOf("012")); in test_lastIndexOfLjava_lang_StringI()
570 assertEquals(-1, sb.lastIndexOf("02")); in test_lastIndexOfLjava_lang_StringI()
571 assertEquals(8, sb.lastIndexOf("89")); in test_lastIndexOfLjava_lang_StringI()
573 assertEquals(0, sb.lastIndexOf("0"), 0); in test_lastIndexOfLjava_lang_StringI()
574 assertEquals(0, sb.lastIndexOf("012"), 0); in test_lastIndexOfLjava_lang_StringI()
575 assertEquals(-1, sb.lastIndexOf("02"), 0); in test_lastIndexOfLjava_lang_StringI()
576 assertEquals(8, sb.lastIndexOf("89"), 0); in test_lastIndexOfLjava_lang_StringI()
578 assertEquals(-1, sb.lastIndexOf("0"), 5); in test_lastIndexOfLjava_lang_StringI()
579 assertEquals(-1, sb.lastIndexOf("012"), 5); in test_lastIndexOfLjava_lang_StringI()
[all …]
DString2Test.java585 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W')); in test_lastIndexOfI()
587 .lastIndexOf('Z')); in test_lastIndexOfI()
589 .lastIndexOf(0x10000)); in test_lastIndexOfI()
597 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W', in test_lastIndexOfII()
600 .lastIndexOf('W', 4)); in test_lastIndexOfII()
602 .lastIndexOf('Z', 9)); in test_lastIndexOfII()
611 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World")); in test_lastIndexOfLjava_lang_String()
613 .lastIndexOf("HeKKKKKKKK")); in test_lastIndexOfLjava_lang_String()
622 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World", 9)); in test_lastIndexOfLjava_lang_StringI()
623 int result = hw1.lastIndexOf("Hello", 2); in test_lastIndexOfLjava_lang_StringI()
[all …]
/libcore/ojluni/src/test/java/lang/String/CompactString/
DLastIndexOf.java72 data.lastIndexOf(ch), in testLastIndexOf()
118 data.lastIndexOf(ch, fromIndex), in testLastIndexOf()
159 data.lastIndexOf(anotherString), in testLastIndexOf()
217 data.lastIndexOf(anotherString, fromIndex), in testLastIndexOf()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java111 int lastPound = actual.lastIndexOf("#"); in assertURIEquals()
124 int lastQuestion = uri.lastIndexOf("?"); in assertURIEquals()
165 int finalSlash = actualPath.lastIndexOf("/"); in assertURIEquals()
176 int finalPeriod = actualFile.lastIndexOf("."); in assertURIEquals()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java225 public int lastIndexOf(int ch) { in lastIndexOf() method in String
229 public int lastIndexOf(int ch, int fromIndex) { in lastIndexOf() method in String
270 public int lastIndexOf(java.lang.String str) { in lastIndexOf() method in String
274 public int lastIndexOf(java.lang.String str, int fromIndex) { in lastIndexOf() method in String
278 private static int lastIndexOf( in lastIndexOf() method in String
283 static int lastIndexOf( in lastIndexOf() method in String
293 static int lastIndexOf( in lastIndexOf() method in String
/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java146 int b = cname.lastIndexOf('[') + 2; in checkPackageAccess()
151 int i = cname.lastIndexOf('.'); in checkPackageAccess()
255 int i = name.lastIndexOf('.'); in isNonPublicProxyClass()
/libcore/ojluni/src/main/java/java/lang/
DStringBuilder.java449 public int lastIndexOf(String str) { in lastIndexOf() method in StringBuilder
450 return super.lastIndexOf(str); in lastIndexOf()
454 public int lastIndexOf(String str, int fromIndex) { in lastIndexOf() method in StringBuilder
455 return super.lastIndexOf(str, fromIndex); in lastIndexOf()
DString.java2031 public int lastIndexOf(int ch) { in lastIndexOf() method in String
2032 return lastIndexOf(ch, length() - 1); in lastIndexOf()
2069 public int lastIndexOf(int ch, int fromIndex) { in lastIndexOf() method in String
2274 public int lastIndexOf(String str) { in lastIndexOf() method in String
2275 return lastIndexOf(str, length()); in lastIndexOf()
2295 public int lastIndexOf(String str, int fromIndex) { in lastIndexOf() method in String
2300 return lastIndexOf(this, str, fromIndex); in lastIndexOf()
2313 private static int lastIndexOf(String source, String target, int fromIndex) { in lastIndexOf() method in String
2371 static int lastIndexOf(byte[] src, byte srcCoder, int srcCount, in lastIndexOf() method in String
2396 ? StringLatin1.lastIndexOf(src, srcCount, tgtStr, tgtCount, fromIndex) in lastIndexOf()
[all …]
DStringBuffer.java694 public int lastIndexOf(String str) { in lastIndexOf() method in StringBuffer
696 return lastIndexOf(str, count); in lastIndexOf()
703 public synchronized int lastIndexOf(String str, int fromIndex) { in lastIndexOf() method in StringBuffer
704 return super.lastIndexOf(str, fromIndex); in lastIndexOf()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractListTest.java330 assertEquals(-1, al.lastIndexOf(5)); in test_lastIndexOfLjava_lang_Object()
331 assertEquals(6, al.lastIndexOf(2)); in test_lastIndexOfLjava_lang_Object()
466 sub.lastIndexOf(10); in test_subListII2()
536 .lastIndexOf(Integer.valueOf(6))); in test_lastIndexOf_Ljava_lang_Object()
538 .lastIndexOf(Integer.valueOf(4))); in test_lastIndexOf_Ljava_lang_Object()
540 list.lastIndexOf(null)); in test_lastIndexOf_Ljava_lang_Object()
543 list.lastIndexOf(null)); in test_lastIndexOf_Ljava_lang_Object()
DVectorTest.java803 assertEquals("Failed to return correct index", 8, v.lastIndexOf("Test")); in test_lastIndexOfLjava_lang_Object()
807 + tVector.lastIndexOf(null), tVector.lastIndexOf(null) == 40); in test_lastIndexOfLjava_lang_Object()
817 0, tVector.lastIndexOf("Test 0", 0)); in test_lastIndexOfLjava_lang_ObjectI()
818 assertTrue("Found Object outside of index", (tVector.lastIndexOf( in test_lastIndexOfLjava_lang_ObjectI()
824 + tVector.lastIndexOf(null, 15), in test_lastIndexOfLjava_lang_ObjectI()
825 tVector.lastIndexOf(null, 15) == -1); in test_lastIndexOfLjava_lang_ObjectI()
827 + tVector.lastIndexOf(null, 45), in test_lastIndexOfLjava_lang_ObjectI()
828 tVector.lastIndexOf(null, 45) == 40); in test_lastIndexOfLjava_lang_ObjectI()
830 assertEquals(-1, tVector.lastIndexOf("Test 98", -1)); in test_lastIndexOfLjava_lang_ObjectI()
831 assertEquals(-1, tVector.lastIndexOf("Test 98", 0)); in test_lastIndexOfLjava_lang_ObjectI()
[all …]
/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java194 if (ind != authority.lastIndexOf('@')) { in parseURL()
288 int ind = path.lastIndexOf('/'); in parseURL()
338 } else if (i > 0 && (limit = path.lastIndexOf('/', i - 1)) >= 0 && in parseURL()
349 if ((limit = path.lastIndexOf('/', i - 1)) >= 0) { in parseURL()
604 int at = host.lastIndexOf('@'); in setURL()
617 int q = file.lastIndexOf('?'); in setURL()
/libcore/ojluni/src/test/java/util/SequencedCollection/
DSimpleList.java131 public int lastIndexOf(Object o) { in lastIndexOf() method in SimpleList
132 return list.lastIndexOf(o); in lastIndexOf()
/libcore/ojluni/src/test/java/util/Vector/
DLastIndexOf.java40 int i = v.lastIndexOf(null, 5); in main()
/libcore/ojluni/src/main/java/jdk/internal/reflect/
DReflection.java226 int lastDot1 = name1.lastIndexOf('.'); in isSameClassPackage()
227 int lastDot2 = name2.lastIndexOf('.'); in isSameClassPackage()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java293 int dot = name1.lastIndexOf('.'); in isSamePackage()
294 if (dot != name2.lastIndexOf('.')) in isSamePackage()
/libcore/ojluni/src/main/java/sun/reflect/
DReflection.java226 int lastDot1 = name1.lastIndexOf('.'); in isSameClassPackage()
227 int lastDot2 = name2.lastIndexOf('.'); in isSameClassPackage()

12345