/aosp_15_r20/external/icu/icu4j/main/charset/src/main/java/com/ibm/icu/charset/ |
H A D | CharsetCompoundText.java | 98 private static boolean isASCIIRange(int codepoint) { in isASCIIRange() argument 99 if ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || in isASCIIRange() 100 … (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) { in isASCIIRange() 106 private static boolean isIBM915(int codepoint) { in isIBM915() argument 107 if ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116)) { in isIBM915() 113 private static boolean isIBM916(int codepoint) { in isIBM916() argument 114 …if ((codepoint >= 0x05D0 && codepoint <= 0x05EA) || (codepoint == 0x2017) || (codepoint == 0x203E)… in isIBM916() 120 private static boolean isCompoundS3(int codepoint) { in isCompoundS3() argument 121 …if ((codepoint == 0x060C) || (codepoint == 0x061B) || (codepoint == 0x061F) || (codepoint >= 0x062… in isCompoundS3() 122 …(codepoint >= 0x0640 && codepoint <= 0x0652) || (codepoint >= 0x0660 && codepoint <= 0x066D) || (c… in isCompoundS3() [all …]
|
/aosp_15_r20/external/icu/icu4c/source/common/ |
H A D | ucnv_ct.cpp | 104 #define isASCIIRange(codepoint) \ argument 105 ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || \ 106 … (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) 108 #define isIBM915(codepoint) \ argument 109 ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116)) 111 #define isIBM916(codepoint) \ argument 112 … ((codepoint >= 0x05D0 && codepoint <= 0x05EA) || (codepoint == 0x2017) || (codepoint == 0x203E)) 114 #define isCompoundS3(codepoint) \ argument 115 …((codepoint == 0x060C) || (codepoint == 0x061B) || (codepoint == 0x061F) || (codepoint >= 0x0621 &… 116 …(codepoint >= 0x0640 && codepoint <= 0x0652) || (codepoint >= 0x0660 && codepoint <= 0x066D) || (c… [all …]
|
/aosp_15_r20/external/cronet/third_party/icu/source/common/ |
H A D | ucnv_ct.cpp | 104 #define isASCIIRange(codepoint) \ argument 105 ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || \ 106 … (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) 108 #define isIBM915(codepoint) \ argument 109 ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116)) 111 #define isIBM916(codepoint) \ argument 112 … ((codepoint >= 0x05D0 && codepoint <= 0x05EA) || (codepoint == 0x2017) || (codepoint == 0x203E)) 114 #define isCompoundS3(codepoint) \ argument 115 …((codepoint == 0x060C) || (codepoint == 0x061B) || (codepoint == 0x061F) || (codepoint >= 0x0621 &… 116 …(codepoint >= 0x0640 && codepoint <= 0x0652) || (codepoint >= 0x0660 && codepoint <= 0x066D) || (c… [all …]
|
/aosp_15_r20/external/libtextclassifier/native/utils/utf8/ |
H A D | unilib-common.cc | 515 bool IsOpeningBracket(char32 codepoint) { in IsOpeningBracket() argument 516 return GetMatchIndex(kOpeningBrackets, kNumOpeningBrackets, codepoint) >= 0; in IsOpeningBracket() 519 bool IsClosingBracket(char32 codepoint) { in IsClosingBracket() argument 520 return GetMatchIndex(kClosingBrackets, kNumClosingBrackets, codepoint) >= 0; in IsClosingBracket() 523 bool IsWhitespace(char32 codepoint) { in IsWhitespace() argument 524 return GetMatchIndex(kWhitespaces, kNumWhitespaces, codepoint) >= 0; in IsWhitespace() 527 bool IsBidirectional(char32 codepoint) { in IsBidirectional() argument 528 return GetMatchIndex(kBidirectional, kNumBidirectional, codepoint) >= 0; in IsBidirectional() 531 bool IsDigit(char32 codepoint) { in IsDigit() argument 534 /*range_length=*/10, codepoint) >= 0; in IsDigit() [all …]
|
H A D | unilib.h | 46 for (const char32 codepoint : text) { in ToLowerText() local 47 result.push_back(ToLower(codepoint)); in ToLowerText() 55 for (const char32 codepoint : text) { in ToUpperText() local 56 result.push_back(UniLibBase::ToUpper(codepoint)); in ToUpperText() 62 for (const char32 codepoint : text) { in IsLowerText() local 63 if (!IsLower(codepoint)) { in IsLowerText() 71 for (const char32 codepoint : text) { in IsUpperText() local 72 if (!IsUpper(codepoint)) { in IsUpperText() 80 for (const char32 codepoint : text) { in IsDigits() local 81 if (!IsDigit(codepoint)) { in IsDigits() [all …]
|
H A D | unilib-common.h | 25 bool IsOpeningBracket(char32 codepoint); 26 bool IsClosingBracket(char32 codepoint); 27 bool IsWhitespace(char32 codepoint); 28 bool IsBidirectional(char32 codepoint); 29 bool IsDigit(char32 codepoint); 30 bool IsLower(char32 codepoint); 31 bool IsUpper(char32 codepoint); 32 bool IsPunctuation(char32 codepoint); 33 bool IsPercentage(char32 codepoint); 34 bool IsSlash(char32 codepoint); [all …]
|
H A D | unilib-javaicu.cc | 40 bool UniLibBase::IsOpeningBracket(char32 codepoint) const { in IsOpeningBracket() 41 return libtextclassifier3::IsOpeningBracket(codepoint); in IsOpeningBracket() 44 bool UniLibBase::IsClosingBracket(char32 codepoint) const { in IsClosingBracket() 45 return libtextclassifier3::IsClosingBracket(codepoint); in IsClosingBracket() 48 bool UniLibBase::IsWhitespace(char32 codepoint) const { in IsWhitespace() 49 return libtextclassifier3::IsWhitespace(codepoint); in IsWhitespace() 52 bool UniLibBase::IsDigit(char32 codepoint) const { in IsDigit() 53 return libtextclassifier3::IsDigit(codepoint); in IsDigit() 56 bool UniLibBase::IsLower(char32 codepoint) const { in IsLower() 57 return libtextclassifier3::IsLower(codepoint); in IsLower() [all …]
|
/aosp_15_r20/external/harfbuzz_ng/src/ |
H A D | hb-ot-shaper-vowel-constraints.cc | 62 switch (buffer->cur ().codepoint) in _hb_preprocess_text_vowel_constraints() 65 switch (buffer->cur (1).codepoint) in _hb_preprocess_text_vowel_constraints() 75 switch (buffer->cur (1).codepoint) in _hb_preprocess_text_vowel_constraints() 84 matched = 0x0941u == buffer->cur (1).codepoint; in _hb_preprocess_text_vowel_constraints() 87 switch (buffer->cur (1).codepoint) in _hb_preprocess_text_vowel_constraints() 95 if (0x094Du == buffer->cur (1).codepoint && in _hb_preprocess_text_vowel_constraints() 97 0x0907u == buffer->cur (2).codepoint) in _hb_preprocess_text_vowel_constraints() 113 switch (buffer->cur ().codepoint) in _hb_preprocess_text_vowel_constraints() 116 matched = 0x09BEu == buffer->cur (1).codepoint; in _hb_preprocess_text_vowel_constraints() 119 matched = 0x09C3u == buffer->cur (1).codepoint; in _hb_preprocess_text_vowel_constraints() [all …]
|
H A D | hb-ot-cmap-table.hh | 189 bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 191 hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0; in get_glyph() 541 bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 555 const HBUINT16 *found = hb_bsearch (codepoint, in get_glyph() 568 gid = codepoint + this->idDelta[i]; in get_glyph() 572 unsigned int index = rangeOffset / 2 + (codepoint - this->startCount[i]) + i - this->segCount; in get_glyph() 587 …HB_INTERNAL static bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t … in get_glyph_func() 588 { return ((const accelerator_t *) obj)->get_glyph (codepoint, glyph); } in get_glyph_func() 603 for (hb_codepoint_t codepoint = start; codepoint <= end; codepoint++) in collect_unicodes() local 605 hb_codepoint_t gid = (codepoint + this->idDelta[i]) & 0xFFFFu; in collect_unicodes() [all …]
|
H A D | hb-bit-set-invertible.hh | 246 bool next (hb_codepoint_t *codepoint) const in next() 249 return s.next (codepoint); in next() 251 auto old = *codepoint; in next() 254 *codepoint = INVALID; in next() 262 *codepoint = old + 1; in next() 269 *codepoint = v + 1; in next() 270 return *codepoint != INVALID; in next() 272 bool previous (hb_codepoint_t *codepoint) const in previous() 275 return s.previous (codepoint); in previous() 277 auto old = *codepoint; in previous() [all …]
|
H A D | hb-bit-set.hh | 622 bool next (hb_codepoint_t *codepoint) const in next() 624 if (unlikely (*codepoint == INVALID)) { in next() 625 *codepoint = get_min (); in next() 626 return *codepoint != INVALID; in next() 630 unsigned int major = get_major (*codepoint); in next() 637 *codepoint = INVALID; in next() 647 if (pages_array[current.index].next (codepoint)) in next() 649 *codepoint += current.major * page_t::PAGE_BITS; in next() 661 *codepoint = current.major * page_t::PAGE_BITS + m; in next() 666 *codepoint = INVALID; in next() [all …]
|
/aosp_15_r20/frameworks/base/tools/aapt2/text/ |
H A 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 …]
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/read-fonts-0.15.6/src/tables/ |
H A D | cmap.rs | 25 pub fn map_codepoint(&self, codepoint: impl Into<u32>) -> Option<GlyphId> { in map_codepoint() 26 let codepoint = codepoint.into(); in map_codepoint() localVariable 30 CmapSubtable::Format4(format4) => format4.map_codepoint(codepoint), in map_codepoint() 31 CmapSubtable::Format12(format12) => format12.map_codepoint(codepoint), in map_codepoint() 44 pub fn map_codepoint(&self, codepoint: impl Into<u32>) -> Option<GlyphId> { in map_codepoint() 45 let codepoint = codepoint.into(); in map_codepoint() localVariable 46 if codepoint > 0xFFFF { in map_codepoint() 49 let codepoint = codepoint as u16; in map_codepoint() localVariable 57 if codepoint < start_code { in map_codepoint() 59 } else if codepoint > end_codes.get(i)?.get() { in map_codepoint() [all …]
|
/aosp_15_r20/external/json-schema-validator/src/main/java/com/networknt/schema/utils/ |
H A D | UnicodeDatabase.java | 44 public static boolean isArabicIndicDigit(int codepoint) { in isArabicIndicDigit() argument 45 return ARABIC_INDIC_DIGITS.get(codepoint); in isArabicIndicDigit() 48 public static boolean isExtendedArabicIndicDigit(int codepoint) { in isExtendedArabicIndicDigit() argument 49 return EXTENDED_ARABIC_INDIC_DIGITS.get(codepoint); in isExtendedArabicIndicDigit() 52 public static boolean isGreek(int codepoint) { in isGreek() argument 53 return GREEK_CHARACTERS.get(codepoint); in isGreek() 56 public static boolean isHebrew(int codepoint) { in isHebrew() argument 57 return HEBREW_CHARACTERS.get(codepoint); in isHebrew() 60 public static boolean isKatakana(int codepoint) { in isKatakana() argument 61 return KATAKANA_CHARACTERS.get(codepoint); in isKatakana() [all …]
|
/aosp_15_r20/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/posix/ |
H A D | POSIXLocale.java | 72 if ((ec.codepoint != UnicodeSetIterator.IS_STRING) && (ec.codepoint <= 0x00ffff)) in POSIXLocale() 73 repertoire.add(ec.codepoint); in POSIXLocale() 79 if ((cfe.codepoint != UnicodeSetIterator.IS_STRING) && (cfe.codepoint <= 0x00ffff)) in POSIXLocale() 80 repertoire.add(cfe.codepoint); in POSIXLocale() 86 if ((it.codepoint != UnicodeSetIterator.IS_STRING) && (it.codepoint <= 0x00ffff)) { in POSIXLocale() 87 int Script = UScript.getScript(it.codepoint); in POSIXLocale() 98 if ((ts.codepoint != UnicodeSetIterator.IS_STRING) in POSIXLocale() 99 && (ts.codepoint <= 0x00ffff)) repertoire.add(ts.codepoint); in POSIXLocale() 117 if (!UCharacter.isDefined(rep.codepoint) in POSIXLocale() 118 && (rep.codepoint != UnicodeSetIterator.IS_STRING)) in POSIXLocale() [all …]
|
H A D | POSIX_LCCtype.java | 31 if (it.codepoint != -1 && !chars.contains(it.codepoint)) { in POSIX_LCCtype() 34 + POSIXUtilities.POSIXCharName(it.codepoint)); in POSIX_LCCtype() 78 out.print("\t" + POSIXUtilities.POSIXCharName(it.codepoint)); in write() 91 int upp = UCharacter.toUpperCase(it.codepoint); in write() 92 if (upp != it.codepoint && chars.contains(upp) && lowers.contains(it.codepoint)) in write() 93 us.add(it.codepoint); in write() 101 + POSIXUtilities.POSIXCharName(it.codepoint) in write() 103 + POSIXUtilities.POSIXCharName(UCharacter.toUpperCase(it.codepoint)) in write() 115 int low = UCharacter.toLowerCase(it.codepoint); in write() 116 if (low != it.codepoint && chars.contains(low) && uppers.contains(it.codepoint)) in write() [all …]
|
/aosp_15_r20/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
H A D | UnicodeMap.java | 199 private void _checkFind(int codepoint, int value) { in _checkFind() argument 200 int other = __findIndex(codepoint); in _checkFind() 203 + "\t" + Utility.hex(codepoint) + ": " + value in _checkFind() 208 private int __findIndex(int codepoint) { in __findIndex() argument 210 if (transitions[i] <= codepoint) return i; in __findIndex() 282 private UnicodeMap _put(int codepoint, T value) { in _put() argument 287 if (transitions[lastIndex] <= codepoint in _put() 288 && codepoint < transitions[lastIndex+1]) { in _put() 291 baseIndex = _findIndex(codepoint); in _put() 300 … throw new UnsupportedOperationException("Attempt to reset value for " + Utility.hex(codepoint) in _put() [all …]
|
/aosp_15_r20/external/icu/icu4j/main/translit/src/test/java/com/ibm/icu/dev/util/ |
H A D | UnicodeMap.java | 196 private void _checkFind(int codepoint, int value) { in _checkFind() argument 197 int other = __findIndex(codepoint); in _checkFind() 200 + "\t" + Utility.hex(codepoint) + ": " + value in _checkFind() 205 private int __findIndex(int codepoint) { in __findIndex() argument 207 if (transitions[i] <= codepoint) return i; in __findIndex() 279 private UnicodeMap _put(int codepoint, T value) { in _put() argument 284 if (transitions[lastIndex] <= codepoint in _put() 285 && codepoint < transitions[lastIndex+1]) { in _put() 288 baseIndex = _findIndex(codepoint); in _put() 297 … throw new UnsupportedOperationException("Attempt to reset value for " + Utility.hex(codepoint) in _put() [all …]
|
/aosp_15_r20/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
D | normalize.cc | 85 char32_t NormalizeForSearch(char32_t codepoint) { in NormalizeForSearch() argument 88 if (codepoint < kTableSize) { in NormalizeForSearch() 89 return table[codepoint]; in NormalizeForSearch() 91 return codepoint; in NormalizeForSearch() 104 bool IsSkippableForSearch(char32_t codepoint, char32_t prev_codepoint) { in IsSkippableForSearch() argument 105 if (codepoint == kBrokenWordMarker) { in IsSkippableForSearch() 109 if (BothAreSpaces(NormalizeForSearch(codepoint), NormalizeForSearch(prev_codepoint))) { in IsSkippableForSearch() 116 bool IsLineBreak(char32_t codepoint) { in IsLineBreak() argument 117 switch (codepoint) { in IsLineBreak() 126 bool IsWordBreak(char32_t codepoint) { in IsWordBreak() argument [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/property_tree/include/boost/property_tree/json_parser/detail/ |
D | narrow_encoding.hpp | 112 void feed_codepoint(unsigned codepoint, in feed_codepoint() 114 if (codepoint <= 0x7f) { in feed_codepoint() 115 transcoded_fn(static_cast<char>(codepoint)); in feed_codepoint() 116 } else if (codepoint <= 0x7ff) { in feed_codepoint() 117 transcoded_fn(static_cast<char>(0xc0 | (codepoint >> 6))); in feed_codepoint() 118 transcoded_fn(trail(codepoint)); in feed_codepoint() 119 } else if (codepoint <= 0xffff) { in feed_codepoint() 120 transcoded_fn(static_cast<char>(0xe0 | (codepoint >> 12))); in feed_codepoint() 121 transcoded_fn(trail(codepoint >> 6)); in feed_codepoint() 122 transcoded_fn(trail(codepoint)); in feed_codepoint() [all …]
|
D | wide_encoding.hpp | 95 void feed_codepoint(unsigned codepoint, in feed_codepoint() argument 97 feed_codepoint(codepoint, transcoded_fn, test_utf16()); in feed_codepoint() 155 void feed_codepoint(unsigned codepoint, TranscodedFn transcoded_fn, in feed_codepoint() argument 157 transcoded_fn(static_cast<wchar_t>(codepoint)); in feed_codepoint() 160 void feed_codepoint(unsigned codepoint, TranscodedFn transcoded_fn, in feed_codepoint() argument 162 if (codepoint < 0x10000) { in feed_codepoint() 163 transcoded_fn(static_cast<wchar_t>(codepoint)); in feed_codepoint() 165 codepoint -= 0x10000; in feed_codepoint() 166 transcoded_fn(static_cast<wchar_t>((codepoint >> 10) | 0xd800)); in feed_codepoint() 168 (codepoint & 0x3ff) | 0xdc00)); in feed_codepoint() [all …]
|
/aosp_15_r20/external/libtextclassifier/native/lang_id/script/ |
H A D | tiny-script-detector.h | 85 const unsigned int codepoint = ((p[0] & 0x1F) << 6) | (p[1] & 0x3F); in GetScript() local 86 if (codepoint > kCyrillicEnd) { in GetScript() 87 if (codepoint >= kArabicStart) { in GetScript() 88 if (codepoint <= kArabicEnd) { in GetScript() 94 if (codepoint >= kHebrewStart) { in GetScript() 99 if (codepoint >= kCyrillicStart) { in GetScript() 104 if (codepoint >= kGreekStart) { in GetScript() 122 const unsigned int codepoint = in GetScript() local 124 if (codepoint > kHiraganaEnd) { in GetScript() 127 if (codepoint <= kKatakanaEnd) { in GetScript() [all …]
|
/aosp_15_r20/external/owasp/sanitizer/src/main/org/owasp/html/ |
D | Encoding.java | 57 int codepoint = (int) endAndCodepoint; in decodeHtml() local 58 sb.append(s, pos, amp).appendCodePoint(codepoint); in decodeHtml() 185 int codepoint = Character.toCodePoint(ch, next); in encodeHtmlOnto() local 187 appendNumericEntity(codepoint, output); in encodeHtmlOnto() 212 static void appendNumericEntity(int codepoint, Appendable output) in appendNumericEntity() argument 214 if (codepoint < 100) { in appendNumericEntity() 217 if (codepoint < 10) { in appendNumericEntity() 218 output.append((char) ('0' + codepoint)); in appendNumericEntity() 220 output.append((char) ('0' + (codepoint / 10))); in appendNumericEntity() 221 output.append((char) ('0' + (codepoint % 10))); in appendNumericEntity() [all …]
|
D | HtmlEntities.java | 103 int codepoint = -1; in decodeEntityAt() local 110 codepoint = 0; in decodeEntityAt() 119 codepoint = (codepoint << 4) | decDig; in decodeEntityAt() 121 codepoint = -1; in decodeEntityAt() 129 codepoint = (codepoint << 4) | (hexDig + 9); in decodeEntityAt() 131 codepoint = -1; in decodeEntityAt() 136 codepoint = -1; in decodeEntityAt() 140 if (codepoint > Character.MAX_CODE_POINT) { in decodeEntityAt() 141 codepoint = 0xfffd; // Unknown. in decodeEntityAt() 144 codepoint = 0; in decodeEntityAt() [all …]
|
/aosp_15_r20/external/harfbuzz_ng/test/api/ |
H A D | test-draw.c | 469 hb_codepoint_t codepoint = 1610; /* ي */ in test_hb_draw_font_kit_glyphs_tests() local 470 hb_buffer_add_codepoints (buffer, &codepoint, 1, 0, -1); in test_hb_draw_font_kit_glyphs_tests() 473 codepoint = hb_buffer_get_glyph_infos (buffer, NULL)[0].codepoint; in test_hb_draw_font_kit_glyphs_tests() 478 hb_font_draw_glyph (font, codepoint, funcs, &draw_data); in test_hb_draw_font_kit_glyphs_tests() 562 hb_codepoint_t codepoint = 24396; /* 彌 */ in test_hb_draw_font_kit_variations_tests() local 563 hb_buffer_add_codepoints (buffer, &codepoint, 1, 0, -1); in test_hb_draw_font_kit_variations_tests() 566 codepoint = hb_buffer_get_glyph_infos (buffer, NULL)[0].codepoint; in test_hb_draw_font_kit_variations_tests() 570 hb_font_draw_glyph (font, codepoint, funcs, &draw_data); in test_hb_draw_font_kit_variations_tests() 607 hb_codepoint_t codepoint = 24396; /* 彌 */ in test_hb_draw_font_kit_variations_tests() local 608 hb_buffer_add_codepoints (buffer, &codepoint, 1, 0, -1); in test_hb_draw_font_kit_variations_tests() [all …]
|