Home
last modified time | relevance | path

Searched refs:codePointCount (Results 1 – 25 of 67) sorted by relevance

123

/external/cldr/tools/java/org/unicode/cldr/draft/
DShortestCanonicalForm.java38 if (nfc.codePointCount(0, nfc.length()) > 1) {
44 int nfdLen = nfd.codePointCount(0, nfd.length());
56 && trailingString.codePointCount(0, trailingString.length()) > 1) {
163 int bestLength = nfc.codePointCount(0, nfc.length()); in getShortest()
167 final int currentLength = s.codePointCount(0, s.length()); in getShortest()
211 final int nfcLength = nfc.codePointCount(0, nfc.length()); in process()
220 int len = trial.codePointCount(0, trial.length()); in process()
/external/icu/icu4c/source/i18n/
Dnumparse_affixes.cpp130 : codePointCount(0), codePointNumBatches(0) {} in CodePointMatcherWarehouse()
142 codePointCount(src.codePointCount), in CodePointMatcherWarehouse()
149 codePointCount = src.codePointCount; in operator =()
155 if (codePointCount < CODE_POINT_STACK_CAPACITY) { in nextCodePointMatcher()
156 return codePoints[codePointCount++] = {cp}; in nextCodePointMatcher()
159 if (codePointCount >= totalCapacity) { in nextCodePointMatcher()
168 …return codePointsOverflow[codePointNumBatches - 1][(codePointCount++ - CODE_POINT_STACK_CAPACITY) % in nextCodePointMatcher()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_stringbuilder.cpp143 assertEquals("Code point count of sb3", 1, sb3.codePointCount()); in testInsertAppendCodePoint()
250 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
258 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
268 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()
274 …ntlTest::assertEquals("Code point counts should be the same", a.countChar32(), b.codePointCount()); in assertEqualsImpl()
Dnumbertest_modifiers.cpp163 int32_t oldCount = sb.codePointCount(); in assertModifierEquals()
170 sb.codePointCount() - oldCount, mod.getCodePointCount()); in assertModifierEquals()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DConstantAffixModifier.java71 … return prefix.codePointCount(0, prefix.length()) + suffix.codePointCount(0, suffix.length()); in getCodePointCount()
DConstantMultiFieldModifier.java70 return Character.codePointCount(prefixChars, 0, prefixChars.length) in getCodePointCount()
71 + Character.codePointCount(suffixChars, 0, suffixChars.length); in getCodePointCount()
DSimpleModifier.java82 count += Character.codePointCount(compiledPattern, 2, 2 + prefixLength); in getCodePointCount()
86 … .codePointCount(compiledPattern, 1 + suffixOffset, 1 + suffixOffset + suffixLength); in getCodePointCount()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DConstantAffixModifier.java69 … return prefix.codePointCount(0, prefix.length()) + suffix.codePointCount(0, suffix.length()); in getCodePointCount()
DConstantMultiFieldModifier.java68 return Character.codePointCount(prefixChars, 0, prefixChars.length) in getCodePointCount()
69 + Character.codePointCount(suffixChars, 0, suffixChars.length); in getCodePointCount()
DSimpleModifier.java80 count += Character.codePointCount(compiledPattern, 2, 2 + prefixLength); in getCodePointCount()
84 … .codePointCount(compiledPattern, 1 + suffixOffset, 1 + suffixOffset + suffixLength); in getCodePointCount()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DUScriptRun.java354 int codePointCount = UTF16.getCharCount(ch); in next() local
358 textIndex += codePointCount; in next()
398 textIndex -= codePointCount; in next()
/external/icu/android_icu4j/src/main/java/android/icu/lang/
DUScriptRun.java356 int codePointCount = UTF16.getCharCount(ch); in next() local
360 textIndex += codePointCount; in next()
400 textIndex -= codePointCount; in next()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberStringBuilderTest.java234 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
241 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
250 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()
DModifierTest.java167 int oldCount = sb.codePointCount(); in assertModifierEquals()
173 sb.codePointCount() - oldCount, in assertModifierEquals()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberStringBuilderTest.java237 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
244 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
253 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()
DModifierTest.java170 int oldCount = sb.codePointCount(); in assertModifierEquals()
176 sb.codePointCount() - oldCount, in assertModifierEquals()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberingSystem.java94 … if ( desc_in.codePointCount(0, desc_in.length()) != radix_in || !isValidDigitString(desc_in)) { in getInstance()
274 int numCodepoints = str.codePointCount(0, str.length()); in isValidDigitString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberingSystem.java100 … if ( desc_in.codePointCount(0, desc_in.length()) != radix_in || !isValidDigitString(desc_in)) { in getInstance()
286 int numCodepoints = str.codePointCount(0, str.length()); in isValidDigitString()
/external/cldr/tools/java/org/unicode/cldr/util/
DVariantFolder.java36 int len1 = s1.codePointCount(0, s1.length());
37 int len2 = s2.codePointCount(0, s2.length());
DCharacterFallbacks.java37 if (value.codePointCount(0, value.length()) != 1) { in CharacterFallbacks()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterSurrogateTest.java244 int val1 = UCharacter.codePointCount(s.toCharArray(), start, in TestCodePointCount()
246 int val2 = UCharacter.codePointCount(s, start, limit); in TestCodePointCount()
260 UCharacter.codePointCount(s, start, limit); in TestCodePointCount()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterSurrogateTest.java241 int val1 = UCharacter.codePointCount(s.toCharArray(), start, in TestCodePointCount()
243 int val2 = UCharacter.codePointCount(s, start, limit); in TestCodePointCount()
257 UCharacter.codePointCount(s, start, limit); in TestCodePointCount()
/external/cldr/tools/java/org/unicode/cldr/tool/
DCompareHanTransliterators.java58 } else if (UCharacter.codePointCount(source, 0, source.length()) == 1) { in handlePathValue()
DCollectExemplars.java31 int len = s.codePointCount(0, s.length()); in main()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestScriptMetadata.java54 int codePointCount = UTF16.countCodePoint(info0.sampleChar); in TestScriptOfSample() local
55 assertEquals("Sample must be single character", 1, codePointCount); in TestScriptOfSample()

123