/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 …]
|
D | Trie2.java | 247 abstract public int get(int codePoint); in get() argument 503 public int codePoint; field in Trie2.CharSequenceValues 574 fResults.codePoint = c; in next() 592 fResults.codePoint = c; in previous()
|
/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/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 …]
|
D | BagFormatter.java | 311 public String getName(int codePoint) { in getName() argument 312 return getName("", codePoint, codePoint); in getName() 344 public String getValue(int codePoint, boolean isShort) { in getValue() argument 346 ? "U+" + Utility.hex(codePoint, 4) + " " in getValue() 348 String result = nameProp.getValue(codePoint); in getValue() 351 if (control.contains(codePoint)) { in getValue() 352 return "<control-" + Utility.hex(codePoint, 4) + ">"; in getValue() 354 if (private_use.contains(codePoint)) { in getValue() 355 return "<private-use-" + Utility.hex(codePoint, 4) + ">"; in getValue() 357 if (surrogate.contains(codePoint)) { in getValue() [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 …]
|
D | Encodings.java | 443 int codePoint = in toCodePoint() local 447 return codePoint; in toCodePoint() 459 int codePoint = ch; in toCodePoint() local 460 return codePoint; in toCodePoint()
|
D | ToTextStream.java | 298 final int codePoint = writeUTF16Surrogate(c, ch, i, end); in writeNormalizedChars() local 299 if (codePoint != 0) { in writeNormalizedChars() 302 final String integralValue = Integer.toString(codePoint); in writeNormalizedChars()
|
/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/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | HttpUrl.java | 781 int codePoint; in decode() local 782 for (int i = pos; i < limit; i += Character.charCount(codePoint)) { in decode() 783 codePoint = encoded.codePointAt(i); in decode() 784 if (codePoint == '%' && i + 2 < limit) { in decode() 793 out.writeUtf8CodePoint(codePoint); in decode() 816 int codePoint; in encode() local 817 for (int i = pos; i < limit; i += Character.charCount(codePoint)) { in encode() 818 codePoint = input.codePointAt(i); in encode() 819 if (codePoint < 0x20 in encode() 820 || codePoint >= 0x7f in encode() [all …]
|
/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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | UrlComponentEncodingTester.java | 175 for (int codePoint : codePoints) { in override() 176 encodings.put(codePoint, encoding); in override() 192 private void testParseAlreadyEncoded(int codePoint, Encoding encoding, Component component) { in testParseAlreadyEncoded() argument 193 String encoded = encoding.encode(codePoint); in testParseAlreadyEncoded() 197 assertEquals(String.format("Encoding %s %#x using %s", component, codePoint, encoding), in testParseAlreadyEncoded() 202 private void testParseOriginal(int codePoint, Encoding encoding, Component component) { in testParseOriginal() argument 203 String encoded = encoding.encode(codePoint); in testParseOriginal() 205 String identity = Encoding.IDENTITY.encode(codePoint); in testParseOriginal() 211 assertEquals(String.format("Encoding %s %#02x using %s", component, codePoint, encoding), in testParseOriginal() 216 private void testSerialize(int codePoint, Encoding encoding, Component component) { in testSerialize() argument [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/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 | 50 …int codePoint = ((bytes[i] & 0x03) << 18) | ((bytes[i+1] & 0x3F) << 12) | ((bytes[i+2] & 0x3F) << … in fromUTF8ByteArray() local 51 int U = codePoint - 0x10000; in fromUTF8ByteArray() 144 int codePoint = (((W1 & 0x03FF) << 10) | (W2 & 0x03FF)) + 0x10000; in toUTF8ByteArray() local 145 sOut.write(0xf0 | (codePoint >> 18)); in toUTF8ByteArray() 146 sOut.write(0x80 | ((codePoint >> 12) & 0x3F)); in toUTF8ByteArray() 147 sOut.write(0x80 | ((codePoint >> 6) & 0x3F)); in toUTF8ByteArray() 148 sOut.write(0x80 | (codePoint & 0x3F)); in toUTF8ByteArray()
|
/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()
|
D | flagcb.h | 36 UChar32 codePoint, 54 UChar32 codePoint,
|
/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,
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
D | CodedOutputByteBufferNano.java | 445 int codePoint = Character.toCodePoint(c, low); in encodeDirect() local 446 byteBuffer.put((byte) ((0xF << 4) | (codePoint >>> 18))); in encodeDirect() 447 byteBuffer.put((byte) (0x80 | (0x3F & (codePoint >>> 12)))); in encodeDirect() 448 byteBuffer.put((byte) (0x80 | (0x3F & (codePoint >>> 6)))); in encodeDirect() 449 byteBuffer.put((byte) (0x80 | (0x3F & codePoint))); in encodeDirect() 487 int codePoint = Character.toCodePoint(c, low); in encode() local 488 bytes[j++] = (byte) ((0xF << 4) | (codePoint >>> 18)); in encode() 489 bytes[j++] = (byte) (0x80 | (0x3F & (codePoint >>> 12))); in encode() 490 bytes[j++] = (byte) (0x80 | (0x3F & (codePoint >>> 6))); in encode() 491 bytes[j++] = (byte) (0x80 | (0x3F & codePoint)); in encode()
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | Utf8Test.java | 197 for (int codePoint : codePoints) { in assertCodePointEncoded() 198 buffer.writeUtf8CodePoint(codePoint); in assertCodePointEncoded() 205 for (int codePoint : codePoints) { in assertCodePointDecoded() 206 assertEquals(codePoint, buffer.readUtf8CodePoint()); in assertCodePointDecoded()
|
/external/smali/util/src/main/java/org/jf/util/ |
D | ClassFileNameHandler.java | 161 private static int utf8Length(int codePoint) { in utf8Length() argument 162 if (codePoint < 0x80) { in utf8Length() 164 } else if (codePoint < 0x800) { in utf8Length() 166 } else if (codePoint < 0x10000) { in utf8Length()
|