Home
last modified time | relevance | path

Searched refs:index1 (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/lang/StringBuffer/
DIndexOf.java89 int index1 = generator.nextInt(90) + 5; in simpleTest() local
90 sourceBuffer = sourceBuffer.replace(index1, index1, targetString); in simpleTest()
92 if (sourceBuffer.indexOf(targetString) != index1) in simpleTest()
94 if (sourceBuffer.indexOf(targetString, 5) != index1) in simpleTest()
96 if (sourceBuffer.indexOf(targetString, 99) == index1) in simpleTest()
118 int index1 = generator.nextInt(100); in compareIndexOfLastIndexOf() local
119 sourceBuffer = sourceBuffer.replace(index1, index1, targetString); in compareIndexOfLastIndexOf()
DAppendCharSequence.java95 int index1 = generator.nextInt(100); in bash() local
96 while (index1 > s5.length()) { in bash()
97 index1 = generator.nextInt(100); in bash()
105 sb5.insert(index1, (CharSequence)sb4, index2, index2 + len); in bash()
106 s5 = new StringBuffer(s5).insert(index1, s4.toCharArray(), in bash()
204 int index1 = 0; in checkOffsets() local
205 while (index1 <= sb.length()) { in checkOffsets()
206 index1 = generator.nextInt(100) - 50; in checkOffsets()
207 if (index1 < 0) in checkOffsets()
221 sb.insert(index1, cs, index2, index2 + len); in checkOffsets()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java491 int index1 = val.lastIndexOf('-'); in BigInteger() local
493 if (index1 >= 0) { in BigInteger()
494 if (index1 != 0 || index2 >= 0) { in BigInteger()
/libcore/ojluni/src/test/java/util/regex/
DRegExTest.java909 private static void expectRegionFail(Matcher matcher, int index1, in expectRegionFail() argument
914 matcher.region(index1, index2); in expectRegionFail()