Searched refs:dstBegin (Results 1 - 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/lang/ |
H A D | String.java | 699 * Copy characters from this string into dst starting at dstBegin. 702 void getChars(char dst[], int dstBegin) { argument 703 getCharsNoCheck(0, length(), dst, dstBegin); 714 * subarray of {@code dst} starting at index {@code dstBegin} 717 * dstBegin + (srcEnd-srcBegin) - 1 725 * @param dstBegin the start offset in the destination array. 732 * <li>{@code dstBegin} is negative 733 * <li>{@code dstBegin+(srcEnd-srcBegin)} is larger than 736 public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin) { argument 753 if (dstBegin < 824 getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) argument [all...] |
H A D | StringBuffer.java | 243 int dstBegin) 245 super.getChars(srcBegin, srcEnd, dst, dstBegin); 242 getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) argument
|
H A D | AbstractStringBuilder.java | 360 * at index {@code dstBegin} and ending at index: 368 * @param dstBegin offset into {@code dst}. 372 * <li>{@code dstBegin} is negative 377 * <li>{@code dstBegin+srcEnd-srcBegin} is greater than 381 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) argument 389 System.arraycopy(value, srcBegin, dst, dstBegin, srcEnd - srcBegin);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringTest.java | 460 // This is the explicit case from the bug: dstBegin == srcEnd - srcBegin 474 "abcd".getChars(0, 0, new char[0], 0); // dstBegin == 0 is ok if copying zero chars 475 "abcd".getChars(0, 0, new char[1], 1); // dstBegin == 1 is ok if copying zero chars 481 assertGetCharsThrowsAIOOBException("abcd", 3, 4, new char[1], 1); // Out of range dstBegin 483 assertGetCharsThrowsAIOOBException("abcd", 0, 4, new char[4], -1); // Negative dstBegin 485 // dstBegin + (srcEnd - srcBegin) -> integer overflow OR dstBegin >= dst.length 495 assertGetCharsThrowsAIOOBException("abcd", 0, 4, new char[4], 1); // Bad dstBegin 498 assertGetCharsThrowsAIOOBException("abcd", 0, 0, new char[4], -1); // Negative dstBegin 499 assertGetCharsThrowsAIOOBException("abcd", 0, 0, new char[0], 1); // Out of range dstBegin 504 assertGetCharsThrowsAIOOBException(String s, int srcBegin, int srcEnd, char[] dst, int dstBegin) argument 513 assertGetCharsThrowsSIOOBException(String s, int srcBegin, int srcEnd, char[] dst, int dstBegin) argument [all...] |
Completed in 361 milliseconds