Home
last modified time | relevance | path

Searched refs:srcBegin (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/test/java/lang/String/CompactString/
DGetChars.java75 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/
DStringLatin1.java84 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()
DString.java1036 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()
DAbstractStringBuilder.java467 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()
DStringUTF16.java273 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) {
DStringBuffer.java289 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/
DStringTest.java639 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/
DCompactStringBuilder.java372 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/
DCompactStringBuffer.java447 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/
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.java88 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
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