/frameworks/base/tools/aapt2/text/ |
D | Unicode.cpp | 45 bool CompareCharacterProperties(const CharacterProperties& a, char32_t codepoint) { in CompareCharacterProperties() argument 46 return a.last_char < codepoint; in CompareCharacterProperties() 49 uint32_t FindCharacterProperties(char32_t codepoint) { in FindCharacterProperties() argument 51 const auto iter = std::lower_bound(sCharacterProperties.begin(), iter_end, codepoint, in FindCharacterProperties() 53 if (iter != iter_end && codepoint >= iter->first_char) { in FindCharacterProperties() 61 bool IsXidStart(char32_t codepoint) { in IsXidStart() argument 62 return FindCharacterProperties(codepoint) & CharacterProperties::kXidStart; in IsXidStart() 65 bool IsXidContinue(char32_t codepoint) { in IsXidContinue() argument 66 return FindCharacterProperties(codepoint) & CharacterProperties::kXidContinue; in IsXidContinue() 72 bool IsWhitespace(char32_t codepoint) { in IsWhitespace() argument [all …]
|
D | Unicode.h | 32 bool IsXidStart(char32_t codepoint); 41 bool IsXidContinue(char32_t codepoint); 45 bool IsWhitespace(char32_t codepoint);
|
/frameworks/minikin/tests/util/ |
D | UnicodeUtils.cpp | 56 unsigned long int codepoint = strtoul(src + input_ix, &endptr, 16); in ParseUnicode() local 62 LOG_ALWAYS_FATAL_IF(codepoint > 0x10FFFFu); in ParseUnicode() 64 if (U16_LENGTH(codepoint) == 1) { in ParseUnicode() 66 buf[output_ix++] = codepoint; in ParseUnicode() 70 buf[output_ix++] = U16_LEAD(codepoint); in ParseUnicode() 71 buf[output_ix++] = U16_TRAIL(codepoint); in ParseUnicode()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 820 static bool AppendCodepointToUtf8String(char32_t codepoint, std::string* output) { in AppendCodepointToUtf8String() argument 821 ssize_t len = utf32_to_utf8_length(&codepoint, 1); in AppendCodepointToUtf8String() 832 utf32_to_utf8(&codepoint, 1, dst, len + 1); in AppendCodepointToUtf8String() 841 char32_t codepoint = iter->Next(); in AppendUnicodeEscapeSequence() local 843 if (codepoint >= U'0' && codepoint <= U'9') { in AppendUnicodeEscapeSequence() 844 a = codepoint - U'0'; in AppendUnicodeEscapeSequence() 845 } else if (codepoint >= U'a' && codepoint <= U'f') { in AppendUnicodeEscapeSequence() 846 a = codepoint - U'a' + 10; in AppendUnicodeEscapeSequence() 847 } else if (codepoint >= U'A' && codepoint <= U'F') { in AppendUnicodeEscapeSequence() 848 a = codepoint - U'A' + 10; in AppendUnicodeEscapeSequence() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionTest.cpp | 44 void expectVSGlyphs(const FontCollection* fc, uint32_t codepoint, const std::set<uint32_t>& vsSet) { in expectVSGlyphs() argument 51 EXPECT_FALSE(fc->hasVariationSelector(codepoint, vs)) in expectVSGlyphs() 52 << "Glyph for U+" << std::hex << codepoint << " U+" << vs; in expectVSGlyphs() 54 EXPECT_TRUE(fc->hasVariationSelector(codepoint, vs)) in expectVSGlyphs() 55 << "Glyph for U+" << std::hex << codepoint << " U+" << vs; in expectVSGlyphs()
|
D | FontFamilyTest.cpp | 564 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument 571 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs() 572 << "Glyph for U+" << std::hex << codepoint << " U+" << i; in expectVSGlyphs() 574 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs() 575 << "Glyph for U+" << std::hex << codepoint << " U+" << i; in expectVSGlyphs()
|
D | WordBreakerTests.cpp | 31 #define UTF16(codepoint) U16_LEAD(codepoint), U16_TRAIL(codepoint) argument
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 368 int32_t codepoint = utf32_from_utf8_at(utf8.data(), size, i, nullptr); in Utf8ToModifiedUtf8() local 371 int32_t high = ((codepoint - 0x10000) / 0x400) + 0xD800; in Utf8ToModifiedUtf8() 372 int32_t low = ((codepoint - 0x10000) % 0x400) + 0xDC00; in Utf8ToModifiedUtf8() 416 const char32_t codepoint = (char32_t) (((high_surrogate - 0xD800) * 0x400) in ModifiedUtf8ToUtf8() local 420 const size_t utf8_length = (size_t) utf32_to_utf8_length(&codepoint, 1); in ModifiedUtf8ToUtf8() 428 utf32_to_utf8((char32_t*) &codepoint, 1, start, utf8_length + 1); in ModifiedUtf8ToUtf8()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardUtils.java | 511 int codepoint = str.codePointAt(i); in containsOnlyAlphaDigitHyphen() local 512 if (!((lowerAlphabetFirst <= codepoint && codepoint < lowerAlphabetAfterLast) || in containsOnlyAlphaDigitHyphen() 513 (upperAlphabetFirst <= codepoint && codepoint < upperAlphabetAfterLast) || in containsOnlyAlphaDigitHyphen() 514 (digitFirst <= codepoint && codepoint < digitAfterLast) || in containsOnlyAlphaDigitHyphen() 515 (codepoint == hyphen))) { in containsOnlyAlphaDigitHyphen()
|
/frameworks/base/tools/aapt2/java/ |
D | AnnotationProcessor.cpp | 36 const char32_t codepoint = iter.Next(); in ExtractFirstSentence() local 37 if (codepoint == U'.') { in ExtractFirstSentence()
|
/frameworks/minikin/libs/minikin/ |
D | Hyphenator.cpp | 45 static uint32_t codepoint(uint32_t entry) { return entry >> 11; } in codepoint() function 219 static inline int32_t getJoiningType(UChar32 codepoint) { in getJoiningType() argument 220 return u_getIntPropertyValue(codepoint, UCHAR_JOINING_TYPE); in getJoiningType() 331 if (AlphabetTable1::codepoint(entry) != c) { in alphabetLookup()
|
D | FontFamily.cpp | 185 bool FontFamily::hasGlyph(uint32_t codepoint, uint32_t variationSelector) const { in hasGlyph() argument 187 return mCoverage.get(codepoint); in hasGlyph() 207 return bitset->get(codepoint); in hasGlyph()
|
D | FontCollection.cpp | 93 uint32_t composedGlyphId = info[0].codepoint; in getGlyphScore() 111 uint32_t baseGlyphId = info[0].codepoint; in getGlyphScore()
|
D | LayoutCore.cpp | 468 hb_codepoint_t glyph_ix = info[i].codepoint; in LayoutPiece()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 108 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector() argument 110 return resolvedFace->fFontCollection->hasVariationSelector(codepoint, vs); in hasVariationSelector()
|
D | MinikinUtils.h | 63 static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 115 for (int codepoint : codepoints) { in codePointsToString() 116 sb.append(Character.toChars(codepoint)); in codePointsToString()
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 82 bool hasGlyph(uint32_t codepoint, uint32_t variationSelector) const;
|
/frameworks/base/core/java/android/text/method/ |
D | BaseKeyListener.java | 87 private static boolean isVariationSelector(int codepoint) { in isVariationSelector() argument 88 return UCharacter.hasBinaryProperty(codepoint, UProperty.VARIATION_SELECTOR); in isVariationSelector()
|
/frameworks/minikin/doc/ |
D | hyb_file_format.md | 88 Each element in the data table is `(codepoint << 11) | value`. Note that this is 92 The entries are sorted by codepoint, to facilitate binary search. Another reasonable
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 357 private static boolean isSeparator(int codepoint) { in isSeparator() argument 358 final int type = Character.getType(codepoint); in isSeparator()
|
/frameworks/base/core/java/android/text/ |
D | Html.java | 652 int codepoint = 0x010000 | (int) c - 0xD800 << 10 | (int) d - 0xDC00; in withinStyle() local 653 out.append("&#").append(codepoint).append(";"); in withinStyle()
|