/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetCompoundText.java | 96 private static boolean isASCIIRange(int codepoint) { in isASCIIRange() argument 97 if ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || in isASCIIRange() 98 … (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) { in isASCIIRange() 104 private static boolean isIBM915(int codepoint) { in isIBM915() argument 105 if ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116)) { in isIBM915() 111 private static boolean isIBM916(int codepoint) { in isIBM916() argument 112 …if ((codepoint >= 0x05D0 && codepoint <= 0x05EA) || (codepoint == 0x2017) || (codepoint == 0x203E)… in isIBM916() 118 private static boolean isCompoundS3(int codepoint) { in isCompoundS3() argument 119 …if ((codepoint == 0x060C) || (codepoint == 0x061B) || (codepoint == 0x061F) || (codepoint >= 0x062… in isCompoundS3() 120 …(codepoint >= 0x0640 && codepoint <= 0x0652) || (codepoint >= 0x0660 && codepoint <= 0x066D) || (c… in isCompoundS3() [all …]
|
/external/icu/icu4c/source/common/ |
D | ucnv_ct.c | 102 #define isASCIIRange(codepoint) \ argument 103 ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || \ 104 … (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) 106 #define isIBM915(codepoint) \ argument 107 ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116)) 109 #define isIBM916(codepoint) \ argument 110 … ((codepoint >= 0x05D0 && codepoint <= 0x05EA) || (codepoint == 0x2017) || (codepoint == 0x203E)) 112 #define isCompoundS3(codepoint) \ argument 113 …((codepoint == 0x060C) || (codepoint == 0x061B) || (codepoint == 0x061F) || (codepoint >= 0x0621 &… 114 …(codepoint >= 0x0640 && codepoint <= 0x0652) || (codepoint >= 0x0660 && codepoint <= 0x066D) || (c… [all …]
|
D | usetiter.cpp | 49 codepoint = codepointEnd = nextElement++; in next() 55 codepoint = codepointEnd = nextElement++; in next() 61 codepoint = (UChar32)IS_STRING; // signal that value is actually a string in next() 81 codepoint = nextElement; in nextRange() 88 codepoint = nextElement; in nextRange() 94 codepoint = (UChar32)IS_STRING; // signal that value is actually a string in nextRange() 136 if (string==NULL && codepoint!=(UChar32)IS_STRING) { in getString() 141 cpString->setTo((UChar32)codepoint); in getString()
|
/external/libvterm/src/ |
D | utf8.h | 5 static inline unsigned int utf8_seqlen(long codepoint) in utf8_seqlen() argument 7 if(codepoint < 0x0000080) return 1; in utf8_seqlen() 8 if(codepoint < 0x0000800) return 2; in utf8_seqlen() 9 if(codepoint < 0x0010000) return 3; in utf8_seqlen() 10 if(codepoint < 0x0200000) return 4; in utf8_seqlen() 11 if(codepoint < 0x4000000) return 5; in utf8_seqlen() 16 static int fill_utf8(long codepoint, char *str) in fill_utf8() argument 18 int nbytes = utf8_seqlen(codepoint); in fill_utf8() 24 str[b] = 0x80 | (codepoint & 0x3f); in fill_utf8() 25 codepoint >>= 6; in fill_utf8() [all …]
|
D | unicode.c | 324 INTERNAL int vterm_unicode_width(int codepoint) in vterm_unicode_width() argument 326 return mk_wcwidth(codepoint); in vterm_unicode_width() 329 INTERNAL int vterm_unicode_is_combining(int codepoint) in vterm_unicode_is_combining() argument 331 return bisearch(codepoint, combining, sizeof(combining) / sizeof(struct interval) - 1); in vterm_unicode_is_combining()
|
/external/harfbuzz_ng/src/ |
D | hb-ot-cmap-table.hh | 45 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 47 hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0; in get_glyph() 71 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 95 if (codepoint < startCount[mid]) in get_glyph() 97 else if (codepoint > endCount[mid]) in get_glyph() 111 gid = codepoint + idDelta[i]; in get_glyph() 115 unsigned int index = rangeOffset / 2 + (codepoint - startCount[i]) + i - segCount; in get_glyph() 179 int cmp (hb_codepoint_t codepoint) const in cmp() 181 if (codepoint < startCharCode) return -1; in cmp() 182 if (codepoint > endCharCode) return +1; in cmp() [all …]
|
D | hb-set.cc | 201 hb_codepoint_t codepoint) in hb_set_has() argument 203 return set->has (codepoint); in hb_set_has() 217 hb_codepoint_t codepoint) in hb_set_add() argument 219 set->add (codepoint); in hb_set_add() 251 hb_codepoint_t codepoint) in hb_set_del() argument 253 set->del (codepoint); in hb_set_del() 447 hb_codepoint_t *codepoint) in hb_set_next() argument 449 return set->next (codepoint); in hb_set_next()
|
D | hb-ot-shape-normalize.cc | 106 font->get_glyph (info.codepoint, 0, &info.glyph_index()); in set_glyph() 203 if (shortest && c->font->get_glyph (buffer->cur().codepoint, 0, &glyph)) in decompose_current_character() 205 else if (decompose (c, shortest, buffer->cur().codepoint)) in decompose_current_character() 207 else if (!shortest && c->font->get_glyph (buffer->cur().codepoint, 0, &glyph)) in decompose_current_character() 209 else if (decompose_compatibility (c, buffer->cur().codepoint)) in decompose_current_character() 222 if (unlikely (buffer->unicode->is_variation_selector (buffer->cur(+1).codepoint))) { in handle_variation_selector_cluster() 224 …if (font->get_glyph (buffer->cur().codepoint, buffer->cur(+1).codepoint, &buffer->cur().glyph_inde… in handle_variation_selector_cluster() 226 buffer->replace_glyphs (2, 1, &buffer->cur().codepoint); in handle_variation_selector_cluster() 237 … (buffer->idx < end && unlikely (buffer->unicode->is_variation_selector (buffer->cur().codepoint))) in handle_variation_selector_cluster() 258 if (unlikely (buffer->unicode->is_variation_selector (buffer->info[i].codepoint))) { in decompose_multi_char_cluster() [all …]
|
D | hb-fallback-shape.cc | 120 if (has_space && unicode->is_default_ignorable (info[i].codepoint)) { in _hb_fallback_shape() 121 info[i].codepoint = space; in _hb_fallback_shape() 126 font->get_glyph (info[i].codepoint, 0, &info[i].codepoint); in _hb_fallback_shape() 127 font->get_glyph_advance_for_direction (info[i].codepoint, in _hb_fallback_shape() 131 font->subtract_glyph_origin_for_direction (info[i].codepoint, in _hb_fallback_shape()
|
D | hb-ot-shape-complex-thai.cc | 230 thai_mark_type_t mt = get_mark_type (info[i].codepoint); in do_thai_pua_shaping() 233 thai_consonant_type_t ct = get_consonant_type (info[i].codepoint); in do_thai_pua_shaping() 249 info[base].codepoint = thai_pua_shape (info[base].codepoint, action, font); in do_thai_pua_shaping() 251 info[i].codepoint = thai_pua_shape (info[i].codepoint, action, font); in do_thai_pua_shaping() 320 hb_codepoint_t u = buffer->cur().codepoint; in preprocess_text_thai() 339 while (start > 0 && IS_TONE_MARK (buffer->out_info[start - 1].codepoint)) in preprocess_text_thai()
|
D | hb-set.h | 80 hb_codepoint_t codepoint); 86 hb_codepoint_t codepoint); 95 hb_codepoint_t codepoint); 143 hb_codepoint_t *codepoint);
|
D | hb-ot-shape.cc | 248 dottedcircle.codepoint = 0x25CCu; in hb_insert_dotted_circle() 307 hb_codepoint_t codepoint = unicode->mirroring (info[i].codepoint); in hb_ot_mirror_chars() local 308 if (likely (codepoint == info[i].codepoint)) in hb_ot_mirror_chars() 311 info[i].codepoint = codepoint; in hb_ot_mirror_chars() 328 if (info[i].codepoint == 0x2044u) /* FRACTION SLASH */ in hb_ot_shape_setup_masks_fraction() 390 info[i].codepoint = info[i].glyph_index(); in hb_ot_map_glyphs_fast() 524 c->font->get_glyph_advance_for_direction (info[i].codepoint, in hb_ot_position_default() 528 c->font->subtract_glyph_origin_for_direction (info[i].codepoint, in hb_ot_position_default() 581 c->font->add_glyph_origin_for_direction (info[i].codepoint, in hb_ot_position_complex() 590 c->font->subtract_glyph_origin_for_direction (info[i].codepoint, in hb_ot_position_complex() [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()
|
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 …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UnicodeSetIterator.java | 55 public int codepoint; field in UnicodeSetIterator 117 codepoint = codepointEnd = nextElement++; in next() 122 codepoint = codepointEnd = nextElement++; in next() 131 codepoint = IS_STRING; // signal that value is actually a string in next() 162 codepoint = nextElement; in nextRange() 169 codepoint = nextElement; in nextRange() 179 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/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | UnicodeMapIterator.java | 58 public int codepoint; field in UnicodeMapIterator 119 codepoint = codepointEnd = nextElement++; in next() 126 codepoint = codepointEnd = nextElement++; in next() 133 codepoint = IS_STRING; // signal that value is actually a string in next() 161 codepoint = nextElement; in nextRange() 170 codepoint = nextElement; in nextRange() 178 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 221 if (codepoint != IS_STRING) { in getString() 222 return UTF16.valueOf(codepoint); in getString()
|
D | UnicodeMap.java | 179 private void _checkFind(int codepoint, int value) { in _checkFind() argument 180 int other = __findIndex(codepoint); in _checkFind() 183 + "\t" + Utility.hex(codepoint) + ": " + value in _checkFind() 188 private int __findIndex(int codepoint) { in __findIndex() argument 190 if (transitions[i] <= codepoint) return i; in __findIndex() 262 private UnicodeMap _put(int codepoint, T value) { in _put() argument 267 if (transitions[lastIndex] <= codepoint in _put() 268 && codepoint < transitions[lastIndex+1]) { in _put() 271 baseIndex = _findIndex(codepoint); in _put() 280 … throw new UnsupportedOperationException("Attempt to reset value for " + Utility.hex(codepoint) in _put() [all …]
|
D | UnicodeLabel.java | 14 public abstract String getValue(int codepoint, boolean isShort); in getValue() argument 16 public String transform(Integer codepoint) { in transform() argument 17 return getValue(codepoint, true); in transform() 39 public String getValue(int codepoint, boolean isShort) { in getValue() argument 40 if (isShort) return Utility.hex(codepoint,4); in getValue() 41 return "U+" + Utility.hex(codepoint,4); in getValue() 51 public String getValue(int codepoint, boolean isShort) { in getValue() argument
|
D | UnicodePropertySource.java | 36 abstract public String getPropertyValue(int codepoint); in getPropertyValue() argument 65 public static final boolean equals(int codepoint, String other) { in equals() argument 67 return codepoint == other.charAt(0); in equals() 69 return other.equals(UTF16.valueOf(codepoint)); in equals() 76 String value = filter.remap(getPropertyValue(matchIterator.codepoint)); in getPropertySet() 77 if (equals(matchIterator.codepoint, value) == charEqualsValue) { in getPropertySet() 78 result.add(matchIterator.codepoint); in getPropertySet() 88 String value = filter.remap(getPropertyValue(matchIterator.codepoint)); in getPropertySet() 90 result.add(matchIterator.codepoint); in getPropertySet() 100 String value = filter.remap(getPropertyValue(matchIterator.codepoint)); in getPropertySet() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 457 char codepoint; in TestUnicodeChar() local 464 for (codepoint = 1; codepoint < 0xFFFE;) { in TestUnicodeChar() 466 while (codepoint % 0xFF != 0) { in TestUnicodeChar() 467 if (UCharacter.isDefined(codepoint)) { in TestUnicodeChar() 468 source.append(codepoint); in TestUnicodeChar() 470 codepoint ++; in TestUnicodeChar() 473 if (UCharacter.isDefined(codepoint)) { in TestUnicodeChar() 474 source.append(codepoint); in TestUnicodeChar() 477 if (codepoint != 0xFFFF) { in TestUnicodeChar() 478 codepoint ++; in TestUnicodeChar() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/ |
D | CharSequences.java | 99 public static final boolean equals(int codepoint, CharSequence other) { in equals() argument 104 case 1: return codepoint == other.charAt(0); in equals() 105 case 2: return codepoint > 0xFFFF && codepoint == Character.codePointAt(other, 0); in equals() 115 public static final boolean equals(CharSequence other, int codepoint) { in equals() argument 116 return equals(codepoint, other); in equals() 174 public static int compare(int codepoint, CharSequence a) { in compare() argument 175 return -compare(a, codepoint); in compare()
|
/external/icu/icu4c/source/tools/gensprep/ |
D | store.c | 242 int32_t codepoint = 0; in storeMappingData() local 262 codepoint = element->key.integer; in storeMappingData() 291 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL); in storeMappingData() 301 … fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint); in storeMappingData() 307 if(!utrie_set32(sprepTrie,codepoint,trieWord)){ in storeMappingData() 354 storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, in storeMapping() argument 371 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL); in storeMapping() 381 fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint); in storeMapping() 396 if(!utrie_set32(sprepTrie,codepoint,trieWord)){ in storeMapping() 410 int16_t delta = (int16_t)((int32_t)codepoint - (int16_t) mapping[0]); in storeMapping() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | citertst.c | 222 UChar codepoint; in TestUnicodeChar() local 232 for (codepoint = 1; codepoint < 0xFFFE;) in TestUnicodeChar() 236 while (codepoint % 0xFF != 0) in TestUnicodeChar() 238 if (u_isdefined(codepoint)) in TestUnicodeChar() 239 *(test ++) = codepoint; in TestUnicodeChar() 240 codepoint ++; in TestUnicodeChar() 243 if (u_isdefined(codepoint)) in TestUnicodeChar() 244 *(test ++) = codepoint; in TestUnicodeChar() 246 if (codepoint != 0xFFFF) in TestUnicodeChar() 247 codepoint ++; in TestUnicodeChar() [all …]
|
/external/harfbuzz_ng/test/api/ |
D | test-buffer.c | 213 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents() 221 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents() 225 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents() 232 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents() 236 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents() 245 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents() 249 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents() 261 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+j]); in test_buffer_contents() 266 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents() 276 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents() [all …]
|