Home
last modified time | relevance | path

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

/aosp14/frameworks/base/tools/aapt2/text/
H A DUnicode.cpp46 return a.last_char < codepoint; in CompareCharacterProperties()
61 bool IsXidStart(char32_t codepoint) { in IsXidStart() argument
65 bool IsXidContinue(char32_t codepoint) { in IsXidContinue() argument
72 bool IsWhitespace(char32_t codepoint) { in IsWhitespace() argument
73 return (codepoint >= 0x0009 && codepoint <= 0x000d) || (codepoint == 0x0020) || in IsWhitespace()
74 (codepoint == 0x0085) || (codepoint == 0x00a0) || (codepoint == 0x1680) || in IsWhitespace()
75 (codepoint >= 0x2000 && codepoint <= 0x200a) || (codepoint == 0x2028) || in IsWhitespace()
76 (codepoint == 0x2029) || (codepoint == 0x202f) || (codepoint == 0x205f) || in IsWhitespace()
77 (codepoint == 0x3000); in IsWhitespace()
95 if (!IsXidContinue(codepoint) && codepoint != U'$') { in IsJavaIdentifier()
[all …]
H A DUnicode.h32 bool IsXidStart(char32_t codepoint);
41 bool IsXidContinue(char32_t codepoint);
45 bool IsWhitespace(char32_t codepoint);
/aosp14/frameworks/base/tools/aapt2/
H A DResourceUtils.cpp838 char32_t codepoint = iter->Next(); in AppendUnicodeEscapeSequence() local
840 if (codepoint >= U'0' && codepoint <= U'9') { in AppendUnicodeEscapeSequence()
841 a = codepoint - U'0'; in AppendUnicodeEscapeSequence()
842 } else if (codepoint >= U'a' && codepoint <= U'f') { in AppendUnicodeEscapeSequence()
843 a = codepoint - U'a' + 10; in AppendUnicodeEscapeSequence()
844 } else if (codepoint >= U'A' && codepoint <= U'F') { in AppendUnicodeEscapeSequence()
845 a = codepoint - U'A' + 10; in AppendUnicodeEscapeSequence()
866 char32_t codepoint = iter.Next(); in AppendText() local
882 if (codepoint == U'\\') { in AppendText()
884 codepoint = iter.Next(); in AppendText()
[all …]
/aosp14/system/core/libutils/
H A DUnicode.cpp421 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8charLen); in utf8_to_utf16_length() local
422 if (codepoint > 0xFFFF) u16measuredLen++; // this will be a surrogate pair in utf16 in utf8_to_utf16_length()
459 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len); in utf8_to_utf16_no_null_terminator() local
462 if (codepoint <= 0xFFFF) { in utf8_to_utf16_no_null_terminator()
464 *u16cur++ = (char16_t) codepoint; in utf8_to_utf16_no_null_terminator()
467 codepoint = codepoint - 0x10000; in utf8_to_utf16_no_null_terminator()
468 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800); in utf8_to_utf16_no_null_terminator()
473 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00); in utf8_to_utf16_no_null_terminator()
/aosp14/frameworks/base/libs/androidfw/
H A DUtil.cpp96 int32_t codepoint = utf32_from_utf8_at(utf8.data(), size, i, nullptr); in Utf8ToModifiedUtf8() local
99 int32_t high = ((codepoint - 0x10000) / 0x400) + 0xD800; in Utf8ToModifiedUtf8()
100 int32_t low = ((codepoint - 0x10000) % 0x400) + 0xDC00; in Utf8ToModifiedUtf8()
144 const char32_t codepoint = in ModifiedUtf8ToUtf8() local
148 const size_t utf8_length = (size_t)utf32_to_utf8_length(&codepoint, 1); in ModifiedUtf8ToUtf8()
157 utf32_to_utf8((char32_t*)&codepoint, 1, start, utf8_length + 1); in ModifiedUtf8ToUtf8()
/aosp14/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp36 const char32_t codepoint = iter.Next(); in ExtractFirstSentence() local
37 if (codepoint == U'.') { in ExtractFirstSentence()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp108 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector() argument
110 return resolvedFace->fFontCollection->hasVariationSelector(codepoint, vs); in hasVariationSelector()
H A DMinikinUtils.h63 static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPaintTest.java115 for (int codepoint : codepoints) { in codePointsToString()
116 sb.append(Character.toChars(codepoint)); in codePointsToString()
/aosp14/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java87 private static boolean isVariationSelector(int codepoint) { in isVariationSelector() argument
88 return UCharacter.hasBinaryProperty(codepoint, UProperty.VARIATION_SELECTOR); in isVariationSelector()
/aosp14/frameworks/base/core/java/android/widget/
H A DSpellChecker.java357 private static boolean isSeparator(int codepoint) { in isSeparator() argument
358 final int type = Character.getType(codepoint); in isSeparator()
/aosp14/frameworks/base/core/java/android/text/
H A DHtml.java652 int codepoint = 0x010000 | (int) c - 0xD800 << 10 | (int) d - 0xDC00; in withinStyle() local
653 out.append("&#").append(codepoint).append(";"); in withinStyle()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...