/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 …]
|
/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() 85 …static inline bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t *glyp… in get_glyph_func() 97 if (codepoint < startCount[mid]) in get_glyph_func() 99 else if (codepoint > endCount[mid]) in get_glyph_func() 113 gid = codepoint + thiz->idDelta[i]; in get_glyph_func() 117 unsigned int index = rangeOffset / 2 + (codepoint - thiz->startCount[i]) + i - thiz->segCount; in get_glyph_func() 139 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 143 return accel.get_glyph_func (&accel, codepoint, glyph); in get_glyph() 197 int cmp (hb_codepoint_t codepoint) const 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-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_nominal_glyph (info[i].codepoint, &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()
|
/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/android_icu4j/src/main/java/android/icu/text/ |
D | UnicodeSetIterator.java | 53 public int codepoint; field in UnicodeSetIterator 110 codepoint = codepointEnd = nextElement++; in next() 115 codepoint = codepointEnd = nextElement++; in next() 124 codepoint = IS_STRING; // signal that value is actually a string in next() 154 codepoint = nextElement; in nextRange() 161 codepoint = nextElement; in nextRange() 171 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 214 if (codepoint != IS_STRING) { in getString() 215 return UTF16.valueOf(codepoint); in getString()
|
/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 | 180 private void _checkFind(int codepoint, int value) { in _checkFind() argument 181 int other = __findIndex(codepoint); in _checkFind() 184 + "\t" + Utility.hex(codepoint) + ": " + value in _checkFind() 189 private int __findIndex(int codepoint) { in __findIndex() argument 191 if (transitions[i] <= codepoint) return i; in __findIndex() 263 private UnicodeMap _put(int codepoint, T value) { in _put() argument 268 if (transitions[lastIndex] <= codepoint in _put() 269 && codepoint < transitions[lastIndex+1]) { in _put() 272 baseIndex = _findIndex(codepoint); in _put() 281 … 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/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | UnicodeMapIterator.java | 59 public int codepoint; field in UnicodeMapIterator 120 codepoint = codepointEnd = nextElement++; in next() 127 codepoint = codepointEnd = nextElement++; in next() 134 codepoint = IS_STRING; // signal that value is actually a string in next() 162 codepoint = nextElement; in nextRange() 171 codepoint = nextElement; in nextRange() 179 codepoint = IS_STRING; // signal that value is actually a string in nextRange() 222 if (codepoint != IS_STRING) { in getString() 223 return UTF16.valueOf(codepoint); in getString()
|
D | UnicodeMap.java | 181 private void _checkFind(int codepoint, int value) { in _checkFind() argument 182 int other = __findIndex(codepoint); in _checkFind() 185 + "\t" + Utility.hex(codepoint) + ": " + value in _checkFind() 190 private int __findIndex(int codepoint) { in __findIndex() argument 192 if (transitions[i] <= codepoint) return i; in __findIndex() 264 private UnicodeMap _put(int codepoint, T value) { in _put() argument 269 if (transitions[lastIndex] <= codepoint in _put() 270 && codepoint < transitions[lastIndex+1]) { in _put() 273 baseIndex = _findIndex(codepoint); in _put() 282 … throw new UnsupportedOperationException("Attempt to reset value for " + Utility.hex(codepoint) in _put() [all …]
|
D | UnicodeLabel.java | 15 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() 40 public String getValue(int codepoint, boolean isShort) { in getValue() argument 41 if (isShort) return Utility.hex(codepoint,4); in getValue() 42 return "U+" + Utility.hex(codepoint,4); in getValue() 52 public String getValue(int codepoint, boolean isShort) { in getValue() argument
|
D | UnicodePropertySource.java | 37 abstract public String getPropertyValue(int codepoint); in getPropertyValue() argument 66 public static final boolean equals(int codepoint, String other) { in equals() argument 68 return codepoint == other.charAt(0); in equals() 70 return other.equals(UTF16.valueOf(codepoint)); in equals() 77 String value = filter.remap(getPropertyValue(matchIterator.codepoint)); in getPropertySet() 78 if (equals(matchIterator.codepoint, value) == charEqualsValue) { in getPropertySet() 79 result.add(matchIterator.codepoint); in getPropertySet() 89 String value = filter.remap(getPropertyValue(matchIterator.codepoint)); in getPropertySet() 91 result.add(matchIterator.codepoint); in getPropertySet() 101 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/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 461 char codepoint; in TestUnicodeChar() local 468 for (codepoint = 1; codepoint < 0xFFFE;) { in TestUnicodeChar() 470 while (codepoint % 0xFF != 0) { in TestUnicodeChar() 471 if (UCharacter.isDefined(codepoint)) { in TestUnicodeChar() 472 source.append(codepoint); in TestUnicodeChar() 474 codepoint ++; in TestUnicodeChar() 477 if (UCharacter.isDefined(codepoint)) { in TestUnicodeChar() 478 source.append(codepoint); in TestUnicodeChar() 481 if (codepoint != 0xFFFF) { in TestUnicodeChar() 482 codepoint ++; in TestUnicodeChar() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/cldr/ |
D | CheckSystemFonts.java | 174 String codes = "U+" + Utility.hex(it.codepoint); in showFullCoverage() 175 String names = UCharacter.getExtendedName(it.codepoint); in showFullCoverage() 176 if (it.codepointEnd != it.codepoint) { in showFullCoverage() 180 out.println(codes + "\t" + toShortName.get(map.get(it.codepoint)) + "\t" + names); in showFullCoverage() 188 …missingMap.put(it.codepoint, UScript.getName(UScript.getScript(it.codepoint)) + "-" + getShortAge(… in showFullCoverage() 196 String codes = "U+" + Utility.hex(it.codepoint); in showFullCoverage() 197 String names = UCharacter.getExtendedName(it.codepoint); in showFullCoverage() 198 if (it.codepointEnd != it.codepoint) { in showFullCoverage() 348 int codepoint = sample.codePointAt(0); in showInvisibles() local 350 + "\t" + showChar(codepoint, false) in showInvisibles() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/lang/ |
D | CharSequences.java | 101 public static final boolean equals(int codepoint, CharSequence other) { in equals() argument 106 case 1: return codepoint == other.charAt(0); in equals() 107 case 2: return codepoint > 0xFFFF && codepoint == Character.codePointAt(other, 0); in equals() 117 public static final boolean equals(CharSequence other, int codepoint) { in equals() argument 118 return equals(codepoint, other); in equals() 176 public static int compare(int codepoint, CharSequence a) { in compare() argument 177 return -compare(a, codepoint); in compare()
|
/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()
|