Home
last modified time | relevance | path

Searched refs:codePoint (Results 1 – 25 of 114) sorted by relevance

12345

/external/cldr/tools/java/org/unicode/cldr/util/props/
DICUPropertyFactory.java57 public String _getValue(int codePoint) { in _getValue() argument
60 return getAge(codePoint); in _getValue()
62 return UTF16.valueOf(UCharacter.getMirror(codePoint)); in _getValue()
64 return UCharacter.foldCase(UTF16.valueOf(codePoint), true); in _getValue()
66 return UCharacter.getISOComment(codePoint); in _getValue()
68 return UCharacter.toLowerCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue()
70 return UCharacter.getName(codePoint); in _getValue()
72 return UTF16.valueOf(UCharacter.foldCase(codePoint, true)); in _getValue()
74 return UTF16.valueOf(UCharacter.toLowerCase(codePoint)); in _getValue()
76 return UTF16.valueOf(UCharacter.toTitleCase(codePoint)); in _getValue()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2_32.java67 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 …]
DTrie2_16.java68 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 …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2_16.java70 public final int get(int codePoint) { in get() argument
74 if (codePoint >= 0) { in get()
75 if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { in get()
79 ix = index[codePoint >> UTRIE2_SHIFT_2]; in get()
80 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get()
84 if (codePoint <= 0xffff) { in get()
91 ix = index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; in get()
92 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get()
96 if (codePoint < highStart) { in get()
98 … ix = (UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> UTRIE2_SHIFT_1); in get()
[all …]
DTrie2_32.java69 public final int get(int codePoint) { in get() argument
73 if (codePoint >= 0) { in get()
74 if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { in get()
78 ix = index[codePoint >> UTRIE2_SHIFT_2]; in get()
79 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get()
83 if (codePoint <= 0xffff) { in get()
90 ix = index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; in get()
91 ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); in get()
95 if (codePoint < highStart) { in get()
97 … ix = (UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> UTRIE2_SHIFT_1); in get()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DNormalizedIdentifierParser.java56 int codePoint = input.codePointAt(endPosition); in next() local
57 CharType type = getCharType(codePoint); in next()
58 endPosition += codePoint < 0x10000 ? 1 : 2; in next()
77 …knownNfc = NfcSafe.contains(codePoint); // we don't care about the value, so production code would… in next()
82 codePoint = input.codePointAt(endPosition); in next()
83 type = getCharType(codePoint); in next()
95 endPosition += codePoint < 0x10000 ? 1 : 2; in next()
100 public CharType getCharType(int codePoint) {
102 if (XmlNameContinueChar.contains(codePoint)) {
103 … return NfcSafe.contains(codePoint) ? CharType.NameContinueNFC : CharType.NameContinueOther;
[all …]
DUnicodeSetFormat.java66 private StringBuffer appendQuoted(StringBuffer target, int codePoint) { in appendQuoted() argument
67 switch (codePoint) { in appendQuoted()
81 if (toQuote.contains(codePoint)) { in appendQuoted()
82 if (codePoint > 0xFFFF) { in appendQuoted()
84 target.append(Utility.hex(UTF16.getLeadSurrogate(codePoint), 4)); in appendQuoted()
85 codePoint = UTF16.getTrailSurrogate(codePoint); in appendQuoted()
88 target.append(Utility.hex(codePoint, 4)); in appendQuoted()
92 UTF16.append(target, codePoint); in appendQuoted()
/external/icu/icu4c/source/samples/props/
Dprops.cpp32 printProps(UChar32 codePoint) { in printProps() argument
38 u_charName(codePoint, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode); in printProps()
41 printf("U+%04lx\t%s\n", codePoint, buffer); in printProps()
44 printf(" general category (numeric enum value): %u\n", u_charType(codePoint)); in printProps()
47 printf(" is lowercase: %d uppercase: U+%04lx\n", u_islower(codePoint), u_toupper(codePoint)); in printProps()
49 …tf(" is digit: %d decimal digit value: %d\n", u_isdigit(codePoint), u_charDigitValue(codePoint)); in printProps()
51 printf(" BiDi directional category (numeric enum value): %u\n", u_charDirection(codePoint)); in printProps()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DUrlComponentEncodingTester.java185 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/
DEncodingInfo.java189 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/core/src/com/ibm/icu/dev/test/lang/
DUCharacterThreadTest.java47 int codePoint = 47 + t; in TestUCharactersGetName() local
48 String correctName = UCharacter.getName(codePoint); in TestUCharactersGetName()
49 GetNameThread thread = new GetNameThread(codePoint, correctName); in TestUCharactersGetName()
64 private final int codePoint; field in UCharacterThreadTest.GetNameThread
68 GetNameThread(int codePoint, String correctName) { in GetNameThread() argument
69 this.codePoint = codePoint; in GetNameThread()
76 actualName = UCharacter.getName(codePoint); in run()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterThreadTest.java50 int codePoint = 47 + t; in TestUCharactersGetName() local
51 String correctName = UCharacter.getName(codePoint); in TestUCharactersGetName()
52 GetNameThread thread = new GetNameThread(codePoint, correctName); in TestUCharactersGetName()
67 private final int codePoint; field in UCharacterThreadTest.GetNameThread
71 GetNameThread(int codePoint, String correctName) { in GetNameThread() argument
72 this.codePoint = codePoint; in GetNameThread()
79 actualName = UCharacter.getName(codePoint); in run()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/encoders/
DUTF8.java83 int codePoint = i & firstUnitMasks[category];
86 firstUnitTable[i] = (short)((codePoint << 8) | state);
125 int codePoint = first >>> 8; in transcodeToUTF16() local
133 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16()
139 if (codePoint <= 0xFFFF) in transcodeToUTF16()
144 utf16[j++] = (char)codePoint; in transcodeToUTF16()
151 utf16[j++] = (char)(0xD7C0 + (codePoint >>> 10)); in transcodeToUTF16()
152 utf16[j++] = (char)(0xDC00 | (codePoint & 0x3FF)); in transcodeToUTF16()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DUTF8.java81 int codePoint = i & firstUnitMasks[category];
84 firstUnitTable[i] = (short)((codePoint << 8) | state);
123 int codePoint = first >>> 8; in transcodeToUTF16() local
131 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16()
137 if (codePoint <= 0xFFFF) in transcodeToUTF16()
142 utf16[j++] = (char)codePoint; in transcodeToUTF16()
149 utf16[j++] = (char)(0xD7C0 + (codePoint >>> 10)); in transcodeToUTF16()
150 utf16[j++] = (char)(0xDC00 | (codePoint & 0x3FF)); in transcodeToUTF16()
/external/flatbuffers/js/
Dflatbuffers.js761 var codePoint;
766 codePoint = a;
769 codePoint = (a << 10) + b + (0x10000 - (0xD800 << 10) - 0xDC00);
773 if (codePoint < 0x80) {
774 utf8.push(codePoint);
776 if (codePoint < 0x800) {
777 utf8.push(((codePoint >> 6) & 0x1F) | 0xC0);
779 if (codePoint < 0x10000) {
780 utf8.push(((codePoint >> 12) & 0x0F) | 0xE0);
783 ((codePoint >> 18) & 0x07) | 0xF0,
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DBuffer.java634 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/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DBuffer.java636 int codePoint;
642 codePoint = b0 & 0x7f;
648 codePoint = b0 & 0x1f;
654 codePoint = b0 & 0x0f;
660 codePoint = b0 & 0x07;
682 codePoint <<= 6;
683 codePoint |= b & 0x3f;
692 if (codePoint > 0x10ffff) {
696 if (codePoint >= 0xd800 && codePoint <= 0xdfff) {
700 if (codePoint < min) {
[all …]
/external/icu/icu4c/source/common/
Ducnv_err.cpp96 UChar32 codePoint, in UCNV_FROM_U_CALLBACK_STOP() argument
104 if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_STOP()
137 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
176 if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_SUBSTITUTE()
204 UChar32 codePoint, in UCNV_FROM_U_CALLBACK_ESCAPE() argument
225 else if (reason == UCNV_UNASSIGNED && IS_DEFAULT_IGNORABLE_CODE_POINT(codePoint)) in UCNV_FROM_U_CALLBACK_ESCAPE()
273 …_itou (valueString + valueStringLength, VALUE_STRING_LENGTH - valueStringLength, codePoint, 16, 8); in UCNV_FROM_U_CALLBACK_ESCAPE()
287 …_itou (valueString + valueStringLength, VALUE_STRING_LENGTH - valueStringLength, codePoint, 10, 0); in UCNV_FROM_U_CALLBACK_ESCAPE()
[all …]
/external/javapoet/src/main/java/com/squareup/javapoet/
DNameAllocator.java131 int codePoint = suggestion.codePointAt(i); in toJavaIdentifier() local
133 && !Character.isJavaIdentifierStart(codePoint) in toJavaIdentifier()
134 && Character.isJavaIdentifierPart(codePoint)) { in toJavaIdentifier()
138 int validCodePoint = Character.isJavaIdentifierPart(codePoint) ? codePoint : '_'; in toJavaIdentifier()
140 i += Character.charCount(codePoint); in toJavaIdentifier()
/external/cldr/tools/java/org/unicode/cldr/util/
DUnicodeSetPrettyPrinter.java237 UnicodeSetPrettyPrinter 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/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DHttpUrl.java1528 int codePoint;
1529 for (int i = pos; i < limit; i += Character.charCount(codePoint)) {
1530 codePoint = encoded.codePointAt(i);
1531 if (codePoint == '%' && i + 2 < limit) {
1539 } else if (codePoint == '+' && plusIsSpace) {
1543 out.writeUtf8CodePoint(codePoint);
1579 int codePoint;
1580 for (int i = pos; i < limit; i += Character.charCount(codePoint)) {
1581 codePoint = input.codePointAt(i);
1582 if (codePoint < 0x20
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DHttpUrl.java1538 int codePoint;
1539 for (int i = pos; i < limit; i += Character.charCount(codePoint)) {
1540 codePoint = encoded.codePointAt(i);
1541 if (codePoint == '%' && i + 2 < limit) {
1549 } else if (codePoint == '+' && plusIsSpace) {
1553 out.writeUtf8CodePoint(codePoint);
1589 int codePoint;
1590 for (int i = pos; i < limit; i += Character.charCount(codePoint)) {
1591 codePoint = input.codePointAt(i);
1592 if (codePoint < 0x20
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DStringResources.java79 String codePoint = text.substring(j, j + CODE_POINT_LENGTH); in escape() local
80 result.append(extractCodePoint(codePoint)); in escape()
91 private static char[] extractCodePoint(String codePoint) { in extractCodePoint() argument
93 return Character.toChars(Integer.valueOf(codePoint, 16)); in extractCodePoint()
97 throw new IllegalArgumentException("Invalid code point: \\u" + codePoint, e); in extractCodePoint()
/external/icu/android_icu4j/src/main/java/android/icu/lang/
DCharSequences.java134 public static int compare(CharSequence string, int codePoint) { in compare() argument
135 if (codePoint < Character.MIN_CODE_POINT || codePoint > Character.MAX_CODE_POINT) { in compare()
143 int offset = codePoint - Character.MIN_SUPPLEMENTARY_CODE_POINT; in compare()
146 int result = firstChar - codePoint; in compare()
266 public static int indexOf(CharSequence s, int codePoint) { in indexOf() argument
270 if (cp == codePoint) { in indexOf()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DCharSequences.java132 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()
264 public static int indexOf(CharSequence s, int codePoint) { in indexOf() argument
268 if (cp == codePoint) { in indexOf()

12345