Searched refs:codePoints (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringBufferTest.java | 45 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()
|
D | StringBuilderTest.java | 155 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()
|
D | StringTest.java | 541 assertTrue(Arrays.equals(expected, s.codePoints().toArray())); in testCodePoints() 546 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints() 547 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints() 548 assertEquals((int) '0', surrogateCP.codePoints().toArray()[2]); in testCodePoints()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | CharBufferTest.java | 46 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/ |
D | StringFactory.java | 233 public static String newStringFromCodePoints(int[] codePoints, int offset, int count) { in newStringFromCodePoints() argument 234 if (codePoints == null) { in newStringFromCodePoints() 237 if ((offset | count) < 0 || count > codePoints.length - offset) { in newStringFromCodePoints() 238 throw new StringIndexOutOfBoundsException(codePoints.length, offset, count); in newStringFromCodePoints() 244 length += Character.toChars(codePoints[i], value, length); in newStringFromCodePoints()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | CharSequence.java | 177 public default IntStream codePoints() { in codePoints() method
|
D | String.java | 232 public String(int[] codePoints, int offset, int count) { in String() argument
|