/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
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 …]
|
/external/icu/icu4c/source/common/ |
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 …]
|
D | usetiter.cpp | 51 codepoint = codepointEnd = nextElement++; in next() 57 codepoint = codepointEnd = nextElement++; in next() 63 codepoint = (UChar32)IS_STRING; // signal that value is actually a string in next() 83 codepoint = nextElement; in nextRange() 90 codepoint = nextElement; in nextRange() 96 codepoint = (UChar32)IS_STRING; // signal that value is actually a string in nextRange() 138 if (string==NULL && codepoint!=(UChar32)IS_STRING) { in getString() 143 cpString->setTo((UChar32)codepoint); in getString()
|
/external/libtextclassifier/native/utils/utf8/ |
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 …]
|
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 …]
|
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 …]
|
D | unilib-javaicu.h | 48 bool IsOpeningBracket(char32 codepoint) const; 49 bool IsClosingBracket(char32 codepoint) const; 50 bool IsWhitespace(char32 codepoint) const; 51 bool IsDigit(char32 codepoint) const; 52 bool IsLower(char32 codepoint) const; 53 bool IsUpper(char32 codepoint) const; 54 bool IsPunctuation(char32 codepoint) const; 56 char32 ToLower(char32 codepoint) const; 57 char32 ToUpper(char32 codepoint) const; 58 char32 GetPairedBracket(char32 codepoint) const;
|
/external/harfbuzz_ng/src/ |
D | hb-ot-shape-complex-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 …]
|
D | hb-ot-cmap-table.hh | 44 bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 46 hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0; in get_glyph() 322 bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 336 const HBUINT16 *found = hb_bsearch (codepoint, in get_glyph() 349 gid = codepoint + this->idDelta[i]; in get_glyph() 353 unsigned int index = rangeOffset / 2 + (codepoint - this->startCount[i]) + i - this->segCount; in get_glyph() 368 …HB_INTERNAL static bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t … in get_glyph_func() 369 { return ((const accelerator_t *) obj)->get_glyph (codepoint, glyph); } in get_glyph_func() 383 for (hb_codepoint_t codepoint = start; codepoint <= end; codepoint++) in collect_unicodes() local 385 hb_codepoint_t gid = (codepoint + this->idDelta[i]) & 0xFFFFu; in collect_unicodes() [all …]
|
D | hb-set.cc | 237 hb_codepoint_t codepoint) in hb_set_has() argument 239 return set->has (codepoint); in hb_set_has() 253 hb_codepoint_t codepoint) in hb_set_add() argument 256 set->add (codepoint); in hb_set_add() 290 hb_codepoint_t codepoint) in hb_set_del() argument 293 set->del (codepoint); in hb_set_del() 521 hb_codepoint_t *codepoint) in hb_set_next() argument 523 return set->next (codepoint); in hb_set_next() 542 hb_codepoint_t *codepoint) in hb_set_previous() argument 544 return set->previous (codepoint); in hb_set_previous()
|
/external/libtextclassifier/native/lang_id/script/ |
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 …]
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/posix/ |
D | POSIXLocale.java | 67 if ((ec.codepoint != UnicodeSetIterator.IS_STRING) && (ec.codepoint <= 0x00ffff)) in POSIXLocale() 68 repertoire.add(ec.codepoint); in POSIXLocale() 73 if ((cfe.codepoint != UnicodeSetIterator.IS_STRING) && (cfe.codepoint <= 0x00ffff)) in POSIXLocale() 74 repertoire.add(cfe.codepoint); in POSIXLocale() 80 if ((it.codepoint != UnicodeSetIterator.IS_STRING) && (it.codepoint <= 0x00ffff)) { in POSIXLocale() 81 int Script = UScript.getScript(it.codepoint); in POSIXLocale() 91 … if ((ts.codepoint != UnicodeSetIterator.IS_STRING) && (ts.codepoint <= 0x00ffff)) in POSIXLocale() 92 repertoire.add(ts.codepoint); in POSIXLocale() 109 … if (!UCharacter.isDefined(rep.codepoint) && (rep.codepoint != UnicodeSetIterator.IS_STRING)) in POSIXLocale() 110 repertoire.remove(rep.codepoint); in POSIXLocale() [all …]
|
D | POSIX_LCCtype.java | 33 if (it.codepoint != -1 && !chars.contains(it.codepoint)) { in POSIX_LCCtype() 35 POSIXUtilities.POSIXCharName(it.codepoint)); in POSIX_LCCtype() 76 out.print("\t" + POSIXUtilities.POSIXCharName(it.codepoint)); in write() 89 int upp = UCharacter.toUpperCase(it.codepoint); in write() 90 …if (upp != it.codepoint && chars.contains(upp) && lowers.contains(it.codepoint)) us.add(it.codepoi… in write() 96 out.print("\t(" + POSIXUtilities.POSIXCharName(it.codepoint) + "," + in write() 97 POSIXUtilities.POSIXCharName(UCharacter.toUpperCase(it.codepoint)) + ")"); in write() 108 int low = UCharacter.toLowerCase(it.codepoint); in write() 109 …if (low != it.codepoint && chars.contains(low) && uppers.contains(it.codepoint)) us.add(it.codepoi… in write() 115 out.print("\t(" + POSIXUtilities.POSIXCharName(it.codepoint) + "," + in write() [all …]
|
/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 | CssGrammar.java | 173 int codepoint = token.charAt(end - 1); in cssContent() local 174 if (isHex(codepoint)) { in cssContent() 181 codepoint = Integer.parseInt(token.substring(esc + 1, end), 16); in cssContent() 183 codepoint = 0xfffd; // Unknown codepoint. in cssContent() 192 sb.appendCodePoint(codepoint); in cssContent() 199 private static boolean isHex(int codepoint) { in isHex() argument 200 return ('0' <= codepoint && codepoint <= '9') in isHex() 201 || ('A' <= codepoint && codepoint <= 'F') in isHex() 202 || ('a' <= codepoint && codepoint <= 'f'); in isHex()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UnicodeSetIterator.java | 67 public int codepoint; field in UnicodeSetIterator 146 codepoint = codepointEnd = nextElement++; in next() 151 codepoint = codepointEnd = nextElement++; in next() 160 codepoint = IS_STRING; // signal that value is actually a string in next() 191 codepoint = nextElement; in nextRange() 198 codepoint = nextElement; in nextRange() 208 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 252 if (codepoint != IS_STRING) { in getString() 253 return UTF16.valueOf(codepoint); in getString()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | UnicodeSetIterator.java | 65 public int codepoint; field in UnicodeSetIterator 139 codepoint = codepointEnd = nextElement++; in next() 144 codepoint = codepointEnd = nextElement++; in next() 153 codepoint = IS_STRING; // signal that value is actually a string in next() 183 codepoint = nextElement; in nextRange() 190 codepoint = nextElement; in nextRange() 200 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 241 if (codepoint != IS_STRING) { in getString() 242 return UTF16.valueOf(codepoint); in getString()
|
/external/harfbuzz_ng/test/api/ |
D | test-draw.c | 452 hb_codepoint_t codepoint = 1610; /* ي */ in test_hb_draw_font_kit_glyphs_tests() local 453 hb_buffer_add_codepoints (buffer, &codepoint, 1, 0, -1); in test_hb_draw_font_kit_glyphs_tests() 456 codepoint = hb_buffer_get_glyph_infos (buffer, NULL)[0].codepoint; in test_hb_draw_font_kit_glyphs_tests() 461 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_glyphs_tests() 545 hb_codepoint_t codepoint = 24396; /* 彌 */ in test_hb_draw_font_kit_variations_tests() local 546 hb_buffer_add_codepoints (buffer, &codepoint, 1, 0, -1); in test_hb_draw_font_kit_variations_tests() 549 codepoint = hb_buffer_get_glyph_infos (buffer, NULL)[0].codepoint; in test_hb_draw_font_kit_variations_tests() 553 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests() 590 hb_codepoint_t codepoint = 24396; /* 彌 */ in test_hb_draw_font_kit_variations_tests() local 591 hb_buffer_add_codepoints (buffer, &codepoint, 1, 0, -1); in test_hb_draw_font_kit_variations_tests() [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
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 …]
|
D | UnicodeMapIterator.java | 62 public int codepoint; field in UnicodeMapIterator 123 codepoint = codepointEnd = nextElement++; in next() 130 codepoint = codepointEnd = nextElement++; in next() 137 codepoint = IS_STRING; // signal that value is actually a string in next() 165 codepoint = nextElement; in nextRange() 174 codepoint = nextElement; in nextRange() 182 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 225 if (codepoint != IS_STRING) { in getString() 226 return UTF16.valueOf(codepoint); in getString()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
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 …]
|
D | UnicodeMapIterator.java | 65 public int codepoint; field in UnicodeMapIterator 126 codepoint = codepointEnd = nextElement++; in next() 133 codepoint = codepointEnd = nextElement++; in next() 140 codepoint = IS_STRING; // signal that value is actually a string in next() 168 codepoint = nextElement; in nextRange() 177 codepoint = nextElement; in nextRange() 185 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 228 if (codepoint != IS_STRING) { in getString() 229 return UTF16.valueOf(codepoint); in getString()
|
/external/libtextclassifier/native/utils/ |
D | tokenizer-utils.cc | 38 return TokenizeWithFilter(text, [&](char32 codepoint) { in TokenizeOnDelimiters() argument 39 bool to_split = delimiters.find(codepoint) != delimiters.end(); in TokenizeOnDelimiters() 41 (create_tokens_for_non_space_delimiters) ? codepoint != ' ' : false; in TokenizeOnDelimiters() 48 return TokenizeWithFilter(text, [](char32 codepoint) { in TokenizeOnWhiteSpacePunctuationAndChineseLetter() argument 49 bool is_whitespace = IsWhitespace(codepoint); in TokenizeOnWhiteSpacePunctuationAndChineseLetter() 51 is_whitespace || IsPunctuation(codepoint) || IsChineseLetter(codepoint); in TokenizeOnWhiteSpacePunctuationAndChineseLetter()
|
/external/python/cpython2/Lib/ |
D | htmlentitydefs.py | 266 for (name, codepoint) in name2codepoint.iteritems(): 267 codepoint2name[codepoint] = name 268 if codepoint <= 0xff: 269 entitydefs[name] = chr(codepoint) 271 entitydefs[name] = '&#%d;' % codepoint 273 del name, codepoint
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/props/ |
D | UnicodeLabel.java | 14 public abstract String getValue(int codepoint, boolean isShort); in getValue() argument 17 public String transform(Integer codepoint) { in transform() argument 18 return getValue(codepoint, true); in transform() 41 public String getValue(int codepoint, boolean isShort) { in getValue() argument 42 if (isShort) return Utility.hex(codepoint,4); in getValue() 43 return "U+" + Utility.hex(codepoint,4); in getValue() 54 public String getValue(int codepoint, boolean isShort) { in getValue() argument
|