/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsBinaryDictionary.java | 191 int len = StringUtils.codePointCount(name); 201 final int wordLen = StringUtils.codePointCount(word); 295 int len = StringUtils.codePointCount(name); 302 final int wordLen = StringUtils.codePointCount(word);
|
LastComposedWord.java | 88 return StringUtils.codePointCount(separatorString);
|
StringUtils.java | 33 public static int codePointCount(final String text) { 35 return text.codePointCount(0, text.length()); 125 final int[] codePoints = new int[string.codePointCount(0, length)]; 139 if (codePointCount(text) == 1) {
|
SuggestedWords.java | 154 mCodePointCount = StringUtils.codePointCount(mWord); 167 public int codePointCount() {
|
WordComposer.java | 112 mCodePointSize = mTypedWord.codePointCount(0, mTypedWord.length());
|
/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)];
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
MoreKeySpec.java | 80 if (StringUtils.codePointCount(label) == 1 && label.codePointAt(0) == mCode) {
|
KeySpecParser.java | 150 if (StringUtils.codePointCount(outputText) == 1) { 165 return (StringUtils.codePointCount(label) == 1) ? null : label; 180 if (StringUtils.codePointCount(outputText) == 1) { 187 if (StringUtils.codePointCount(label) == 1) { 435 return StringUtils.codePointCount(casedText) == 1
|
/cts/tests/tests/text/src/android/text/cts/ |
EmojiTest.java | 124 assertEquals(newStr.codePointCount(0, newStr.length()), origStr.length() + 1); 130 assertEquals(newStr.codePointCount(0, newStr.length()), origStr.length() + 1);
|
/libcore/luni/src/main/java/java/lang/ |
StringBuffer.java | 360 public synchronized int codePointCount(int beginIndex, int endIndex) { 361 return super.codePointCount(beginIndex, endIndex);
|
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);
|
String.java | [all...] |
Character.java | [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
Key.java | 328 if (StringUtils.codePointCount(mLabel) == 1) { 344 if (StringUtils.codePointCount(outputText) == 1) { 451 if (StringUtils.codePointCount(mLabel) == 1 && mLabel.codePointAt(0) == mCode) { 542 return StringUtils.codePointCount(mLabel) == 1 ? params.mLetterSize : params.mLabelSize; 581 || StringUtils.codePointCount(getPreviewLabel()) == 1; [all...] |
MoreKeysKeyboard.java | 335 if (label != null && StringUtils.codePointCount(label) > 1) {
|
/frameworks/base/core/java/android/view/ |
KeyCharacterMap.java | 509 combined = result.codePointCount(0, result.length()) == 1
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
FusionDictionary.java | 352 final int[] codePoints = new int[Character.codePointCount(characters, 0, length)]; [all...] |
BinaryDictIOUtils.java | 183 final int wordLen = word.codePointCount(0, word.length()); [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
com.ibm.icu_4.2.1.v20100412.jar | |
/prebuilts/sdk/10/ |
android.jar | |