Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/tools/aapt2/text/
DUnicode.cpp45 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 …]
DUnicode.h32 bool IsXidStart(char32_t codepoint);
41 bool IsXidContinue(char32_t codepoint);
45 bool IsWhitespace(char32_t codepoint);
/frameworks/minikin/tests/util/
DUnicodeUtils.cpp56 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/
DResourceUtils.cpp806 static bool AppendCodepointToUtf8String(char32_t codepoint, std::string* output) { in AppendCodepointToUtf8String() argument
807 ssize_t len = utf32_to_utf8_length(&codepoint, 1); in AppendCodepointToUtf8String()
818 utf32_to_utf8(&codepoint, 1, dst, len + 1); in AppendCodepointToUtf8String()
827 char32_t codepoint = iter->Next(); in AppendUnicodeEscapeSequence() local
829 if (codepoint >= U'0' && codepoint <= U'9') { in AppendUnicodeEscapeSequence()
830 a = codepoint - U'0'; in AppendUnicodeEscapeSequence()
831 } else if (codepoint >= U'a' && codepoint <= U'f') { in AppendUnicodeEscapeSequence()
832 a = codepoint - U'a' + 10; in AppendUnicodeEscapeSequence()
833 } else if (codepoint >= U'A' && codepoint <= U'F') { in AppendUnicodeEscapeSequence()
834 a = codepoint - U'A' + 10; in AppendUnicodeEscapeSequence()
[all …]
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp43 void expectVSGlyphs(const FontCollection* fc, uint32_t codepoint, const std::set<uint32_t>& vsSet) { in expectVSGlyphs() argument
50 EXPECT_FALSE(fc->hasVariationSelector(codepoint, vs)) in expectVSGlyphs()
51 << "Glyph for U+" << std::hex << codepoint << " U+" << vs; in expectVSGlyphs()
53 EXPECT_TRUE(fc->hasVariationSelector(codepoint, vs)) in expectVSGlyphs()
54 << "Glyph for U+" << std::hex << codepoint << " U+" << vs; in expectVSGlyphs()
DFontFamilyTest.cpp502 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument
509 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
510 << "Glyph for U+" << std::hex << codepoint << " U+" << i; in expectVSGlyphs()
512 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
513 << "Glyph for U+" << std::hex << codepoint << " U+" << i; in expectVSGlyphs()
DWordBreakerTests.cpp31 #define UTF16(codepoint) U16_LEAD(codepoint), U16_TRAIL(codepoint) argument
/frameworks/base/tools/aapt2/util/
DUtil.cpp345 int32_t codepoint = utf32_from_utf8_at(utf8.data(), size, i, nullptr); in Utf8ToModifiedUtf8() local
348 int32_t high = ((codepoint - 0x10000) / 0x400) + 0xD800; in Utf8ToModifiedUtf8()
349 int32_t low = ((codepoint - 0x10000) % 0x400) + 0xDC00; in Utf8ToModifiedUtf8()
393 const char32_t codepoint = (char32_t) (((high_surrogate - 0xD800) * 0x400) in ModifiedUtf8ToUtf8() local
397 const size_t utf8_length = (size_t) utf32_to_utf8_length(&codepoint, 1); in ModifiedUtf8ToUtf8()
405 utf32_to_utf8((char32_t*) &codepoint, 1, start, utf8_length + 1); in ModifiedUtf8ToUtf8()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardUtils.java511 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/
DAnnotationProcessor.cpp35 const char32_t codepoint = iter.Next(); in ExtractFirstSentence() local
36 if (codepoint == U'.') { in ExtractFirstSentence()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp176 bool FontFamily::hasGlyph(uint32_t codepoint, uint32_t variationSelector) const { in hasGlyph() argument
178 return mCoverage.get(codepoint); in hasGlyph()
198 return bitset->get(codepoint); in hasGlyph()
DHyphenator.cpp45 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()
DLayoutCore.cpp504 hb_codepoint_t glyph_ix = info[i].codepoint; in LayoutPiece()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp85 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector() argument
87 return resolvedFace->fFontCollection->hasVariationSelector(codepoint, vs); in hasVariationSelector()
DMinikinUtils.h56 ANDROID_API static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
/frameworks/minikin/include/minikin/
DFontFamily.h59 bool hasGlyph(uint32_t codepoint, uint32_t variationSelector) const;
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java115 for (int codepoint : codepoints) { in codePointsToString()
116 sb.append(Character.toChars(codepoint)); in codePointsToString()
/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java87 private static boolean isVariationSelector(int codepoint) { in isVariationSelector() argument
88 return UCharacter.hasBinaryProperty(codepoint, UProperty.VARIATION_SELECTOR); in isVariationSelector()
/frameworks/minikin/doc/
Dhyb_file_format.md88 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/text/
DHtml.java649 int codepoint = 0x010000 | (int) c - 0xD800 << 10 | (int) d - 0xDC00; in withinStyle() local
650 out.append("&#").append(codepoint).append(";"); in withinStyle()
/frameworks/base/non-updatable-api/
Dcurrent.txt21522 field public int codepoint;
21542 field public int codepoint;
/frameworks/base/api/
Dcurrent.txt21522 field public int codepoint;
21542 field public int codepoint;