Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/lang/
DString.java778 public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin) { in getChars() argument
787 if (srcEnd > length()) { in getChars()
788 throw new StringIndexOutOfBoundsException(this, srcEnd); in getChars()
791 int n = srcEnd - srcBegin; in getChars()
792 if (srcEnd < srcBegin) { in getChars()
811 getCharsNoCheck(srcBegin, srcEnd, dst, dstBegin); in getChars()
869 public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) { in getBytes() argument
873 if (srcEnd > length()) { in getBytes()
874 throw new StringIndexOutOfBoundsException(this, srcEnd); in getBytes()
876 if (srcBegin > srcEnd) { in getBytes()
[all …]
DAbstractStringBuilder.java380 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) in getChars() argument
384 if ((srcEnd < 0) || (srcEnd > count)) in getChars()
385 throw new StringIndexOutOfBoundsException(srcEnd); in getChars()
386 if (srcBegin > srcEnd) in getChars()
388 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.java638 int srcEnd = srcBegin + 10; //-2147483639 in testGetCharsOverflow() local
641 "yes".getChars(srcBegin, srcEnd, new char[256], 0); in testGetCharsOverflow()
693 private static void assertGetCharsThrowsAIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsAIOOBException() argument
696 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsAIOOBException()
702 private static void assertGetCharsThrowsSIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsSIOOBException() argument
705 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsSIOOBException()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java137 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { in getChars() argument
145 public void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) { in getBytes() argument
DAbstractStringBuilder.java93 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { in getChars() argument
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java86 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new RuntimeExcepti… in getChars() argument
88 @Deprecated public void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) { throw new Ru… in getBytes() argument
DStringBuffer.annotated.java61 public synchronized void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new R… in getChars() argument
DStringBuilder.annotated.java116 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new RuntimeExcepti… in getChars() argument