Home
last modified time | relevance | path

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

12345678

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
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 …]
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 …]
/third_party/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 …]
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/skia/third_party/externals/icu/source/samples/props/
Dprops.cpp35 printProps(UChar32 codePoint) { in printProps() argument
41 u_charName(codePoint, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode); in printProps()
44 printf("U+%04" PRId32 "\t%s\n", codePoint, buffer); in printProps()
47 printf(" general category (numeric enum value): %u\n", u_charType(codePoint)); in printProps()
50 …tf(" is lowercase: %d uppercase: U+%04" PRId32 "\n", u_islower(codePoint), u_toupper(codePoint)); in printProps()
52 …tf(" is digit: %d decimal digit value: %d\n", u_isdigit(codePoint), u_charDigitValue(codePoint)); in printProps()
54 printf(" BiDi directional category (numeric enum value): %u\n", u_charDirection(codePoint)); in printProps()
/third_party/icu/icu4c/source/samples/props/
Dprops.cpp35 printProps(UChar32 codePoint) { in printProps() argument
41 u_charName(codePoint, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode); in printProps()
44 printf("U+%04" PRId32 "\t%s\n", codePoint, buffer); in printProps()
47 printf(" general category (numeric enum value): %u\n", u_charType(codePoint)); in printProps()
50 …tf(" is lowercase: %d uppercase: U+%04" PRId32 "\n", u_islower(codePoint), u_toupper(codePoint)); in printProps()
52 …tf(" is digit: %d decimal digit value: %d\n", u_isdigit(codePoint), u_charDigitValue(codePoint)); in printProps()
54 printf(" BiDi directional category (numeric enum value): %u\n", u_charDirection(codePoint)); in printProps()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUtf8Utils.java137 int codePoint; in randomString() local
139 codePoint = rnd.nextInt(maxCodePoint.value); in randomString()
140 } while (Utf8Utils.isSurrogate(codePoint)); in randomString()
141 sb.appendCodePoint(codePoint); in randomString()
169 int codePoint; in randomStringsWithDistribution() local
171 codePoint = rnd.nextInt(distribution[3]); in randomStringsWithDistribution()
172 if (codePoint < distribution[0]) { in randomStringsWithDistribution()
175 } else if (codePoint < distribution[1]) { in randomStringsWithDistribution()
178 } else if (codePoint < distribution[2]) { in randomStringsWithDistribution()
186 } while (Utf8Utils.isSurrogate(codePoint)); in randomStringsWithDistribution()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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()
/third_party/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()
/third_party/flatbuffers/java/com/google/flatbuffers/
DUtf8.java121 int codePoint = toCodePoint(c, low); in encodeUtf8CodePoint() local
122 out[0] = (byte) ((0xF << 4) | (codePoint >>> 18)); in encodeUtf8CodePoint()
123 out[1] = (byte) (0x80 | (0x3F & (codePoint >>> 12))); in encodeUtf8CodePoint()
124 out[2] = (byte) (0x80 | (0x3F & (codePoint >>> 6))); in encodeUtf8CodePoint()
125 out[3] = (byte) (0x80 | (0x3F & codePoint)); in encodeUtf8CodePoint()
229 private static char highSurrogate(int codePoint) { in highSurrogate() argument
231 + (codePoint >>> 10)); in highSurrogate()
234 private static char lowSurrogate(int codePoint) { in lowSurrogate() argument
235 return (char) (MIN_LOW_SURROGATE + (codePoint & 0x3ff)); in lowSurrogate()
/third_party/quickjs/tests/
Dtest262.patch40 + for (codePoint = start; codePoint < end; codePoint++) {
41 + codePoints[length++] = codePoint;
55 - for (let length = 0, codePoint = start; codePoint <= end; codePoint++) {
56 - codePoints[length++] = codePoint;
/third_party/skia/third_party/externals/icu/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 …]
/third_party/node/deps/icu-small/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 …]
/third_party/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 …]
/third_party/flutter/skia/third_party/externals/icu/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 …]
/third_party/flatbuffers/ts/
Dbyte-buffer.ts213 let codePoint;
218 codePoint = a;
222 codePoint =
228 codePoint =
234 codePoint =
244 if (codePoint < 0x10000) {
245 result += String.fromCharCode(codePoint);
247 codePoint -= 0x10000;
249 (codePoint >> 10) + 0xD800,
250 (codePoint & ((1 << 10) - 1)) + 0xDC00);
Dbuilder.ts536 let codePoint;
541 codePoint = a;
544 codePoint = (a << 10) + b + (0x10000 - (0xD800 << 10) - 0xDC00);
548 if (codePoint < 0x80) {
549 utf8.push(codePoint);
551 if (codePoint < 0x800) {
552 utf8.push(((codePoint >> 6) & 0x1F) | 0xC0);
554 if (codePoint < 0x10000) {
555 utf8.push(((codePoint >> 12) & 0x0F) | 0xE0);
558 ((codePoint >> 18) & 0x07) | 0xF0,
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dicon_data.dart23 this.codePoint, {
30 final int codePoint;
32 /// The font family from which the glyph for the [codePoint] will be selected.
57 return codePoint == typedOther.codePoint
64 int get hashCode => hashValues(codePoint, fontFamily, fontPackage, matchTextDirection);
67 String toString() => 'IconData(U+${codePoint.toRadixString(16).toUpperCase().padLeft(5, '0')})';
97 'codePoint': value.codePoint,
/third_party/flutter/engine/flutter/third_party/txt/src/minikin/
DWordBreaker.cpp79 uint32_t codePoint; in isBreakValid() local
81 U16_PREV(buf, 0, prev_offset, codePoint); in isBreakValid()
84 if (Hyphenator::isLineBreakingHyphen(codePoint) || in isBreakValid()
85 codePoint == CHAR_SOFT_HYPHEN) { in isBreakValid()
96 if (codePoint == 0x1039) { // MYANMAR SIGN VIRAMA in isBreakValid()
106 if (codePoint == CHAR_ZWJ && isEmoji(next_codepoint)) { in isBreakValid()
113 if (codePoint == 0xFE0F && prev_offset > 0) { in isBreakValid()
115 U16_PREV(buf, 0, prev_offset, codePoint); in isBreakValid()
117 if (isEmojiBase(codePoint)) { in isBreakValid()
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DUtf8.kt190 private fun highSurrogate(codePoint: Int): Char = in isNotTrailingByte()
193 (codePoint ushr 10) in isNotTrailingByte()
196 private fun lowSurrogate(codePoint: Int): Char = (Char.MIN_LOW_SURROGATE + (codePoint and 0x3ff)) in isNotTrailingByte()
236 val codePoint: Int = toCodePoint(c, low) in isNotTrailingByte() constant
237 out[0] = (0xF shl 4 or (codePoint ushr 18)).toByte() in isNotTrailingByte()
238 out[1] = (0x80 or (0x3F and (codePoint ushr 12))).toByte() in isNotTrailingByte()
239 out[2] = (0x80 or (0x3F and (codePoint ushr 6))).toByte() in isNotTrailingByte()
240 out[3] = (0x80 or (0x3F and codePoint)).toByte() in isNotTrailingByte()
374 val codePoint: Int = toCodePoint(c, low) in encodeUtf8Array() constant
375 out[j++] = (0xF shl 4 or (codePoint ushr 18)).toByte() in encodeUtf8Array()
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontUtils.java168 public static String getFormattedCodePointString(int codePoint) { in getFormattedCodePointString() argument
169 if (UCharacter.isValidCodePoint(codePoint)) { in getFormattedCodePointString()
170 if (UCharacter.isBMP(codePoint)) { in getFormattedCodePointString()
171 return String.format("U+%04X", codePoint); in getFormattedCodePointString()
173 return String.format("U+%06X", codePoint); in getFormattedCodePointString()
175 throw new IllegalArgumentException("Invalid code point " + codePoint); in getFormattedCodePointString()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontUtils.java168 public static String getFormattedCodePointString(int codePoint) { in getFormattedCodePointString() argument
169 if (UCharacter.isValidCodePoint(codePoint)) { in getFormattedCodePointString()
170 if (UCharacter.isBMP(codePoint)) { in getFormattedCodePointString()
171 return String.format("U+%04X", codePoint); in getFormattedCodePointString()
173 return String.format("U+%06X", codePoint); in getFormattedCodePointString()
175 throw new IllegalArgumentException("Invalid code point " + codePoint); in getFormattedCodePointString()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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()
/third_party/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()

12345678