/external/jazzer-api/src/main/java/com/code_intelligence/jazzer/mutation/mutator/lang/ |
D | StringMutatorFactory.java | 66 int codePoint = bytes[pos] & 0xFF; in fixUpUtf8() local 72 codePoint = (codePoint << 6) + (b & BODY_MASK); in fixUpUtf8() 80 codePoint &= 0x7F; in fixUpUtf8() 82 bytes[pos] = (byte) codePoint; in fixUpUtf8() 85 codePoint &= 0x7FF; in fixUpUtf8() 86 if (codePoint <= 0x7F) { in fixUpUtf8() 89 codePoint |= 0x80; in fixUpUtf8() 92 bytes[--scanPos] = (byte) (CONTINUATION_HEADER | (codePoint & BODY_MASK)); in fixUpUtf8() 93 codePoint >>= 6; in fixUpUtf8() 94 bytes[pos] = (byte) (0b1100_0000 | codePoint); in fixUpUtf8() [all …]
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/translate/ |
D | UnicodeEscaper.java | 66 public static UnicodeEscaper below(final int codePoint) { in below() argument 67 return outsideOf(codePoint, Integer.MAX_VALUE); in below() 76 public static UnicodeEscaper above(final int codePoint) { in above() argument 77 return outsideOf(0, codePoint); in above() 106 public boolean translate(final int codePoint, final Writer out) throws IOException { in translate() argument 108 if (codePoint < below || codePoint > above) { in translate() 111 } else if (codePoint >= below && codePoint <= above) { in translate() 116 if (codePoint > 0xffff) { in translate() 117 out.write(toUtf16Escape(codePoint)); in translate() 120 out.write(HEX_DIGITS[(codePoint >> 12) & 15]); in translate() [all …]
|
D | NumericEntityEscaper.java | 66 public static NumericEntityEscaper below(final int codePoint) { in below() argument 67 return outsideOf(codePoint, Integer.MAX_VALUE); in below() 76 public static NumericEntityEscaper above(final int codePoint) { in above() argument 77 return outsideOf(0, codePoint); in above() 106 public boolean translate(final int codePoint, final Writer out) throws IOException { in translate() argument 108 if (codePoint < below || codePoint > above) { in translate() 111 } else if (codePoint >= below && codePoint <= above) { in translate() 116 out.write(Integer.toString(codePoint, 10)); in translate()
|
D | JavaUnicodeEscaper.java | 37 public static JavaUnicodeEscaper above(final int codePoint) { in above() argument 38 return outsideOf(0, codePoint); in above() 48 public static JavaUnicodeEscaper below(final int codePoint) { in below() argument 49 return outsideOf(codePoint, Integer.MAX_VALUE); in below() 102 protected String toUtf16Escape(final int codePoint) { in toUtf16Escape() argument 103 final char[] surrogatePair = Character.toChars(codePoint); in toUtf16Escape()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
D | CodePointEscaper.java | 85 CodePointEscaper oldValue = _fromCodePoint.get(abbr.codePoint); 93 _fromCodePoint.put(abbr.codePoint, abbr); in _fromCodePoint.put() argument 113 private final int codePoint; field in CodePointEscaper 117 private CodePointEscaper(int codePoint, String shortName) { in CodePointEscaper() argument 118 this(codePoint, shortName, ""); in CodePointEscaper() 121 private CodePointEscaper(int codePoint, String shortName, String description) { in CodePointEscaper() argument 122 this.codePoint = codePoint; in CodePointEscaper() 150 return codePoint; in getCodePoint() 155 return UTF16.valueOf(codePoint); in getString() 160 return ESCAPE_START + rawCodePointToEscaped(codePoint) + ESCAPE_END; in codePointToEscaped() [all …]
|
/external/kotlinx.serialization/formats/json/jvmMain/src/kotlinx/serialization/json/internal/ |
D | JvmJsonStreams.kt | 193 val codePoint = 0x010000 + (c and 0x03ff shl 10 or (low and 0x03ff)) in writeUtf8() constant 197 write(codePoint shr 18 or 0xf0) // 11110xxx in writeUtf8() 198 write(codePoint shr 12 and 0x3f or 0x80) // 10xxxxxx in writeUtf8() 199 write(codePoint shr 6 and 0x3f or 0x80) // 10xxyyyy in writeUtf8() 200 write(codePoint and 0x3f or 0x80) // 10yyyyyy in writeUtf8() 211 private fun writeUtf8CodePoint(codePoint: Int) { in writeUtf8CodePoint() 213 codePoint < 0x80 -> { in writeUtf8CodePoint() 216 write(codePoint) in writeUtf8CodePoint() 219 codePoint < 0x800 -> { in writeUtf8CodePoint() 222 write(codePoint shr 6 or 0xc0) // 110xxxxx in writeUtf8CodePoint() [all …]
|
/external/okio/okio/src/commonMain/kotlin/okio/ |
D | Utf8.kt | 121 internal inline fun isIsoControl(codePoint: Int): Boolean = in isIsoControl() 122 (codePoint in 0x00..0x1F) || (codePoint in 0x7F..0x9F) in isIsoControl() 187 val codePoint = ( in processUtf8Bytes() constant 194 yield((codePoint shr 18 or 0xf0).toByte()) // 11110xxx in processUtf8Bytes() 195 yield((codePoint shr 12 and 0x3f or 0x80).toByte()) // 10xxxxxx in processUtf8Bytes() 196 yield((codePoint shr 6 and 0x3f or 0x80).toByte()) // 10xxyyyy in processUtf8Bytes() 197 yield((codePoint and 0x3f or 0x80).toByte()) // 10yyyyyy in processUtf8Bytes() 285 index += process4Utf8Bytes(index, endIndex) { codePoint -> in processUtf16Chars() method 286 if (codePoint != REPLACEMENT_CODE_POINT) { in processUtf16Chars() 291 yield(((codePoint ushr 10 ) + HIGH_SURROGATE_HEADER).toChar()) in processUtf16Chars() [all …]
|
/external/icu/icu4j/main/core/src/main/java/com/ibm/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/android_icu4j/src/main/java/android/icu/impl/ |
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 …]
|
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 …]
|
/external/cronet/stable/third_party/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()
|
/external/cronet/tot/third_party/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()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/draft/ |
D | NormalizedIdentifierParser.java | 69 int codePoint = input.codePointAt(endPosition); in next() local 70 CharType type = getCharType(codePoint); in next() 71 endPosition += codePoint < 0x10000 ? 1 : 2; in next() 92 codePoint); // we don't care about the value, so production code in next() 99 codePoint = input.codePointAt(endPosition); in next() 100 type = getCharType(codePoint); in next() 112 endPosition += codePoint < 0x10000 ? 1 : 2; in next() 117 public CharType getCharType(int codePoint) { 119 if (XmlNameContinueChar.contains(codePoint)) { 120 return NfcSafe.contains(codePoint) [all …]
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/props/ |
D | ICUPropertyFactory.java | 57 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/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/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/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/ |
D | ReaderException.java | 22 private final int codePoint; field in ReaderException 25 public ReaderException(String name, int position, int codePoint, String message) { in ReaderException() argument 28 this.codePoint = codePoint; in ReaderException() 37 return codePoint; in getCodePoint() 46 final String s = new String(Character.toChars(codePoint)); in toString() 47 return "unacceptable code point '" + s + "' (0x" + Integer.toHexString(codePoint).toUpperCase() in toString()
|
/external/icu/icu4j/main/core/src/test/java/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()
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/proxy/ |
D | HttpUrl.java | 410 int codePoint; in percentDecode() local 411 for (int i = pos; i < limit; i += Character.charCount(codePoint)) { in percentDecode() 412 codePoint = encoded.codePointAt(i); in percentDecode() 413 if (codePoint == '%' && i + 2 < limit) { in percentDecode() 421 } else if (codePoint == '+' && plusIsSpace) { in percentDecode() 425 out.writeUtf8CodePoint(codePoint); in percentDecode() 439 int codePoint; in canonicalize() local 440 for (int i = pos; i < limit; i += Character.charCount(codePoint)) { in canonicalize() 441 codePoint = input.codePointAt(i); in canonicalize() 443 … && (codePoint == '\t' || codePoint == '\n' || codePoint == '\f' || codePoint == '\r')) { in canonicalize() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/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()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/ |
D | UTF8.java | 81 int codePoint = i & firstUnitMasks[category]; 84 firstUnitTable[i] = (short)((codePoint << 8) | state); 149 int codePoint = first >>> 8; in transcodeToUTF16() local 160 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16() 169 if (codePoint <= 0xFFFF) in transcodeToUTF16() 177 utf16[j++] = (char)codePoint; in transcodeToUTF16() 187 utf16[j++] = (char)(0xD7C0 + (codePoint >>> 10)); in transcodeToUTF16() 188 utf16[j++] = (char)(0xDC00 | (codePoint & 0x3FF)); in transcodeToUTF16()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/encoders/ |
D | UTF8.java | 83 int codePoint = i & firstUnitMasks[category]; 86 firstUnitTable[i] = (short)((codePoint << 8) | state); 151 int codePoint = first >>> 8; in transcodeToUTF16() local 162 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16() 171 if (codePoint <= 0xFFFF) in transcodeToUTF16() 179 utf16[j++] = (char)codePoint; in transcodeToUTF16() 189 utf16[j++] = (char)(0xD7C0 + (codePoint >>> 10)); in transcodeToUTF16() 190 utf16[j++] = (char)(0xDC00 | (codePoint & 0x3FF)); in transcodeToUTF16()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/encoders/ |
D | UTF8.java | 83 int codePoint = i & firstUnitMasks[category]; 86 firstUnitTable[i] = (short)((codePoint << 8) | state); 151 int codePoint = first >>> 8; in transcodeToUTF16() local 162 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16() 171 if (codePoint <= 0xFFFF) in transcodeToUTF16() 179 utf16[j++] = (char)codePoint; in transcodeToUTF16() 189 utf16[j++] = (char)(0xD7C0 + (codePoint >>> 10)); in transcodeToUTF16() 190 utf16[j++] = (char)(0xDC00 | (codePoint & 0x3FF)); in transcodeToUTF16()
|
/external/flatbuffers/java/src/main/java/com/google/flatbuffers/ |
D | Utf8.java | 121 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()
|