/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Trie2_16.java | 68 public final int get(int codePoint) { in get() argument 72 if (codePoint >= 0) { in get() 73 if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { in get() 77 ix = index[codePoint >> UTRIE2_SHIFT_2]; in get() 78 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 82 if (codePoint <= 0xffff) { in get() 89 ix = index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; in get() 90 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 94 if (codePoint < highStart) { in get() 96 … ix = (UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> UTRIE2_SHIFT_1); in get() [all …]
|
D | Trie2_32.java | 67 public final int get(int codePoint) { in get() argument 71 if (codePoint >= 0) { in get() 72 if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { in get() 76 ix = index[codePoint >> UTRIE2_SHIFT_2]; in get() 77 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 81 if (codePoint <= 0xffff) { in get() 88 ix = index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; in get() 89 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 93 if (codePoint < highStart) { in get() 95 … ix = (UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> UTRIE2_SHIFT_1); in get() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Trie2_32.java | 65 public final int get(int codePoint) { in get() argument 69 if (codePoint >= 0) { in get() 70 if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { in get() 74 ix = index[codePoint >> UTRIE2_SHIFT_2]; in get() 75 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 79 if (codePoint <= 0xffff) { in get() 86 ix = index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; in get() 87 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 91 if (codePoint < highStart) { in get() 93 … ix = (UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> UTRIE2_SHIFT_1); in get() [all …]
|
D | Trie2_16.java | 66 public final int get(int codePoint) { in get() argument 70 if (codePoint >= 0) { in get() 71 if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { in get() 75 ix = index[codePoint >> UTRIE2_SHIFT_2]; in get() 76 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 80 if (codePoint <= 0xffff) { in get() 87 ix = index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; in get() 88 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get() 92 if (codePoint < highStart) { in get() 94 … ix = (UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> UTRIE2_SHIFT_1); in get() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | ICUPropertyFactory.java | 56 public String _getValue(int codePoint) { in _getValue() argument 59 return getAge(codePoint); in _getValue() 61 return UTF16.valueOf(UCharacter.getMirror(codePoint)); in _getValue() 63 return UCharacter.foldCase(UTF16.valueOf(codePoint), true); in _getValue() 65 return UCharacter.getISOComment(codePoint); in _getValue() 67 return UCharacter.toLowerCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() 69 return UCharacter.getName(codePoint); in _getValue() 71 return UTF16.valueOf(UCharacter.foldCase(codePoint, true)); in _getValue() 73 return UTF16.valueOf(UCharacter.toLowerCase(codePoint)); in _getValue() 75 return UTF16.valueOf(UCharacter.toTitleCase(codePoint)); in _getValue() [all …]
|
D | UnicodePropertySource.java | 171 public String getPropertyValue(int codePoint) { in getPropertyValue() argument 173 int enumValue = UCharacter.getIntPropertyValue(codePoint, propEnum); in getPropertyValue() 176 return Double.toString(UCharacter.getUnicodeNumericValue(codePoint)); in getPropertyValue() 179 case UProperty.AGE: return UCharacter.getAge(codePoint).toString(); in getPropertyValue() 180 … case UProperty.BIDI_MIRRORING_GLYPH: return UTF16.valueOf(UCharacter.getMirror(codePoint)); in getPropertyValue() 181 … case UProperty.CASE_FOLDING: return UCharacter.foldCase(UTF16.valueOf(codePoint),true); in getPropertyValue() 182 case UProperty.ISO_COMMENT: return UCharacter.getISOComment(codePoint); in getPropertyValue() 183 …Property.LOWERCASE_MAPPING: return UCharacter.toLowerCase(Locale.ENGLISH,UTF16.valueOf(codePoint)); in getPropertyValue() 184 case UProperty.NAME: return UCharacter.getName(codePoint); in getPropertyValue() 185 … case UProperty.SIMPLE_CASE_FOLDING: return UTF16.valueOf(UCharacter.foldCase(codePoint,true)); in getPropertyValue() [all …]
|
D | PrettyPrinter.java | 238 PrettyPrinter appendQuoted(int codePoint) { in appendQuoted() argument 239 if (toQuote.contains(codePoint)) { in appendQuoted() 241 target.append(quoter.transform(UTF16.valueOf(codePoint))); in appendQuoted() 244 if (codePoint > 0xFFFF) { in appendQuoted() 246 target.append(Utility.hex(codePoint,8)); in appendQuoted() 249 target.append(Utility.hex(codePoint,4)); in appendQuoted() 253 switch (codePoint) { in appendQuoted() 268 if (PATTERN_WHITESPACE.contains(codePoint)) { in appendQuoted() 273 UTF16.append(target, codePoint); in appendQuoted()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | ICUPropertyFactory.java | 55 public String _getValue(int codePoint) { in _getValue() argument 58 return getAge(codePoint); in _getValue() 60 return UTF16.valueOf(UCharacter.getMirror(codePoint)); in _getValue() 62 return UCharacter.foldCase(UTF16.valueOf(codePoint), true); in _getValue() 64 return UCharacter.getISOComment(codePoint); in _getValue() 66 return UCharacter.toLowerCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() 68 return UCharacter.getName(codePoint); in _getValue() 70 return UTF16.valueOf(UCharacter.foldCase(codePoint, true)); in _getValue() 72 return UTF16.valueOf(UCharacter.toLowerCase(codePoint)); in _getValue() 74 return UTF16.valueOf(UCharacter.toTitleCase(codePoint)); in _getValue() [all …]
|
/external/icu/icu4c/source/samples/props/ |
D | props.cpp | 26 printProps(UChar32 codePoint) { in printProps() argument 32 u_charName(codePoint, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode); in printProps() 35 printf("U+%04lx\t%s\n", codePoint, buffer); in printProps() 38 printf(" general category (numeric enum value): %u\n", u_charType(codePoint)); in printProps() 41 printf(" is lowercase: %d uppercase: U+%04lx\n", u_islower(codePoint), u_toupper(codePoint)); in printProps() 43 …tf(" is digit: %d decimal digit value: %d\n", u_isdigit(codePoint), u_charDigitValue(codePoint)); in printProps() 45 printf(" BiDi directional category (numeric enum value): %u\n", u_charDirection(codePoint)); in printProps()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | UrlComponentEncodingTester.java | 185 for (int codePoint : codePoints) { in override() 186 encodings.put(codePoint, encoding); in override() 210 int codePoint = entry.getKey(); in test() local 211 testEncodeAndDecode(codePoint, component); in test() 214 testParseOriginal(codePoint, encoding, component); in test() 215 testParseAlreadyEncoded(codePoint, encoding, component); in test() 216 testToUrl(codePoint, encoding, component); in test() 217 testFromUrl(codePoint, encoding, component); in test() 219 if (codePoint != '%') { in test() 221 Encoding.IDENTITY.encode(codePoint)) != -1; in test() [all …]
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
D | EncodingInfo.java | 189 int codePoint = Encodings.toCodePoint(ch1); in isInEncoding() local 190 if (codePoint < m_explFirst) { in isInEncoding() 201 codePoint); in isInEncoding() 203 } else if (m_explLast < codePoint) { in isInEncoding() 214 codePoint); in isInEncoding() 218 final int idx = codePoint - m_explFirst; in isInEncoding() 236 int codePoint = Encodings.toCodePoint(high,low); in isInEncoding() local 237 if (codePoint < m_explFirst) { in isInEncoding() 248 codePoint); in isInEncoding() 250 } else if (m_explLast < codePoint) { in isInEncoding() [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | UnicodePropertySource.java | 170 public String getPropertyValue(int codePoint) { in getPropertyValue() argument 172 int enumValue = UCharacter.getIntPropertyValue(codePoint, propEnum); in getPropertyValue() 175 return Double.toString(UCharacter.getUnicodeNumericValue(codePoint)); in getPropertyValue() 178 case UProperty.AGE: return UCharacter.getAge(codePoint).toString(); in getPropertyValue() 179 … case UProperty.BIDI_MIRRORING_GLYPH: return UTF16.valueOf(UCharacter.getMirror(codePoint)); in getPropertyValue() 180 … case UProperty.CASE_FOLDING: return UCharacter.foldCase(UTF16.valueOf(codePoint),true); in getPropertyValue() 181 case UProperty.ISO_COMMENT: return UCharacter.getISOComment(codePoint); in getPropertyValue() 182 …Property.LOWERCASE_MAPPING: return UCharacter.toLowerCase(Locale.ENGLISH,UTF16.valueOf(codePoint)); in getPropertyValue() 183 case UProperty.NAME: return UCharacter.getName(codePoint); in getPropertyValue() 184 … case UProperty.SIMPLE_CASE_FOLDING: return UTF16.valueOf(UCharacter.foldCase(codePoint,true)); in getPropertyValue() [all …]
|
D | PrettyPrinter.java | 237 PrettyPrinter appendQuoted(int codePoint) { in appendQuoted() argument 238 if (toQuote.contains(codePoint)) { in appendQuoted() 240 target.append(quoter.transform(UTF16.valueOf(codePoint))); in appendQuoted() 243 if (codePoint > 0xFFFF) { in appendQuoted() 245 target.append(Utility.hex(codePoint,8)); in appendQuoted() 248 target.append(Utility.hex(codePoint,4)); in appendQuoted() 252 switch (codePoint) { in appendQuoted() 267 if (PATTERN_WHITESPACE.contains(codePoint)) { in appendQuoted() 272 UTF16.append(target, codePoint); in appendQuoted()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterThreadTest.java | 53 int codePoint = 47 + t; in TestUCharactersGetName() local 54 String correctName = UCharacter.getName(codePoint); in TestUCharactersGetName() 55 GetNameThread thread = new GetNameThread(codePoint, correctName); in TestUCharactersGetName() 70 private final int codePoint; field in UCharacterThreadTest.GetNameThread 74 GetNameThread(int codePoint, String correctName) { in GetNameThread() argument 75 this.codePoint = codePoint; in GetNameThread() 81 actualName = UCharacter.getName(codePoint); in run()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UCharacterThreadTest.java | 57 int codePoint = 47 + t; in TestUCharactersGetName() local 58 String correctName = UCharacter.getName(codePoint); in TestUCharactersGetName() 59 GetNameThread thread = new GetNameThread(codePoint, correctName); in TestUCharactersGetName() 74 private final int codePoint; field in UCharacterThreadTest.GetNameThread 78 GetNameThread(int codePoint, String correctName) { in GetNameThread() argument 79 this.codePoint = codePoint; in GetNameThread() 85 actualName = UCharacter.getName(codePoint); in run()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | Buffer.java | 634 int codePoint; 640 codePoint = b0 & 0x7f; 646 codePoint = b0 & 0x1f; 652 codePoint = b0 & 0x0f; 658 codePoint = b0 & 0x07; 680 codePoint <<= 6; 681 codePoint |= b & 0x3f; 690 if (codePoint > 0x10ffff) { 694 if (codePoint >= 0xd800 && codePoint <= 0xdfff) { 698 if (codePoint < min) { [all …]
|
/external/icu/icu4c/source/common/ |
D | ucnv_err.c | 104 UChar32 codePoint, in UCNV_FROM_U_CALLBACK_STOP() argument 108 if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_STOP() 140 UChar32 codePoint, in UCNV_FROM_U_CALLBACK_SKIP() argument 146 if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_SKIP() 168 UChar32 codePoint, in UCNV_FROM_U_CALLBACK_SUBSTITUTE() argument 174 if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_SUBSTITUTE() 202 UChar32 codePoint, in UCNV_FROM_U_CALLBACK_ESCAPE() argument 223 else if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_ESCAPE() 271 …_itou (valueString + valueStringLength, VALUE_STRING_LENGTH - valueStringLength, codePoint, 16, 8); in UCNV_FROM_U_CALLBACK_ESCAPE() 285 …_itou (valueString + valueStringLength, VALUE_STRING_LENGTH - valueStringLength, codePoint, 10, 0); in UCNV_FROM_U_CALLBACK_ESCAPE() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | HttpUrl.java | 1597 int codePoint; 1598 for (int i = pos; i < limit; i += Character.charCount(codePoint)) { 1599 codePoint = encoded.codePointAt(i); 1600 if (codePoint == '%' && i + 2 < limit) { 1608 } else if (codePoint == '+' && plusIsSpace) { 1612 out.writeUtf8CodePoint(codePoint); 1648 int codePoint; 1649 for (int i = pos; i < limit; i += Character.charCount(codePoint)) { 1650 codePoint = input.codePointAt(i); 1651 if (codePoint < 0x20 [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/lang/ |
D | CharSequences.java | 132 public static int compare(CharSequence string, int codePoint) { in compare() argument 133 if (codePoint < Character.MIN_CODE_POINT || codePoint > Character.MAX_CODE_POINT) { in compare() 141 int offset = codePoint - Character.MIN_SUPPLEMENTARY_CODE_POINT; in compare() 144 int result = firstChar - codePoint; in compare() 263 public static int indexOf(CharSequence s, int codePoint) { in indexOf() argument 267 if (cp == codePoint) { in indexOf()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/ |
D | CharSequences.java | 130 public static int compare(CharSequence string, int codePoint) { in compare() argument 131 if (codePoint < Character.MIN_CODE_POINT || codePoint > Character.MAX_CODE_POINT) { in compare() 139 int offset = codePoint - Character.MIN_SUPPLEMENTARY_CODE_POINT; in compare() 142 int result = firstChar - codePoint; in compare() 261 public static int indexOf(CharSequence s, int codePoint) { in indexOf() argument 265 if (cp == codePoint) { in indexOf()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Strings.java | 85 …int codePoint = ((bytes[i] & 0x03) << 18) | ((bytes[i + 1] & 0x3F) << 12) | ((bytes[i + 2] & 0x3F)… in fromUTF8ByteArray() local 86 int U = codePoint - 0x10000; in fromUTF8ByteArray() 179 int codePoint = (((W1 & 0x03FF) << 10) | (W2 & 0x03FF)) + 0x10000; in toUTF8ByteArray() local 180 sOut.write(0xf0 | (codePoint >> 18)); in toUTF8ByteArray() 181 sOut.write(0x80 | ((codePoint >> 12) & 0x3F)); in toUTF8ByteArray() 182 sOut.write(0x80 | ((codePoint >> 6) & 0x3F)); in toUTF8ByteArray() 183 sOut.write(0x80 | (codePoint & 0x3F)); in toUTF8ByteArray()
|
/external/caliper/examples/src/main/java/examples/ |
D | Utf8Benchmark.java | 105 int codePoint; in setUp() local 108 codePoint = rnd.nextInt(maxCodePoint.value); in setUp() 109 } while (isSurrogate(codePoint)); in setUp() 110 sb.appendCodePoint(codePoint); in setUp()
|
/external/icu/icu4c/source/samples/ucnv/ |
D | flagcb.c | 34 UChar32 codePoint, in flagCB_fromU() argument 94 length, codePoint, reason, err); in flagCB_fromU() 118 codePoint, in flagCB_fromU() 176 UChar32 codePoint, in debugCB_fromU() argument 225 length, codePoint, reason, err); in debugCB_fromU() 251 codePoint, in debugCB_fromU()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | Utf8Benchmark.java | 106 int codePoint; in setUp() local 109 codePoint = rnd.nextInt(maxCodePoint.value); in setUp() 110 } while (isSurrogate(codePoint)); in setUp() 111 sb.appendCodePoint(codePoint); in setUp()
|
/external/icu/icu4c/source/common/unicode/ |
D | ucnv_err.h | 239 UChar32 codePoint, 290 UChar32 codePoint, 320 UChar32 codePoint, 376 UChar32 codePoint,
|