Home
last modified time | relevance | path

Searched refs:subSequence (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
DOldStringBufferTest.java294 testBuffer.subSequence(4, 7)); in test_subSequence()
296 testBuffer.subSequence(10, 21)); in test_subSequence()
298 testBuffer.subSequence(0, testBuffer.length())); in test_subSequence()
301 testBuffer.subSequence(0, Integer.MAX_VALUE); in test_subSequence()
308 testBuffer.subSequence(Integer.MAX_VALUE, testBuffer.length()); in test_subSequence()
315 testBuffer.subSequence(-1, testBuffer.length()); in test_subSequence()
DOldStringTest.java274 "".replace((CharSequence) null, "123".subSequence(0, 1)); in test_replaceLjava_langCharSequenceLjava_langCharSequence()
281 "".replace("123".subSequence(0, 1), (CharSequence) null); in test_replaceLjava_langCharSequenceLjava_langCharSequence()
336 assertTrue("Incorrect substring returned", hw1.subSequence(0, 5).equals( in test_subSequence()
337 "Hello") && (hw1.subSequence(5, 10).equals("World"))); in test_subSequence()
338 assertTrue("not identical", hw1.subSequence(0, hw1.length()) == hw1); in test_subSequence()
341 hw1.subSequence(0, Integer.MAX_VALUE); in test_subSequence()
348 hw1.subSequence(Integer.MAX_VALUE, hw1.length()); in test_subSequence()
355 hw1.subSequence(-1, hw1.length()); in test_subSequence()
/libcore/ojluni/src/test/java/nio/Buffer/
DOrderChar.java42 ck(buf.subSequence(buf.position(), buf.remaining()).order(), expected); in ckCharBuffer()
43 ck(buf.subSequence(buf.position(), buf.position()).order(), expected); in ckCharBuffer()
69 buf = CharBuffer.wrap(array).subSequence(0, LENGTH); in ckCharBuffer()
DOrder-X.java.template42 ck(buf.subSequence(buf.position(), buf.remaining()).order(), expected);
43 ck(buf.subSequence(buf.position(), buf.position()).order(), expected);
69 buf = $Type$Buffer.wrap(array).subSequence(0, LENGTH);
DBasicChar.java650 CharBuffer c = b.subSequence(1, 4); in test()
654 ck(c, b.subSequence(1, 4).toString().equals("def")); in test()
659 ck(b, b.subSequence(1, 3).toString().equals("fg")); in test()
1084 ck(b, b.subSequence(0,3).toString().equals("ghi")); in testStr()
1101 catchIndexOutOfBounds(b, () -> b.subSequence(-1, b.remaining())); in testStr()
1102 catchIndexOutOfBounds(b, () -> b.subSequence(b.remaining() + 1, b.remaining())); in testStr()
1106 catchIndexOutOfBounds(b, () -> b.subSequence(2, 1)); in testStr()
1107 catchIndexOutOfBounds(b, () -> b.subSequence(0, b.remaining() + 1)); in testStr()
DStringCharBufferSliceTest.java146 CharSequence subSeq = s.subSequence(1, 3); in testSlice()
/libcore/ojluni/src/main/java/sun/misc/
DVersion.java282 cs = cs.subSequence(5, cs.length()); in initVersions()
297 String uu = cs.subSequence(1, nextChar).toString(); in initVersions()
310 cs = cs.subSequence(nextChar, cs.length()); in initVersions()
316 cs = cs.subSequence(1, cs.length()); in initVersions()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1144 String match = input.subSequence(index, m.start()).toString(); in split()
1148 String match = input.subSequence(index, in split()
1161 matchList.add(input.subSequence(index, input.length()).toString()); in split()
5760 nextElement = input.subSequence(current, matcher.start()).toString(); in splitAsStream()
5771 nextElement = input.subSequence(current, input.length()).toString(); in splitAsStream()
/libcore/ojluni/src/test/java/lang/CharSequence/
DEmptiness.java49 @Override public CharSequence subSequence(int start, int end) { in isEmpty()
77 @Override public CharSequence subSequence(int start, int end) { in isNotEmpty()
/libcore/ojluni/src/main/java/java/nio/
DStringCharBuffer.java123 return str.subSequence(start + offset, end + offset).toString(); in toString()
126 public final CharBuffer subSequence(int start, int end) { in subSequence() method in StringCharBuffer
DCharBuffer.java2072 public abstract CharBuffer subSequence(int start, int end); in subSequence() method in CharBuffer
2149 return put(cs.subSequence(start, end).toString()); in append()
/libcore/ojluni/src/main/java/java/lang/
DNumberFormatException.java83 + s.subSequence(beginIndex, endIndex) + "\""); in forCharSequence()
DCharSequence.java122 CharSequence subSequence(int start, int end); in subSequence() method
DLong.java1044 "on unsigned string %s.", s.subSequence(start, start + len))); in parseUnsignedLong()
1056 s.subSequence(start, start + len)); in parseUnsignedLong()
1113 "range of unsigned long.", s.subSequence(start, start + len))); in parseUnsignedLong()
/libcore/ojluni/annotations/flagged_api/java/lang/
DCharSequence.annotated.java39 public java.lang.CharSequence subSequence(int start, int end); in subSequence() method
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DCharSequence.annotated.java38 @libcore.util.NonNull public java.lang.CharSequence subSequence(int start, int end); in subSequence() method
/libcore/ojluni/src/main/java/java/io/
DStringWriter.java190 return append(csq.subSequence(start, end)); in append()
DOutputStreamWriter.java229 return append(csq.subSequence(start, end)); in append()
DCharArrayWriter.java216 return append(csq.subSequence(start, end)); in append()
DWriter.java366 return append(csq.subSequence(start, end)); in append()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DCharBufferTest.java683 buf.subSequence(-1, buf.length()); in testSubSequence()
689 buf.subSequence(buf.length() + 1, buf.length() + 1); in testSubSequence()
694 assertEquals(buf.subSequence(buf.length(), buf.length()).length(), 0); in testSubSequence()
696 buf.subSequence(1, 0); in testSubSequence()
702 buf.subSequence(1, buf.length() + 1); in testSubSequence()
708 assertEquals(buf.subSequence(0, buf.length()).toString(), buf in testSubSequence()
712 assertEquals(buf.subSequence(1, buf.length() - 1).toString(), buf in testSubSequence()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DReaderTest.java65 .subSequence(CHARBUFFER_SIZE - CHARBUFFER_REMAINING, in test_Reader_CharBufferChar()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DCharBuffer.java169 public abstract java.nio.CharBuffer subSequence(int start, int end); in subSequence() method in CharBuffer
/libcore/ojluni/annotations/flagged_api/java/nio/
DCharBuffer.annotated.java135 public abstract java.nio.CharBuffer subSequence(int start, int end); in subSequence() method in CharBuffer
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java181 public java.lang.CharSequence subSequence(int start, int end) { in subSequence() method in AbstractStringBuilder

12