/third_party/node/deps/npm/node_modules/eastasianwidth/ |
D | eastasianwidth.js | 12 var codePoint = x; 16 codePoint = (x << 10) | y; 17 codePoint += 0x10000; 20 if ((0x3000 == codePoint) || 21 (0xFF01 <= codePoint && codePoint <= 0xFF60) || 22 (0xFFE0 <= codePoint && codePoint <= 0xFFE6)) { 25 if ((0x20A9 == codePoint) || 26 (0xFF61 <= codePoint && codePoint <= 0xFFBE) || 27 (0xFFC2 <= codePoint && codePoint <= 0xFFC7) || 28 (0xFFCA <= codePoint && codePoint <= 0xFFCF) || [all …]
|
/third_party/node/deps/npm/node_modules/is-fullwidth-code-point/ |
D | index.js | 4 const isFullwidthCodePoint = codePoint => { argument 5 if (Number.isNaN(codePoint)) { 12 codePoint >= 0x1100 && ( 13 codePoint <= 0x115F || // Hangul Jamo 14 codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET 15 codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET 17 (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) || 19 (0x3250 <= codePoint && codePoint <= 0x4DBF) || 21 (0x4E00 <= codePoint && codePoint <= 0xA4C6) || 23 (0xA960 <= codePoint && codePoint <= 0xA97C) || [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | Trie2_16.java | 70 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 …]
|
D | Trie2_32.java | 69 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 …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
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 …]
|
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 …]
|
/third_party/skia/third_party/externals/icu/source/samples/props/ |
D | props.cpp | 35 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/ |
D | props.cpp | 35 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/ |
D | Utf8Utils.java | 137 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/node/deps/npm/node_modules/cssesc/ |
D | cssesc.js | 39 var codePoint = character.charCodeAt(); 42 if (codePoint < 0x20 || codePoint > 0x7E) { 43 if (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) { 48 codePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000; 55 value = '\\' + codePoint.toString(16).toUpperCase() + ' '; 61 value = '\\' + codePoint.toString(16).toUpperCase() + ' '; 64 value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterThreadTest.java | 47 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/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
D | UCharacterThreadTest.java | 50 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/node/deps/npm/node_modules/@isaacs/cliui/node_modules/string-width/ |
D | index.js | 27 const codePoint = character.codePointAt(0); constant 30 if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) { 35 if (codePoint >= 0x300 && codePoint <= 0x36F) {
|
/third_party/node/deps/npm/node_modules/wrap-ansi/node_modules/string-width/ |
D | index.js | 27 const codePoint = character.codePointAt(0); constant 30 if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) { 35 if (codePoint >= 0x300 && codePoint <= 0x36F) {
|
/third_party/node/deps/npm/node_modules/postcss-selector-parser/dist/util/ |
D | unesc.js | 31 var codePoint = parseInt(hex, 16); 32 var isSurrogate = codePoint >= 0xD800 && codePoint <= 0xDFFF; 36 if (isSurrogate || codePoint === 0x0000 || codePoint > 0x10FFFF) { 39 return [String.fromCodePoint(codePoint), hex.length + (spaceTerminated ? 1 : 0)];
|
/third_party/icu/icu4c/source/common/ |
D | ucnv_err.cpp | 96 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/skia/third_party/externals/icu/source/common/ |
D | ucnv_err.cpp | 96 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/ |
D | ucnv_err.cpp | 96 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/lib/ |
D | punycode.js | 154 const basicToDigit = function(codePoint) { argument 155 if (codePoint >= 0x30 && codePoint < 0x3A) { 156 return 26 + (codePoint - 0x30); 158 if (codePoint >= 0x41 && codePoint < 0x5B) { 159 return codePoint - 0x41; 161 if (codePoint >= 0x61 && codePoint < 0x7B) { 162 return codePoint - 0x61;
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/ |
D | FontUtils.java | 168 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/icu4j/main/classes/core/src/com/ibm/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() 264 public static int indexOf(CharSequence s, int codePoint) { in indexOf() argument 268 if (cp == codePoint) { in indexOf()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/lang/ |
D | CharSequences.java | 134 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/node/test/fixtures/wpt/url/ |
D | IdnaTestV2.window.js | 7 for (const codePoint of input) { 8 if ([":", "/", "?", "#", "\\"].includes(codePoint)) { 9 output += encodeURIComponent(codePoint); 11 output += codePoint;
|
/third_party/node/deps/npm/node_modules/buffer/ |
D | index.js | 959 let codePoint = null 974 codePoint = firstByte 982 codePoint = tempCodePoint 992 codePoint = tempCodePoint 1003 codePoint = tempCodePoint 1009 if (codePoint === null) { 1012 codePoint = 0xFFFD 1014 } else if (codePoint > 0xFFFF) { 1016 codePoint -= 0x10000 1017 res.push(codePoint >>> 10 & 0x3FF | 0xD800) [all …]
|
/third_party/skia/third_party/externals/icu/source/samples/ucnv/ |
D | flagcb.c | 38 UChar32 codePoint, in flagCB_fromU() argument 98 length, codePoint, reason, err); in flagCB_fromU() 122 codePoint, in flagCB_fromU() 180 UChar32 codePoint, in debugCB_fromU() argument 229 length, codePoint, reason, err); in debugCB_fromU() 255 codePoint, in debugCB_fromU()
|