/libcore/ojluni/src/main/native/ |
D | Character.cpp | 31 Character_isLowerCaseImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isLowerCaseImpl() argument 32 return u_islower(codePoint); in Character_isLowerCaseImpl() 36 Character_isUpperCaseImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isUpperCaseImpl() argument 37 return u_isupper(codePoint); in Character_isUpperCaseImpl() 41 Character_isTitleCaseImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isTitleCaseImpl() argument 42 return u_istitle(codePoint); in Character_isTitleCaseImpl() 46 Character_isDigitImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isDigitImpl() argument 47 return u_isdigit(codePoint); in Character_isDigitImpl() 51 Character_isLetterImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isLetterImpl() argument 52 return u_isalpha(codePoint); in Character_isLetterImpl() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Character.java | 3150 public static UnicodeBlock of(int codePoint) { in of() argument 3151 if (!isValidCodePoint(codePoint)) { in of() 3162 if (codePoint >= blockStarts[current]) { in of() 4511 public static UnicodeScript of(int codePoint) { in of() argument 4512 if (!isValidCodePoint(codePoint)) in of() 4514 int type = getType(codePoint); in of() 4518 int index = Arrays.binarySearch(scriptStarts, codePoint); in of() 4700 public static boolean isValidCodePoint(int codePoint) { in isValidCodePoint() argument 4703 int plane = codePoint >>> 16; in isValidCodePoint() 4718 public static boolean isBmpCodePoint(int codePoint) { in isBmpCodePoint() argument [all …]
|
D | AbstractStringBuilder.java | 788 public AbstractStringBuilder appendCodePoint(int codePoint) { in appendCodePoint() argument 791 if (Character.isBmpCodePoint(codePoint)) { in appendCodePoint() 793 value[count] = (char) codePoint; in appendCodePoint() 795 } else if (Character.isValidCodePoint(codePoint)) { in appendCodePoint() 797 Character.toSurrogates(codePoint, value, count); in appendCodePoint()
|
D | StringBuilder.java | 235 public StringBuilder appendCodePoint(int codePoint) { in appendCodePoint() argument 236 super.appendCodePoint(codePoint); in appendCodePoint()
|
D | StringBuffer.java | 396 public synchronized StringBuffer appendCodePoint(int codePoint) { in appendCodePoint() argument 398 super.appendCodePoint(codePoint); in appendCodePoint()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Character.java | 67 public static boolean isValidCodePoint(int codePoint) { in isValidCodePoint() argument 71 public static boolean isBmpCodePoint(int codePoint) { in isBmpCodePoint() argument 75 public static boolean isSupplementaryCodePoint(int codePoint) { in isSupplementaryCodePoint() argument 95 public static int charCount(int codePoint) { in charCount() argument 135 public static char highSurrogate(int codePoint) { in highSurrogate() argument 139 public static char lowSurrogate(int codePoint) { in lowSurrogate() argument 143 public static int toChars(int codePoint, char[] dst, int dstIndex) { in toChars() argument 147 public static char[] toChars(int codePoint) { in toChars() argument 151 static void toSurrogates(int codePoint, char[] dst, int index) { in toSurrogates() argument 186 public static boolean isLowerCase(int codePoint) { in isLowerCase() argument [all …]
|
D | AbstractStringBuilder.java | 165 public java.lang.AbstractStringBuilder appendCodePoint(int codePoint) { in appendCodePoint() argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharsetUtf8Benchmark.java | 40 for (int codePoint = startingCodePoint; codePoint <= endingCodePoint; codePoint++) { in makeUnicodeRange() 41 if (codePoint < Character.MIN_SURROGATE || codePoint > Character.MAX_SURROGATE) { in makeUnicodeRange() 42 builder.append(UCharacter.toString(codePoint)); in makeUnicodeRange()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | IllegalFormatCodePointExceptionTest.java | 42 int codePoint = 12345; in test_getCodePoint() local 44 codePoint); in test_getCodePoint() 45 assertEquals(codePoint, illegalFormatCodePointException.getCodePoint()); in test_getCodePoint() 52 int codePoint = 12345; in test_getMessage() local 54 codePoint); in test_getMessage()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | StandardCharsetsEncoderTest.java | 91 int codePoint = Integer.parseInt(parts[0]); in testCharset() local 92 String actualInfo = createCodePointInfo(encoder, codePoint); in testCharset() 151 for (int codePoint = 0; codePoint < 0xfffd; codePoint++) { in dumpEncodings() 152 String codePointInfo = createCodePointInfo(encoder, codePoint); in dumpEncodings() 164 private static String createCodePointInfo(CharsetEncoder encoder, int codePoint) { in createCodePointInfo() argument 166 String utf16 = new String(Character.toChars(codePoint)); in createCodePointInfo() 169 stringBuilder.append(Integer.toString(codePoint)); in createCodePointInfo()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Character.annotated.java | 51 public static boolean isValidCodePoint(int codePoint) { throw new RuntimeException("Stub!"); } in isValidCodePoint() argument 53 public static boolean isBmpCodePoint(int codePoint) { throw new RuntimeException("Stub!"); } in isBmpCodePoint() argument 55 public static boolean isSupplementaryCodePoint(int codePoint) { throw new RuntimeException("Stub!")… in isSupplementaryCodePoint() argument 65 public static int charCount(int codePoint) { throw new RuntimeException("Stub!"); } in charCount() argument 81 public static char highSurrogate(int codePoint) { throw new RuntimeException("Stub!"); } in highSurrogate() argument 83 public static char lowSurrogate(int codePoint) { throw new RuntimeException("Stub!"); } in lowSurrogate() argument 85 public static int toChars(int codePoint, char[] dst, int dstIndex) { throw new RuntimeException("St… in toChars() argument 87 public static char[] toChars(int codePoint) { throw new RuntimeException("Stub!"); } in toChars() argument 99 public static boolean isLowerCase(int codePoint) { throw new RuntimeException("Stub!"); } in isLowerCase() argument 103 public static boolean isUpperCase(int codePoint) { throw new RuntimeException("Stub!"); } in isUpperCase() argument [all …]
|
D | StringBuffer.annotated.java | 85 @libcore.util.NonNull public synchronized java.lang.StringBuffer appendCodePoint(int codePoint) { t… in appendCodePoint() argument
|
D | StringBuilder.annotated.java | 68 @libcore.util.NonNull public java.lang.StringBuilder appendCodePoint(int codePoint) { throw new Run… in appendCodePoint() argument
|
/libcore/luni/src/test/java/libcore/xml/ |
D | KxmlSerializerTest.java | 92 public String fromCodePoint(int codePoint) { in fromCodePoint() argument 93 if (codePoint > Character.MAX_VALUE) { in fromCodePoint() 94 return new String(Character.toChars(codePoint)); in fromCodePoint() 96 return Character.toString((char) codePoint); in fromCodePoint()
|
/libcore/ojluni/src/main/java/java/util/ |
D | StringTokenizer.java | 299 private boolean isDelimiter(int codePoint) { in isDelimiter() argument 301 if (delimiterCodePoints[i] == codePoint) { in isDelimiter()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | DocumentBuilderImpl.java | 420 int codePoint = Integer.parseInt(value, base); in resolveCharacterReference() local 421 if (Character.isBmpCodePoint(codePoint)) { in resolveCharacterReference() 422 return String.valueOf((char) codePoint); in resolveCharacterReference() 424 char[] surrogatePair = Character.toChars(codePoint); in resolveCharacterReference()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringTest.java | 354 for (int codePoint = Character.MIN_CODE_POINT; in testFastPathString_wellFormedUtf8Sequence() 355 codePoint <= Character.MAX_CODE_POINT; in testFastPathString_wellFormedUtf8Sequence() 356 codePoint++) { in testFastPathString_wellFormedUtf8Sequence() 357 if (codePoint < Character.MIN_SURROGATE || codePoint > Character.MAX_SURROGATE) { in testFastPathString_wellFormedUtf8Sequence() 358 String expected = UCharacter.toString(codePoint); in testFastPathString_wellFormedUtf8Sequence()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | MatcherTest.java | 664 int[] codePoint = new int[1]; in testAllCodePoints_p() local 670 codePoint[0] = i; in testAllCodePoints_p() 671 String s = new String(codePoint, 0, 1); in testAllCodePoints_p() 683 int[] codePoint = new int[1]; in testAllCodePoints_P() local 689 codePoint[0] = i; in testAllCodePoints_P() 690 String s = new String(codePoint, 0, 1); in testAllCodePoints_P()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlSerializer.java | 611 int codePoint = Character.toCodePoint(high, low); in writeSurrogate() local 612 append("&#" + codePoint + ";"); in writeSurrogate()
|