Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/lang/StringBuffer/
DIndexOf.java79 StringBuffer sourceBuffer; in simpleTest() local
85 sourceBuffer = new StringBuffer(sourceString); in simpleTest()
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()
108 StringBuffer sourceBuffer; in compareIndexOfLastIndexOf() local
114 sourceBuffer = new StringBuffer(sourceString); in compareIndexOfLastIndexOf()
119 sourceBuffer = sourceBuffer.replace(index1, index1, targetString); in compareIndexOfLastIndexOf()
124 while((index2 = sourceBuffer.indexOf(targetString,index2+1)) != -1) in compareIndexOfLastIndexOf()
[all …]