Home
last modified time | relevance | path

Searched refs:srcBegin (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
784 if (srcBegin < 0) { in getChars()
785 throw new StringIndexOutOfBoundsException(this, srcBegin); in getChars()
791 int n = srcEnd - srcBegin; in getChars()
792 if (srcEnd < srcBegin) { in getChars()
793 throw new StringIndexOutOfBoundsException(this, srcBegin, n); 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
870 if (srcBegin < 0) { in getBytes()
871 throw new StringIndexOutOfBoundsException(this, srcBegin); in getBytes()
[all …]
DAbstractStringBuilder.java380 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) in getChars() argument
382 if (srcBegin < 0) in getChars()
383 throw new StringIndexOutOfBoundsException(srcBegin); 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.java636 int srcBegin = Integer.MAX_VALUE; //2147483647 in testGetCharsOverflow() local
637 int srcEnd = srcBegin + 10; //-2147483639 in testGetCharsOverflow()
640 "yes".getChars(srcBegin, srcEnd, new char[256], 0); in testGetCharsOverflow()
692 private static void assertGetCharsThrowsAIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsAIOOBException() argument
695 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsAIOOBException()
701 private static void assertGetCharsThrowsSIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsSIOOBException() argument
704 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