/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldCharacterTest.java | 25 assertEquals(1, Character.codePointCount("\uD800\uDC00".toCharArray(), in test_codePointCountLjava_lang_CharArrayII() 27 assertEquals(3, Character.codePointCount("a\uD800\uDC00b".toCharArray(), in test_codePointCountLjava_lang_CharArrayII() 29 assertEquals(4, Character.codePointCount("a\uD800\uDC00b\uD800".toCharArray(), in test_codePointCountLjava_lang_CharArrayII() 31 assertEquals(4, Character.codePointCount("ab\uD800\uDC00b\uD800".toCharArray(), in test_codePointCountLjava_lang_CharArrayII() 35 Character.codePointCount((char[]) null, 0, 1); in test_codePointCountLjava_lang_CharArrayII() 41 Character.codePointCount("abc".toCharArray(), -1, 1); in test_codePointCountLjava_lang_CharArrayII() 47 Character.codePointCount("abc".toCharArray(), 0, 4); in test_codePointCountLjava_lang_CharArrayII() 53 Character.codePointCount("abc".toCharArray(), 1, 3); in test_codePointCountLjava_lang_CharArrayII()
|
D | StringTest.java | 632 assertEquals(5, hello.codePointCount(0, 5)); in testCodePointCount() 633 assertEquals(7, hello.codePointCount(5, 12)); in testCodePointCount() 634 assertEquals(2, hello.codePointCount(10, 12)); in testCodePointCount()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringTest.java | 517 assertEquals(1, "\uD800\uDC00".codePointCount(0, 2)); in test_codePointCountII() 518 assertEquals(1, "\uD800\uDC01".codePointCount(0, 2)); in test_codePointCountII() 519 assertEquals(1, "\uD801\uDC01".codePointCount(0, 2)); in test_codePointCountII() 520 assertEquals(1, "\uDBFF\uDFFF".codePointCount(0, 2)); in test_codePointCountII() 522 assertEquals(3, "a\uD800\uDC00b".codePointCount(0, 4)); in test_codePointCountII() 523 assertEquals(4, "a\uD800\uDC00b\uD800".codePointCount(0, 5)); in test_codePointCountII() 525 assertEquals(1, newString(2, 2, "__\uD800\uDC00__".toCharArray()).codePointCount(0, 2)); in test_codePointCountII() 526 assertEquals(1, newString(2, 2, "__\uD800\uDC01__".toCharArray()).codePointCount(0, 2)); in test_codePointCountII() 527 assertEquals(1, newString(2, 2, "__\uD801\uDC01__".toCharArray()).codePointCount(0, 2)); in test_codePointCountII() 528 assertEquals(1, newString(2, 2, "__\uDBFF\uDFFF__".toCharArray()).codePointCount(0, 2)); in test_codePointCountII() [all …]
|
D | StringBufferTest.java | 422 assertEquals(1, new StringBuffer("\uD800\uDC00").codePointCount(0, 2)); in test_codePointCountII() 423 assertEquals(1, new StringBuffer("\uD800\uDC01").codePointCount(0, 2)); in test_codePointCountII() 424 assertEquals(1, new StringBuffer("\uD801\uDC01").codePointCount(0, 2)); in test_codePointCountII() 425 assertEquals(1, new StringBuffer("\uDBFF\uDFFF").codePointCount(0, 2)); in test_codePointCountII() 427 assertEquals(3, new StringBuffer("a\uD800\uDC00b").codePointCount(0, 4)); in test_codePointCountII() 428 assertEquals(4, new StringBuffer("a\uD800\uDC00b\uD800").codePointCount(0, 5)); in test_codePointCountII() 432 sb.codePointCount(-1, 2); in test_codePointCountII() 439 sb.codePointCount(0, 4); in test_codePointCountII() 446 sb.codePointCount(3, 2); in test_codePointCountII()
|
D | CharacterTest.java | 351 assertEquals(1, Character.codePointCount("\uD800\uDC00", 0, 2)); in test_codePointCountLjava_lang_CharSequenceII() 352 assertEquals(1, Character.codePointCount("\uD800\uDC01", 0, 2)); in test_codePointCountLjava_lang_CharSequenceII() 353 assertEquals(1, Character.codePointCount("\uD801\uDC01", 0, 2)); in test_codePointCountLjava_lang_CharSequenceII() 354 assertEquals(1, Character.codePointCount("\uDBFF\uDFFF", 0, 2)); in test_codePointCountLjava_lang_CharSequenceII() 356 assertEquals(3, Character.codePointCount("a\uD800\uDC00b", 0, 4)); in test_codePointCountLjava_lang_CharSequenceII() 357 assertEquals(4, Character.codePointCount("a\uD800\uDC00b\uD800", 0, 5)); in test_codePointCountLjava_lang_CharSequenceII() 360 Character.codePointCount((CharSequence) null, 0, 1); in test_codePointCountLjava_lang_CharSequenceII() 366 Character.codePointCount("abc", -1, 1); in test_codePointCountLjava_lang_CharSequenceII() 372 Character.codePointCount("abc", 0, 4); in test_codePointCountLjava_lang_CharSequenceII() 378 Character.codePointCount("abc", 2, 1); in test_codePointCountLjava_lang_CharSequenceII()
|
D | StringBuilderTest.java | 501 assertEquals(1, new StringBuilder("\uD800\uDC00").codePointCount(0, 2)); in test_codePointCountII() 502 assertEquals(1, new StringBuilder("\uD800\uDC01").codePointCount(0, 2)); in test_codePointCountII() 503 assertEquals(1, new StringBuilder("\uD801\uDC01").codePointCount(0, 2)); in test_codePointCountII() 504 assertEquals(1, new StringBuilder("\uDBFF\uDFFF").codePointCount(0, 2)); in test_codePointCountII() 506 assertEquals(3, new StringBuilder("a\uD800\uDC00b").codePointCount(0, 4)); in test_codePointCountII() 507 assertEquals(4, new StringBuilder("a\uD800\uDC00b\uD800").codePointCount(0, 5)); in test_codePointCountII() 512 sb.codePointCount(-1, 2); in test_codePointCountII() 519 sb.codePointCount(0, 4); in test_codePointCountII() 526 sb.codePointCount(3, 2); in test_codePointCountII()
|
/libcore/ojluni/src/test/java/lang/StringBuffer/ |
D | Supplementary.java | 235 int result = sb.codePointCount(j, length); in test5() 236 int expected = Character.codePointCount(sb, j, length); in test5() 241 int result = sb.codePointCount(0, j); in test5() 242 int expected = Character.codePointCount(sb, 0, j); in test5() 268 int nCodePoints = Character.codePointCount(sb, j, length); in test6() 286 int nCodePoints = Character.codePointCount(sb, 0, j); in test6() 355 int n = sb.codePointCount(beginIndex, endIndex); in testCodePointCount()
|
D | CompactStringBuffer.java | 225 assertEquals(new StringBuffer(ORIGIN).codePointCount(1, 3), 2); in testCompactStringForSupplementaryCodePoint() 272 assertEquals(new StringBuffer(ORIGIN).codePointCount(0, 3), 2); in testCompactStringForSupplementaryCodePointMixed1() 273 assertEquals(new StringBuffer(ORIGIN).codePointCount(0, 4), 3); in testCompactStringForSupplementaryCodePointMixed1() 303 assertEquals(new StringBuffer(ORIGIN).codePointCount(0, 3), 2); in testCompactStringForSupplementaryCodePointMixed2() 304 assertEquals(new StringBuffer(ORIGIN).codePointCount(0, 4), 3); in testCompactStringForSupplementaryCodePointMixed2() 332 assertEquals(new StringBuffer(ORIGIN).codePointCount(0, 3), 3); in testCompactStringForSupplementaryCodePointMixed3() 333 assertEquals(new StringBuffer(ORIGIN).codePointCount(1, 3), 2); in testCompactStringForSupplementaryCodePointMixed3() 358 assertEquals(new StringBuffer(ORIGIN).codePointCount(0, 3), 3); in testCompactStringForSupplementaryCodePointMixed4() 359 assertEquals(new StringBuffer(ORIGIN).codePointCount(1, 3), 2); in testCompactStringForSupplementaryCodePointMixed4()
|
/libcore/ojluni/src/test/java/lang/StringBuilder/ |
D | Supplementary.java | 237 int result = sb.codePointCount(j, length); in test5() 238 int expected = Character.codePointCount(sb, j, length); in test5() 243 int result = sb.codePointCount(0, j); in test5() 244 int expected = Character.codePointCount(sb, 0, j); in test5() 270 int nCodePoints = Character.codePointCount(sb, j, length); in test6() 288 int nCodePoints = Character.codePointCount(sb, 0, j); in test6() 370 int n = sb.codePointCount(beginIndex, endIndex); in testCodePointCount()
|
D | CompactStringBuilder.java | 226 assertEquals(new StringBuilder(ORIGIN).codePointCount(1, 3), 2); in testCompactStringForSupplementaryCodePoint() 273 assertEquals(new StringBuilder(ORIGIN).codePointCount(0, 3), 2); in testCompactStringForSupplementaryCodePointMixed1() 274 assertEquals(new StringBuilder(ORIGIN).codePointCount(0, 4), 3); in testCompactStringForSupplementaryCodePointMixed1() 305 assertEquals(new StringBuilder(ORIGIN).codePointCount(0, 3), 2); in testCompactStringForSupplementaryCodePointMixed2() 306 assertEquals(new StringBuilder(ORIGIN).codePointCount(0, 4), 3); in testCompactStringForSupplementaryCodePointMixed2() 334 assertEquals(new StringBuilder(ORIGIN).codePointCount(0, 3), 3); in testCompactStringForSupplementaryCodePointMixed3() 335 assertEquals(new StringBuilder(ORIGIN).codePointCount(1, 3), 2); in testCompactStringForSupplementaryCodePointMixed3() 360 assertEquals(new StringBuilder(ORIGIN).codePointCount(0, 3), 3); in testCompactStringForSupplementaryCodePointMixed4() 361 assertEquals(new StringBuilder(ORIGIN).codePointCount(1, 3), 2); in testCompactStringForSupplementaryCodePointMixed4()
|
/libcore/ojluni/src/test/java/lang/Character/ |
D | Supplementary.java | 348 int n = Character.codePointCount(str, i, length); in test04() 349 int m = codePointCount(str.substring(i, length)); in test04() 351 n = Character.codePointCount(a, i, length - i); in test04() 357 int n = Character.codePointCount(str, 0, 0); in test04() 359 n = Character.codePointCount(str, length, length); in test04() 361 n = Character.codePointCount(a, 0, 0); in test04() 363 n = Character.codePointCount(a, length, 0); in test04() 369 private static int codePointCount(CharSequence seq) { in codePointCount() method in Supplementary 399 int nCodePoints = Character.codePointCount(a, i, length - i); in test05() 824 Character.codePointCount((CharSequence) data, beginIndex, endIndex) in callCodePointCount() [all …]
|
/libcore/ojluni/src/test/java/lang/String/CompactString/ |
D | CodePointCount.java | 82 data.codePointCount(beginIndex, endIndex), in testCodePointCount()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StringBuffer.java | 272 public synchronized int codePointCount(int beginIndex, int endIndex) { in codePointCount() method in StringBuffer 273 return super.codePointCount(beginIndex, endIndex); in codePointCount()
|
D | StringUTF16.java | 146 private static int codePointCount(byte[] value, int beginIndex, int endIndex, boolean checked) { 163 public static int codePointCount(byte[] value, int beginIndex, int endIndex) { 164 return codePointCount(value, beginIndex, endIndex, false /* unchecked */); 1543 return codePointCount(val, beginIndex, endIndex, true /* checked */);
|
D | String.java | 953 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() method in String 965 return Character.codePointCount(this, beginIndex, endIndex); in codePointCount()
|
D | StringLatin1.java | 68 public static int codePointCount(byte[] value, int beginIndex, int endIndex) { in codePointCount() method in StringLatin1
|
D | AbstractStringBuilder.java | 402 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() method in AbstractStringBuilder
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | AbstractStringBuilder.java | 85 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() method in AbstractStringBuilder
|
D | String.java | 125 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() method in String
|
D | Character.java | 155 public static int codePointCount(java.lang.CharSequence seq, int beginIndex, int endIndex) { in codePointCount() method in Character 159 public static int codePointCount(char[] a, int offset, int count) { in codePointCount() method in Character
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | StringBuffer.annotated.java | 57 public synchronized int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("… in codePointCount() method in StringBuffer
|
D | StringBuilder.annotated.java | 138 public int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); } in codePointCount() method in StringBuilder
|
D | String.annotated.java | 84 public int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); } in codePointCount() method in String
|
D | Character.annotated.java | 89 public static int codePointCount(@libcore.util.NonNull java.lang.CharSequence seq, int beginIndex, … in codePointCount() method in Character 91 public static int codePointCount(char[] a, int offset, int count) { throw new RuntimeException("Stu… in codePointCount() method in Character
|
/libcore/ojluni/annotations/flagged_api/java/lang/ |
D | Character.annotated.java | 90 public static int codePointCount(java.lang.CharSequence seq, int beginIndex, int endIndex) { throw … in codePointCount() method in Character 92 public static int codePointCount(char[] a, int offset, int count) { throw new RuntimeException("Stu… in codePointCount() method in Character
|