/libcore/luni/src/test/java/libcore/java/lang/ |
OldCharacterTest.java | 25 assertEquals(1, Character.codePointCount("\uD800\uDC00".toCharArray(), 27 assertEquals(3, Character.codePointCount("a\uD800\uDC00b".toCharArray(), 29 assertEquals(4, Character.codePointCount("a\uD800\uDC00b\uD800".toCharArray(), 31 assertEquals(4, Character.codePointCount("ab\uD800\uDC00b\uD800".toCharArray(), 35 Character.codePointCount((char[]) null, 0, 1); 41 Character.codePointCount("abc".toCharArray(), -1, 1); 47 Character.codePointCount("abc".toCharArray(), 0, 4); 53 Character.codePointCount("abc".toCharArray(), 1, 3);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
StringTest.java | 542 * @tests java.lang.StringBuilder.codePointCount(int, int) 545 assertEquals(1, "\uD800\uDC00".codePointCount(0, 2)); 546 assertEquals(1, "\uD800\uDC01".codePointCount(0, 2)); 547 assertEquals(1, "\uD801\uDC01".codePointCount(0, 2)); 548 assertEquals(1, "\uDBFF\uDFFF".codePointCount(0, 2)); 550 assertEquals(3, "a\uD800\uDC00b".codePointCount(0, 4)); 551 assertEquals(4, "a\uD800\uDC00b\uD800".codePointCount(0, 5)); 553 assertEquals(1, newString(2,2,"__\uD800\uDC00__".toCharArray()).codePointCount(0, 2)); 554 assertEquals(1, newString(2,2,"__\uD800\uDC01__".toCharArray()).codePointCount(0, 2)); 555 assertEquals(1, newString(2,2,"__\uD801\uDC01__".toCharArray()).codePointCount(0, 2)) [all...] |
StringBufferTest.java | 418 * @tests java.lang.StringBuffer.codePointCount(int, int) 421 assertEquals(1, new StringBuffer("\uD800\uDC00").codePointCount(0, 2)); 422 assertEquals(1, new StringBuffer("\uD800\uDC01").codePointCount(0, 2)); 423 assertEquals(1, new StringBuffer("\uD801\uDC01").codePointCount(0, 2)); 424 assertEquals(1, new StringBuffer("\uDBFF\uDFFF").codePointCount(0, 2)); 426 assertEquals(3, new StringBuffer("a\uD800\uDC00b").codePointCount(0, 4)); 427 assertEquals(4, new StringBuffer("a\uD800\uDC00b\uD800").codePointCount(0, 5)); 431 sb.codePointCount(-1, 2); 438 sb.codePointCount(0, 4); 445 sb.codePointCount(3, 2) [all...] |
CharacterTest.java | 375 assertEquals(1, Character.codePointCount("\uD800\uDC00", 0, 2)); 376 assertEquals(1, Character.codePointCount("\uD800\uDC01", 0, 2)); 377 assertEquals(1, Character.codePointCount("\uD801\uDC01", 0, 2)); 378 assertEquals(1, Character.codePointCount("\uDBFF\uDFFF", 0, 2)); 380 assertEquals(3, Character.codePointCount("a\uD800\uDC00b", 0, 4)); 381 assertEquals(4, Character.codePointCount("a\uD800\uDC00b\uD800", 0, 5)); 384 Character.codePointCount((CharSequence) null, 0, 1); 390 Character.codePointCount("abc", -1, 1); 396 Character.codePointCount("abc", 0, 4); 402 Character.codePointCount("abc", 2, 1) [all...] |
StringBuilderTest.java | 498 * @tests java.lang.StringBuilder.codePointCount(int, int) 501 assertEquals(1, new StringBuilder("\uD800\uDC00").codePointCount(0, 2)); 502 assertEquals(1, new StringBuilder("\uD800\uDC01").codePointCount(0, 2)); 503 assertEquals(1, new StringBuilder("\uD801\uDC01").codePointCount(0, 2)); 504 assertEquals(1, new StringBuilder("\uDBFF\uDFFF").codePointCount(0, 2)); 506 assertEquals(3, new StringBuilder("a\uD800\uDC00b").codePointCount(0, 4)); 507 assertEquals(4, new StringBuilder("a\uD800\uDC00b\uD800").codePointCount(0, 5)); 512 sb.codePointCount(-1, 2); 519 sb.codePointCount(0, 4); 526 sb.codePointCount(3, 2) [all...] |
/frameworks/base/core/java/android/emoji/ |
EmojiFactory.java | 188 int[] codePoints = new int[vspString.codePointCount(0, len)]; 222 int[] codePoints = new int[puaString.codePointCount(0, len)];
|
/libcore/luni/src/main/java/java/lang/ |
AbstractStringBuilder.java | 869 * @see Character#codePointCount(char[], int, int) 872 public int codePointCount(int start, int end) { 876 return Character.codePointCount(value, start, end - start);
|
StringBuffer.java | 360 public synchronized int codePointCount(int beginIndex, int endIndex) { 361 return super.codePointCount(beginIndex, endIndex);
|
String.java | [all...] |
Character.java | [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerService.java | 311 final int len = text.codePointCount(0, text.length());
|
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/ |
FusionDictionary.java | 152 int[] array = new int[word.codePointCount(0, wordLength)];
|
/external/icu4c/test/cintltst/ |
nucnvtst.c | [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinIME.java | [all...] |