src/java.base/share/classes/java/lang/Character.java

Print this page

        

*** 9083,9093 **** * @see Character#toLowerCase(int) * @see Character#getType(int) * @since 1.5 */ public static boolean isLowerCase(int codePoint) { ! return getType(codePoint) == Character.LOWERCASE_LETTER || CharacterData.of(codePoint).isOtherLowercase(codePoint); } /** * Determines if the specified character is an uppercase character. --- 9083,9093 ---- * @see Character#toLowerCase(int) * @see Character#getType(int) * @since 1.5 */ public static boolean isLowerCase(int codePoint) { ! return CharacterData.of(codePoint).isLowerCase(codePoint) || CharacterData.of(codePoint).isOtherLowercase(codePoint); } /** * Determines if the specified character is an uppercase character.
*** 9149,9159 **** * @see Character#toUpperCase(int) * @see Character#getType(int) * @since 1.5 */ public static boolean isUpperCase(int codePoint) { ! return getType(codePoint) == Character.UPPERCASE_LETTER || CharacterData.of(codePoint).isOtherUppercase(codePoint); } /** * Determines if the specified character is a titlecase character. --- 9149,9159 ---- * @see Character#toUpperCase(int) * @see Character#getType(int) * @since 1.5 */ public static boolean isUpperCase(int codePoint) { ! return CharacterData.of(codePoint).isUpperCase(codePoint) || CharacterData.of(codePoint).isOtherUppercase(codePoint); } /** * Determines if the specified character is a titlecase character.
*** 9300,9310 **** * @see Character#forDigit(int, int) * @see Character#getType(int) * @since 1.5 */ public static boolean isDigit(int codePoint) { ! return getType(codePoint) == Character.DECIMAL_DIGIT_NUMBER; } /** * Determines if a character is defined in Unicode. * <p> --- 9300,9310 ---- * @see Character#forDigit(int, int) * @see Character#getType(int) * @since 1.5 */ public static boolean isDigit(int codePoint) { ! return CharacterData.of(codePoint).isDigit(codePoint); } /** * Determines if a character is defined in Unicode. * <p>