Home
last modified time | relevance | path

Searched refs:codePoints (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DStringBufferTest.java45 assertTrue(Arrays.equals(expected, s.codePoints().toArray())); in testCodePoints()
50 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
51 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
52 assertEquals((int) '0', surrogateCP.codePoints().toArray()[2]); in testCodePoints()
DStringBuilderTest.java155 assertTrue(Arrays.equals(expected, s.codePoints().toArray())); in testCodePoints()
160 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
161 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
162 assertEquals((int) '0', surrogateCP.codePoints().toArray()[2]); in testCodePoints()
DStringTest.java730 assertTrue(Arrays.equals(expected, s.codePoints().toArray())); in testCodePoints()
735 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
736 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
737 assertEquals((int) '0', surrogateCP.codePoints().toArray()[2]); in testCodePoints()
/libcore/luni/src/test/java/libcore/java/nio/
DCharBufferTest.java46 assertTrue(Arrays.equals(expected, cb.codePoints().limit(s.length()).toArray())); in testCodePoints()
53 assertEquals(Character.toCodePoint(high, low), cb.codePoints().toArray()[0]); in testCodePoints()
54 assertEquals((int) low, cb.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
55 assertEquals((int) '0', cb.codePoints().toArray()[2]); in testCodePoints()
/libcore/libart/src/main/java/java/lang/
DStringFactory.java277 public static String newStringFromCodePoints(int[] codePoints, int offset, int count) { in newStringFromCodePoints() argument
278 if (codePoints == null) { in newStringFromCodePoints()
281 if ((offset | count) < 0 || count > codePoints.length - offset) { in newStringFromCodePoints()
282 throw new StringIndexOutOfBoundsException(codePoints.length, offset, count); in newStringFromCodePoints()
288 length += Character.toChars(codePoints[i], value, length); in newStringFromCodePoints()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DCharSequence.annotated.java44 @libcore.util.NonNull public default java.util.stream.IntStream codePoints() { throw new RuntimeExc… in codePoints() method
DString.annotated.java50 public String(int[] codePoints, int offset, int count) { throw new RuntimeException("Stub!"); } in String() argument
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java177 public default IntStream codePoints() { in codePoints() method
DString.java246 public String(int[] codePoints, int offset, int count) { in String() argument
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java53 public String(int[] codePoints, int offset, int count) { in String() argument
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java995 int[] codePoints = new int[sb.codePointCount(0, sb.length())]; in testStringConstructors() local
997 codePoints[i] = sb.codePointAt(i); in testStringConstructors()
1001 s = (String) mh.invokeExact(codePoints, 0, codePoints.length); in testStringConstructors()