Home
last modified time | relevance | path

Searched refs:codePoint (Results 1 – 20 of 20) sorted by relevance

/frameworks/minikin/libs/minikin/
DMinikinInternal.cpp26 inline static bool isBMPVariationSelector(uint32_t codePoint) { in isBMPVariationSelector() argument
27 return VS1 <= codePoint && codePoint <= VS16; in isBMPVariationSelector()
30 inline static bool isVariationSelectorSupplement(uint32_t codePoint) { in isVariationSelectorSupplement() argument
31 return VS17 <= codePoint && codePoint <= VS256; in isVariationSelectorSupplement()
34 uint16_t getVsIndex(uint32_t codePoint) { in getVsIndex() argument
35 if (isBMPVariationSelector(codePoint)) { in getVsIndex()
36 return codePoint - VS1; in getVsIndex()
37 } else if (isVariationSelectorSupplement(codePoint)) { in getVsIndex()
38 return codePoint - VS17 + 16; in getVsIndex()
44 bool isVariationSelector(uint32_t codePoint) { in isVariationSelector() argument
[all …]
DWordBreaker.cpp124 uint32_t codePoint; in isValidBreak() local
126 U16_PREV(buf, 0, prev_offset, codePoint); in isValidBreak()
128 if (Hyphenator::isLineBreakingHyphen(codePoint) || codePoint == CHAR_SOFT_HYPHEN) { in isValidBreak()
135 if (codePoint == 0x1039) { // MYANMAR SIGN VIRAMA in isValidBreak()
145 if (codePoint == CHAR_ZWJ && isEmoji(next_codepoint)) { in isValidBreak()
151 if (codePoint == 0xFE0F && prev_offset > 0) { in isValidBreak()
153 U16_PREV(buf, 0, prev_offset, codePoint); in isValidBreak()
155 if (isEmojiBase(codePoint)) { in isValidBreak()
DMinikinInternal.h52 uint16_t getVsIndex(uint32_t codePoint);
56 bool isVariationSelector(uint32_t codePoint);
DHyphenator.cpp190 static UScriptCode getScript(uint32_t codePoint) { in getScript() argument
192 const UScriptCode script = uscript_getScript(static_cast<UChar32>(codePoint), &errorCode); in getScript()
200 static HyphenationType hyphenationTypeBasedOnScript(uint32_t codePoint) { in hyphenationTypeBasedOnScript() argument
205 const UScriptCode script = getScript(codePoint); in hyphenationTypeBasedOnScript()
DCmapCoverage.cpp317 const uint32_t codePoint = readU24(nonDefaultUVSTable, recordOffset); in getVSCoverage() local
318 if (!addRange(rangesFromNonDefaultUVSTable, codePoint, codePoint + 1)) { in getVSCoverage()
/frameworks/base/core/java/android/text/
DTextDirectionHeuristics.java87 private static int isRtlCodePoint(int codePoint) { in isRtlCodePoint() argument
88 switch (Character.getDirectionality(codePoint)) { in isRtlCodePoint()
98 if ((0x0590 <= codePoint && codePoint <= 0x08FF) || in isRtlCodePoint()
99 (0xFB1D <= codePoint && codePoint <= 0xFDCF) || in isRtlCodePoint()
100 (0xFDF0 <= codePoint && codePoint <= 0xFDFF) || in isRtlCodePoint()
101 (0xFE70 <= codePoint && codePoint <= 0xFEFF) || in isRtlCodePoint()
102 (0x10800 <= codePoint && codePoint <= 0x10FFF) || in isRtlCodePoint()
103 (0x1E800 <= codePoint && codePoint <= 0x1EFFF)) { in isRtlCodePoint()
110 (0x2065 <= codePoint && codePoint <= 0x2069) || in isRtlCodePoint()
111 (0xFFF0 <= codePoint && codePoint <= 0xFFF8) || in isRtlCodePoint()
[all …]
DEmoji.java38 public static boolean isRegionalIndicatorSymbol(int codePoint) { in isRegionalIndicatorSymbol() argument
39 return 0x1F1E6 <= codePoint && codePoint <= 0x1F1FF; in isRegionalIndicatorSymbol()
45 public static boolean isEmojiModifier(int codePoint) { in isEmojiModifier() argument
46 return UCharacter.hasBinaryProperty(codePoint, UProperty.EMOJI_MODIFIER); in isEmojiModifier()
95 public static boolean isEmoji(int codePoint) { in isEmoji() argument
96 return isNewEmoji(codePoint) || UCharacter.hasBinaryProperty(codePoint, UProperty.EMOJI); in isEmoji()
100 public static boolean isKeycapBase(int codePoint) { in isKeycapBase() argument
101 return ('0' <= codePoint && codePoint <= '9') || codePoint == '#' || codePoint == '*'; in isKeycapBase()
109 public static boolean isTagSpecChar(int codePoint) { in isTagSpecChar() argument
110 return 0xE0020 <= codePoint && codePoint <= 0xE007E; in isTagSpecChar()
DBidiFormatter.java609 public static byte getDirectionality(int codePoint) { in getDirectionality() argument
610 if (Emoji.isNewEmoji(codePoint)) { in getDirectionality()
614 return Character.getDirectionality(codePoint); in getDirectionality()
846 int codePoint = Character.codePointAt(text, charIndex); in dirTypeForward() local
847 charIndex += Character.charCount(codePoint); in dirTypeForward()
848 return getDirectionality(codePoint); in dirTypeForward()
876 int codePoint = Character.codePointBefore(text, charIndex); in dirTypeBackward() local
877 charIndex -= Character.charCount(codePoint); in dirTypeBackward()
878 return getDirectionality(codePoint); in dirTypeBackward()
DTextUtils.java2175 private static boolean isNewline(int codePoint) { in isNewline() argument
2176 int type = Character.getType(codePoint); in isNewline()
2178 || codePoint == LINE_FEED_CODE_POINT; in isNewline()
2181 private static boolean isWhiteSpace(int codePoint) { in isWhiteSpace() argument
2182 return Character.isWhitespace(codePoint) || codePoint == NBSP_CODE_POINT; in isWhiteSpace()
2264 int codePoint = gettingCleaned.codePointAt(offset); in makeSafeForPresentation() local
2265 int type = Character.getType(codePoint); in makeSafeForPresentation()
2266 int codePointLen = Character.charCount(codePoint); in makeSafeForPresentation()
2267 boolean isNewline = isNewline(codePoint); in makeSafeForPresentation()
2276 } else if (trim && !isWhiteSpace(codePoint)) { in makeSafeForPresentation()
/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java161 final int codePoint = Character.codePointBefore(text, tmpOffset); in getOffsetForBackspaceKey() local
162 tmpOffset -= Character.charCount(codePoint); in getOffsetForBackspaceKey()
166 deleteCharCount = Character.charCount(codePoint); in getOffsetForBackspaceKey()
167 if (codePoint == LINE_FEED) { in getOffsetForBackspaceKey()
169 } else if (isVariationSelector(codePoint)) { in getOffsetForBackspaceKey()
171 } else if (Emoji.isRegionalIndicatorSymbol(codePoint)) { in getOffsetForBackspaceKey()
173 } else if (Emoji.isEmojiModifier(codePoint)) { in getOffsetForBackspaceKey()
175 } else if (codePoint == Emoji.COMBINING_ENCLOSING_KEYCAP) { in getOffsetForBackspaceKey()
177 } else if (Emoji.isEmoji(codePoint)) { in getOffsetForBackspaceKey()
179 } else if (codePoint == Emoji.CANCEL_TAG) { in getOffsetForBackspaceKey()
[all …]
DWordIterator.java320 final int codePoint = Character.codePointBefore(mCharSeq, offset); in isAfterPunctuation() local
321 return isPunctuation(codePoint); in isAfterPunctuation()
336 final int codePoint = Character.codePointAt(mCharSeq, offset); in isOnPunctuation() local
337 return isPunctuation(codePoint); in isOnPunctuation()
356 public static boolean isMidWordPunctuation(Locale locale, int codePoint) { in isMidWordPunctuation() argument
357 final int wb = UCharacter.getIntPropertyValue(codePoint, UProperty.WORD_BREAK); in isMidWordPunctuation()
384 final int codePoint = Character.codePointBefore(mCharSeq, offset); in isAfterLetterOrDigit() local
385 if (Character.isLetterOrDigit(codePoint)) return true; in isAfterLetterOrDigit()
392 final int codePoint = Character.codePointAt(mCharSeq, offset); in isOnLetterOrDigit() local
393 if (Character.isLetterOrDigit(codePoint)) return true; in isOnLetterOrDigit()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp45 for (uint32_t codePoint = 0; codePoint < MAX_UNICODE_CODE_POINT; ++codePoint) { in TEST_P() local
47 EXPECT_EQ(family->hasGlyph(codePoint, 0 /* variation selector */), in TEST_P()
48 static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, 0 /* variation selector */, in TEST_P()
57 for (uint32_t codePoint = 0; codePoint < MAX_UNICODE_CODE_POINT; ++codePoint) { in TEST_P() local
59 ASSERT_EQ(family->hasGlyph(codePoint, vs), in TEST_P()
60 static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, vs, &unusedGlyph))) in TEST_P()
62 << codePoint << " U+" << std::hex << vs in TEST_P()
63 << " Minikin: " << family->hasGlyph(codePoint, vs) << " HarfBuzz: " in TEST_P()
64 << static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, vs, &unusedGlyph)); in TEST_P()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java66 private boolean isGraphicAscii(int codePoint) { in isGraphicAscii() argument
67 return 0x20 < codePoint && codePoint < 0x7F; in isGraphicAscii()
91 final int codePoint = Integer.parseInt(token.substring(2), 16); in setByString() local
92 if (codePoint < 0 || 0x10FFFF < codePoint) { in setByString()
95 sb.append(Character.toChars(codePoint)); in setByString()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DUtf8.java734 int codePoint = toCodePoint(c, low); in encodeUtf8Default() local
735 out.put(outIx++, (byte) ((0xF << 4) | (codePoint >>> 18))); in encodeUtf8Default()
736 out.put(outIx++, (byte) (0x80 | (0x3F & (codePoint >>> 12)))); in encodeUtf8Default()
737 out.put(outIx++, (byte) (0x80 | (0x3F & (codePoint >>> 6)))); in encodeUtf8Default()
738 out.put(outIx, (byte) (0x80 | (0x3F & codePoint))); in encodeUtf8Default()
889 int codePoint = Character.toCodePoint(c, low); in encodeUtf8() local
890 out[j++] = (byte) ((0xF << 4) | (codePoint >>> 18)); in encodeUtf8()
891 out[j++] = (byte) (0x80 | (0x3F & (codePoint >>> 12))); in encodeUtf8()
892 out[j++] = (byte) (0x80 | (0x3F & (codePoint >>> 6))); in encodeUtf8()
893 out[j++] = (byte) (0x80 | (0x3F & codePoint)); in encodeUtf8()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java447 int codePoint = Character.toCodePoint(c, low); in encodeDirect() local
448 byteBuffer.put((byte) ((0xF << 4) | (codePoint >>> 18))); in encodeDirect()
449 byteBuffer.put((byte) (0x80 | (0x3F & (codePoint >>> 12)))); in encodeDirect()
450 byteBuffer.put((byte) (0x80 | (0x3F & (codePoint >>> 6)))); in encodeDirect()
451 byteBuffer.put((byte) (0x80 | (0x3F & codePoint))); in encodeDirect()
489 int codePoint = Character.toCodePoint(c, low); in encode() local
490 bytes[j++] = (byte) ((0xF << 4) | (codePoint >>> 18)); in encode()
491 bytes[j++] = (byte) (0x80 | (0x3F & (codePoint >>> 12))); in encode()
492 bytes[j++] = (byte) (0x80 | (0x3F & (codePoint >>> 6))); in encode()
493 bytes[j++] = (byte) (0x80 | (0x3F & codePoint)); in encode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java113 final int codePoint = label.codePointAt(offset); in onCreate() local
114 final int type = Character.getType(codePoint); in onCreate()
121 offset += Character.charCount(codePoint); in onCreate()
/frameworks/base/core/java/android/widget/
DSpellChecker.java766 final int codePoint = Character.codePointAt(editable, start); in haveWordBoundariesChanged() local
767 haveWordBoundariesChanged = Character.isLetterOrDigit(codePoint); in haveWordBoundariesChanged()
770 + (haveWordBoundariesChanged ? "Remove.<" : "Keep. <") + (char)(codePoint) in haveWordBoundariesChanged()
775 final int codePoint = Character.codePointBefore(editable, end); in haveWordBoundariesChanged() local
776 haveWordBoundariesChanged = Character.isLetterOrDigit(codePoint); in haveWordBoundariesChanged()
779 + (haveWordBoundariesChanged ? "Remove.<" : "Keep.<") + (char)(codePoint) in haveWordBoundariesChanged()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardUtils.java613 final int codePoint = value.codePointAt(i); in toStringAsParamValue() local
614 if (codePoint < asciiFirst || codePoint == '"') { in toStringAsParamValue()
618 builder.appendCodePoint(codePoint); in toStringAsParamValue()
620 if (codePoint == indicator) { in toStringAsParamValue()
/frameworks/base/core/java/android/view/
DAccessibilityIterators.java247 final int codePoint = mText.codePointAt(index); in isLetterOrDigit() local
248 return Character.isLetterOrDigit(codePoint); in isLetterOrDigit()
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp150 uint32_t codePoint; member
185 for (uint32_t codePoint : nonDefaultUVS) { in getNonDefaultUVSAsBinary() local
186 head = writeU24(codePoint, out.data(), head); in getNonDefaultUVSAsBinary()
207 const uint32_t vsCodePoint = record.codePoint; in buildCmapFormat14Table()