Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/lang/
DString.java736 public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin) { in getChars() argument
744 if (srcEnd > length()) { in getChars()
745 throw new StringIndexOutOfBoundsException(this, srcEnd); in getChars()
748 int n = srcEnd - srcBegin; in getChars()
749 if (srcEnd < srcBegin) { in getChars()
768 getCharsNoCheck(srcBegin, srcEnd, dst, dstBegin); in getChars()
824 public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) { in getBytes() argument
828 if (srcEnd > length()) { in getBytes()
829 throw new StringIndexOutOfBoundsException(this, srcEnd); in getBytes()
831 if (srcBegin > srcEnd) { in getBytes()
[all …]
DAbstractStringBuilder.java381 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) in getChars() argument
385 if ((srcEnd < 0) || (srcEnd > count)) in getChars()
386 throw new StringIndexOutOfBoundsException(srcEnd); in getChars()
387 if (srcBegin > srcEnd) in getChars()
389 System.arraycopy(value, srcBegin, dst, dstBegin, srcEnd - srcBegin); in getChars()
DStringBuffer.java242 public synchronized void getChars(int srcBegin, int srcEnd, char[] dst, in getChars() argument
245 super.getChars(srcBegin, srcEnd, dst, dstBegin); in getChars()
/libcore/luni/src/test/java/libcore/java/lang/
DStringTest.java449 int srcEnd = srcBegin + 10; //-2147483639 in testGetCharsOverflow() local
452 "yes".getChars(srcBegin, srcEnd, new char[256], 0); in testGetCharsOverflow()
504 private static void assertGetCharsThrowsAIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsAIOOBException() argument
507 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsAIOOBException()
513 private static void assertGetCharsThrowsSIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsSIOOBException() argument
516 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsSIOOBException()