/libcore/ojluni/src/test/java/lang/String/CompactString/ |
D | GetChars.java | 75 public void testGetChars(String str, int srcBegin, int srcEnd, char[] dst, in testGetChars() argument 80 data.getChars(srcBegin, srcEnd, dst, dstBegin); in testGetChars() 85 escapeNonASCIIs(data), srcBegin, in testGetChars()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StringLatin1.java | 84 public static void getChars(byte[] value, int srcBegin, int srcEnd, char dst[], int dstBegin) { in getChars() argument 85 inflate(value, srcBegin, dst, dstBegin, srcEnd - srcBegin); in getChars() 88 public static void getBytes(byte[] value, int srcBegin, int srcEnd, byte dst[], int dstBegin) { in getBytes() argument 89 System.arraycopy(value, srcBegin, dst, dstBegin, srcEnd - srcBegin); in getBytes()
|
D | String.java | 1036 public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin) { in getChars() argument 1042 checkBoundsBeginEnd(srcBegin, srcEnd, length()); in getChars() 1062 int n = srcEnd - srcBegin; in getChars() 1069 getCharsNoCheck(srcBegin, srcEnd, dst, dstBegin); in getChars() 1127 public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) { in getBytes() argument 1128 checkBoundsBeginEnd(srcBegin, srcEnd, length()); in getBytes() 1130 checkBoundsOffCount(dstBegin, srcEnd - srcBegin, dst.length); in getBytes() 1141 int i = srcBegin; in getBytes()
|
D | AbstractStringBuilder.java | 467 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) in getChars() argument 469 checkRangeSIOOBE(srcBegin, srcEnd, count); // compatible to old version in getChars() 470 int n = srcEnd - srcBegin; in getChars() 473 StringLatin1.getChars(value, srcBegin, srcEnd, dst, dstBegin); in getChars() 475 StringUTF16.getChars(value, srcBegin, srcEnd, dst, dstBegin); in getChars()
|
D | StringUTF16.java | 273 public static void getChars(byte[] value, int srcBegin, int srcEnd, char dst[], int dstBegin) { 275 if (srcBegin < srcEnd) { 276 checkBoundsOffCount(srcBegin, srcEnd - srcBegin, value); 278 for (int i = srcBegin; i < srcEnd; i++) { 284 public static void getBytes(byte[] value, int srcBegin, int srcEnd, byte dst[], int dstBegin) { 285 srcBegin <<= 1; 287 for (int i = srcBegin + (1 >> LO_BYTE_SHIFT); i < srcEnd; i += 2) {
|
D | StringBuffer.java | 289 public synchronized void getChars(int srcBegin, int srcEnd, char[] dst, in getChars() argument 292 super.getChars(srcBegin, srcEnd, dst, dstBegin); in getChars()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringTest.java | 639 int srcBegin = Integer.MAX_VALUE; //2147483647 in testGetCharsOverflow() local 640 int srcEnd = srcBegin + 10; //-2147483639 in testGetCharsOverflow() 643 "yes".getChars(srcBegin, srcEnd, new char[256], 0); in testGetCharsOverflow() 695 private static void assertGetCharsThrowsAIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsAIOOBException() argument 698 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsAIOOBException() 704 private static void assertGetCharsThrowsSIOOBException(String s, int srcBegin, int srcEnd, in assertGetCharsThrowsSIOOBException() argument 707 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsSIOOBException()
|
/libcore/ojluni/src/test/java/lang/StringBuilder/ |
D | CompactStringBuilder.java | 372 private void checkGetChars(StringBuilder sb, int srcBegin, int srcEnd, in checkGetChars() argument 374 char[] dst = new char[srcEnd - srcBegin]; in checkGetChars() 375 sb.getChars(srcBegin, srcEnd, dst, 0); in checkGetChars()
|
/libcore/ojluni/src/test/java/lang/StringBuffer/ |
D | CompactStringBuffer.java | 447 private void checkGetChars(StringBuffer sb, int srcBegin, int srcEnd, in checkGetChars() argument 449 char[] dst = new char[srcEnd - srcBegin]; in checkGetChars() 450 sb.getChars(srcBegin, srcEnd, dst, 0); in checkGetChars()
|
/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 | 88 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new RuntimeExcepti… in getChars() argument 90 @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
|