Home
last modified time | relevance | path

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

12

/aosp12/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);
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
H A Dencodingstest.cpp289 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST() local
291 UTF8<>::Encode(os, codepoint); in TEST()
320 EXPECT_EQ(codepoint, decodedCodepoint); in TEST()
321 if (!result || codepoint != decodedCodepoint) in TEST()
341 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST() local
343 UTF16<>::Encode(os, codepoint); in TEST()
347 if (codepoint != 0) // cannot handle U+0000 in TEST()
351 UTF8<>::Encode(utf8os, codepoint); in TEST()
362 if (codepoint <= 0xFFFF) in TEST()
400 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST() local
[all …]
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Dencodings.h103 if (codepoint <= 0x7F) in Encode()
105 else if (codepoint <= 0x7FF) { in Encode()
109 else if (codepoint <= 0xFFFF) { in Encode()
125 #define COPY() c = is.Take(); *codepoint = (*codepoint << 6) | ((unsigned char)c & 0x3Fu) in Decode()
250 if (codepoint <= 0xFFFF) { in Encode()
267 *codepoint = c; in Decode()
274 *codepoint += 0x10000; in Decode()
382 os.Put(codepoint); in Encode()
389 *codepoint = c; in Decode()
497 *codepoint = c; in Decode()
[all …]
H A Dwriter.h264 unsigned codepoint; in WriteString() local
265 if (!SourceEncoding::Decode(is, &codepoint)) in WriteString()
269 if (codepoint <= 0xD7FF || (codepoint >= 0xE000 && codepoint <= 0xFFFF)) { in WriteString()
270 os_->Put(hexDigits[(codepoint >> 12) & 15]); in WriteString()
271 os_->Put(hexDigits[(codepoint >> 8) & 15]); in WriteString()
272 os_->Put(hexDigits[(codepoint >> 4) & 15]); in WriteString()
273 os_->Put(hexDigits[(codepoint ) & 15]); in WriteString()
276 RAPIDJSON_ASSERT(codepoint >= 0x010000 && codepoint <= 0x10FFFF); in WriteString()
278 unsigned s = codepoint - 0x010000; in WriteString()
H A Dreader.h593 unsigned codepoint = 0; in ParseHex4() local
596 codepoint <<= 4; in ParseHex4()
597 codepoint += static_cast<unsigned>(c); in ParseHex4()
599 codepoint -= '0'; in ParseHex4()
601 codepoint -= 'A' - 10; in ParseHex4()
603 codepoint -= 'a' - 10; in ParseHex4()
609 return codepoint; in ParseHex4()
691 unsigned codepoint = ParseHex4(is); in ParseStringToStream() local
693 if (codepoint >= 0xD800 && codepoint <= 0xDBFF) { in ParseStringToStream()
701codepoint = (((codepoint - 0xD800) << 10) | (codepoint2 - 0xDC00)) + 0x10000; in ParseStringToStream()
[all …]
/aosp12/frameworks/minikin/tests/util/
H A 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()
/aosp12/frameworks/base/tools/aapt2/
H A DResourceUtils.cpp843 char32_t codepoint = iter->Next(); in AppendUnicodeEscapeSequence() local
845 if (codepoint >= U'0' && codepoint <= U'9') { in AppendUnicodeEscapeSequence()
846 a = codepoint - U'0'; in AppendUnicodeEscapeSequence()
847 } else if (codepoint >= U'a' && codepoint <= U'f') { in AppendUnicodeEscapeSequence()
848 a = codepoint - U'a' + 10; in AppendUnicodeEscapeSequence()
849 } else if (codepoint >= U'A' && codepoint <= U'F') { in AppendUnicodeEscapeSequence()
850 a = codepoint - U'A' + 10; in AppendUnicodeEscapeSequence()
871 char32_t codepoint = iter.Next(); in AppendText() local
887 if (codepoint == U'\\') { in AppendText()
889 codepoint = iter.Next(); in AppendText()
[all …]
/aosp12/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()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/search/
H A DStringMatcherUtility.java152 int codepoint = s.codePointAt(i); in requestSimpleFuzzySearch() local
153 i += Character.charCount(codepoint); in requestSimpleFuzzySearch()
154 switch (Character.UnicodeScript.of(codepoint)) { in requestSimpleFuzzySearch()
/aosp12/frameworks/minikin/tests/unittest/
H A DFontCollectionTest.cpp44 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()
H A DFontFamilyTest.cpp537 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument
544 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
545 << "Glyph for U+" << std::hex << codepoint << " U+" << i; in expectVSGlyphs()
547 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
548 << "Glyph for U+" << std::hex << codepoint << " U+" << i; in expectVSGlyphs()
H A DWordBreakerTests.cpp31 #define UTF16(codepoint) U16_LEAD(codepoint), U16_TRAIL(codepoint) argument
/aosp12/frameworks/base/tools/aapt2/util/
H A DUtil.cpp362 int32_t codepoint = utf32_from_utf8_at(utf8.data(), size, i, nullptr); in Utf8ToModifiedUtf8() local
365 int32_t high = ((codepoint - 0x10000) / 0x400) + 0xD800; in Utf8ToModifiedUtf8()
366 int32_t low = ((codepoint - 0x10000) % 0x400) + 0xDC00; in Utf8ToModifiedUtf8()
410 const char32_t codepoint = (char32_t) (((high_surrogate - 0xD800) * 0x400) in ModifiedUtf8ToUtf8() local
414 const size_t utf8_length = (size_t) utf32_to_utf8_length(&codepoint, 1); in ModifiedUtf8ToUtf8()
422 utf32_to_utf8((char32_t*) &codepoint, 1, start, utf8_length + 1); in ModifiedUtf8ToUtf8()
/aosp12/frameworks/opt/vcard/java/com/android/vcard/
H A 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()
/aosp12/frameworks/minikin/libs/minikin/
H A 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()
H A DFontFamily.cpp185 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()
/aosp12/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp36 const char32_t codepoint = iter.Next(); in ExtractFirstSentence() local
37 if (codepoint == U'.') { in ExtractFirstSentence()
/aosp12/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp98 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector() argument
100 return resolvedFace->fFontCollection->hasVariationSelector(codepoint, vs); in hasVariationSelector()
H A DMinikinUtils.h59 static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
/aosp12/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()
/aosp12/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()
/aosp12/frameworks/minikin/doc/
H A 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
/aosp12/frameworks/minikin/include/minikin/
H A DFontFamily.h82 bool hasGlyph(uint32_t codepoint, uint32_t variationSelector) const;
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
H A Dmisctest.cpp68 unsigned codepoint, state = 0; in IsUTF8() local
71 decode(&state, &codepoint, *s++); in IsUTF8()

12