/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 778 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 …]
|
D | AbstractStringBuilder.java | 380 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()
|
D | StringBuffer.java | 242 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/ |
D | StringTest.java | 636 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/ |
D | String.java | 137 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
|
D | AbstractStringBuilder.java | 93 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { in getChars() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | String.annotated.java | 86 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
|
D | StringBuffer.annotated.java | 61 public synchronized void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new R… in getChars() argument
|
D | StringBuilder.annotated.java | 116 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new RuntimeExcepti… in getChars() argument
|