/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);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
dynamic_patricia_trie_writing_utils.cpp | 92 const int codePointCount, int *const codePointFieldPos) { 93 if (codePointCount <= 0) { 94 AKLOGI("code points cannot be written because codePointCount is invalid: %d", 95 codePointCount); 99 const bool hasMultipleCodePoints = codePointCount > 1; 100 return buffer->writeCodePointsAndAdvancePosition(codePoints, codePointCount,
|
dynamic_patricia_trie_writing_helper.h | 62 const int *const wordCodePoints, const int codePointCount, const int probability, 86 const int *const codePoints, const int codePointCount, const int probability, 104 const int parentPos, const int *const codePoints, const int codePointCount, 109 const int parentPos, const int *const codePoints, const int codePointCount, 120 const int *const codePoints, const int codePointCount);
|
dynamic_patricia_trie_writing_helper.cpp | 40 const int *const wordCodePoints, const int codePointCount, const int probability, 57 if (nextIndex >= codePointCount || !readingHelper->isMatchedCodePoint(j, 65 codePointCount - matchedCodePointCount); 69 if (codePointCount == readingHelper->getTotalCodePointCount()) { 78 codePointCount - readingHelper->getTotalCodePointCount()); 92 codePointCount - readingHelper->getPrevTotalCodePointCount(), 259 const int codePointCount, const int probability, const int childrenPos, 276 codePoints, codePointCount, writingPos)) { 313 bigramCount > 0 /* hasBigrams */, codePointCount > 1 /* hasMultipleChars */, 325 const int *const codePoints, const int codePointCount, const int probability [all...] |
dynamic_patricia_trie_writing_utils.h | 50 const int *const codePoints, const int codePointCount, int *const codePointFieldPos);
|
dynamic_patricia_trie_policy.cpp | 110 const int codePointCount = readingHelper.getTotalCodePointCount(); 111 for (int i = 0; i < codePointCount; ++i) { 112 outCodePoints[i] = reverseCodePoints[codePointCount - i - 1]; 114 return codePointCount;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
buffer_with_extendable_buffer.cpp | 49 const int codePointCount, const bool writesTerminator ,int *const pos) { 51 codePoints, codePointCount, writesTerminator); 60 ByteArrayUtils::writeCodePointsAndAdvancePosition(buffer, codePoints, codePointCount,
|
byte_array_utils.h | 184 const int *const codePoints, const int codePointCount, const bool writesTerminator, 186 for (int i = 0; i < codePointCount; ++i) { 205 const int codePointCount, const bool writesTerminator) { 207 for (int i = 0; i < codePointCount; ++i) {
|
buffer_with_extendable_buffer.h | 83 bool writeCodePointsAndAdvancePosition(const int *const codePoints, const int codePointCount,
|
/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/tests/src/com/android/inputmethod/latin/ |
WordComposerTests.java | 32 STR_WITHIN_BMP.codePointCount(0, STR_WITHIN_BMP.length())); 53 assertEquals(wc.size(), STR_WITH_SUPPLEMENTARY_CHAR.codePointCount(0,
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
bigram_dictionary.cpp | 122 const int codePointCount = mDictionaryStructurePolicy-> 125 if (codePointCount <= 0) { 135 addWordBigram(bigramBuffer, codePointCount, probability, outBigramProbability,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
MoreKeySpec.java | 80 if (StringUtils.codePointCount(label) == 1 && label.codePointAt(0) == mCode) {
|
KeySpecParser.java | 205 if (StringUtils.codePointCount(outputText) == 1) { 220 return (StringUtils.codePointCount(label) == 1) ? null : label; 235 if (StringUtils.codePointCount(outputText) == 1) { 242 if (StringUtils.codePointCount(label) == 1) { 489 return StringUtils.codePointCount(casedText) == 1
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsBinaryDictionary.java | 200 int len = StringUtils.codePointCount(name); 210 final int wordLen = StringUtils.codePointCount(word); 310 int len = StringUtils.codePointCount(name); 317 final int wordLen = StringUtils.codePointCount(word);
|
SuggestedWords.java | 221 mCodePointCount = StringUtils.codePointCount(mWord); 239 public int codePointCount() {
|
/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);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
StringUtils.java | 46 public static int codePointCount(final String text) { 48 return text.codePointCount(0, text.length()); 170 final int[] codePoints = new int[string.codePointCount(0, length)]; 371 final int N = codePointCount(s);
|
/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)];
|
/external/clang/lib/Format/ |
FormatToken.h | 80 CodePointCount(0), IsFirst(false), MustBreakBefore(false), 112 unsigned CodePointCount;
|
Format.cpp | 589 State.Column += WhitespaceLength + State.NextToken->CodePointCount; 632 if (State.Stack.back().ColonPos > Current.CodePointCount) { 633 State.Column = State.Stack.back().ColonPos - Current.CodePointCount; 636 State.Stack.back().ColonPos = State.Column + Current.CodePointCount; 679 State.Stack.back().LastSpace += Current.CodePointCount; 719 while (Tok && State.Stack.back().VariablePos >= Tok->CodePointCount) { 720 State.Stack.back().VariablePos -= Tok->CodePointCount; 738 State.Column + Spaces + Current.CodePointCount) 743 State.Column + Spaces + Current.CodePointCount; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
Key.java | 345 if (StringUtils.codePointCount(mLabel) == 1) { 361 if (StringUtils.codePointCount(outputText) == 1) { 490 if (StringUtils.codePointCount(mLabel) == 1 && mLabel.codePointAt(0) == mCode) { 602 return StringUtils.codePointCount(mLabel) == 1 ? params.mLetterSize : params.mLabelSize; 656 || StringUtils.codePointCount(getPreviewLabel()) == 1; [all...] |