Home
last modified time | relevance | path

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

1234

/external/skia/src/utils/
DSkShaperJSONWriter.cpp105 [this](size_t codePointCount, SkSpan<const char> utf1to1, in commitRunBuffer()
107 this->displayMToN(codePointCount, utf1to1, glyph1to1); in commitRunBuffer()
199 size_t codePointCount = SkTo<size_t>(possibleCount); in VisualizeClusters() local
200 if (codePointCount == 1 && glyphEndIndex - glyphStartIndex == 1) { in VisualizeClusters()
212 processMToN(codePointCount, utf8Span, glyphSpan); in VisualizeClusters()
221 void SkShaperJSONWriter::displayMToN(size_t codePointCount, in displayMToN() argument
224 std::string nString = std::to_string(codePointCount); in displayMToN()
DSkShaperJSONWriter.h56 void displayMToN(size_t codePointCount,
/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) {
166 int bestLength = nfc.codePointCount(0, nfc.length()); in getShortest()
170 final int currentLength = s.codePointCount(0, s.length()); in getShortest()
214 final int nfcLength = nfc.codePointCount(0, nfc.length()); in process()
223 int len = trial.codePointCount(0, trial.length()); in process()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DConstantAffixModifier.java71 … return prefix.codePointCount(0, prefix.length()) + suffix.codePointCount(0, suffix.length()); in getCodePointCount()
DConstantMultiFieldModifier.java69 return Character.codePointCount(prefixChars, 0, prefixChars.length) in getCodePointCount()
70 + Character.codePointCount(suffixChars, 0, suffixChars.length); in getCodePointCount()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DConstantAffixModifier.java73 … return prefix.codePointCount(0, prefix.length()) + suffix.codePointCount(0, suffix.length()); in getCodePointCount()
DConstantMultiFieldModifier.java71 return Character.codePointCount(prefixChars, 0, prefixChars.length) in getCodePointCount()
72 + Character.codePointCount(suffixChars, 0, suffixChars.length); in getCodePointCount()
/external/icu/icu4c/source/test/intltest/
Dformatted_string_builder_test.cpp163 assertEquals("Code point count of sb3", 1, sb3.codePointCount()); in testInsertAppendCodePoint()
290 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
298 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
308 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()
314 …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/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/okio/samples/src/jvmMain/kotlin/okio/samples/
DExploreCharsets.kt26 println("String.codePointCount: " + s.codePointCount(0, s.length)) in dumpStringData()
/external/skia/modules/skplaintexteditor/src/
Dshape.cpp236 int codePointCount = SkUTF::CountUTF8(utf8Text + textBegin, textCount); in set_character_bounds() local
237 if (codePointCount == 1) { // single codepoint, fast path. in set_character_bounds()
242 float width = clusterBox.width() / codePointCount; in set_character_bounds()
/external/okio/samples/src/jvmMain/java/okio/samples/
DExploreCharsets.java31 System.out.println("String.codePointCount: " + s.codePointCount(0, s.length())); in dumpStringData()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DModifierTest.java170 int oldCount = sb.codePointCount(); in assertModifierEquals()
176 sb.codePointCount() - oldCount, in assertModifierEquals()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DModifierTest.java167 int oldCount = sb.codePointCount(); in assertModifierEquals()
173 sb.codePointCount() - oldCount, in assertModifierEquals()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DFormattedStringBuilderTest.java245 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
252 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
261 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DFormattedStringBuilderTest.java248 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
255 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
264 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()
/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()
289 int numCodepoints = str.codePointCount(0, str.length()); in isValidDigitString()
/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()
277 int numCodepoints = str.codePointCount(0, str.length()); in isValidDigitString()
/external/cldr/tools/java/org/unicode/cldr/util/
DCharacterFallbacks.java36 if (value.codePointCount(0, value.length()) != 1) { in CharacterFallbacks()
DVariantFolder.java37 int len1 = s1.codePointCount(0, s1.length());
38 int len2 = s2.codePointCount(0, s2.length());
/external/okio/okio/src/commonMain/kotlin/okio/internal/
DByteString.kt327 private fun codePointIndexToCharIndex(s: ByteArray, codePointCount: Int): Int { in codePointIndexToCharIndex()
331 if (j++ == codePointCount) { in codePointIndexToCharIndex()
/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()

1234