9715 *
9716 * @param ch the character to be tested.
9717 * @return {@code true} if the character may be part of a
9718 * Java identifier; {@code false} otherwise.
9719 * @see Character#isJavaLetter(char)
9720 * @see Character#isJavaIdentifierStart(char)
9721 * @see Character#isJavaIdentifierPart(char)
9722 * @see Character#isLetter(char)
9723 * @see Character#isLetterOrDigit(char)
9724 * @see Character#isUnicodeIdentifierPart(char)
9725 * @see Character#isIdentifierIgnorable(char)
9726 * @since 1.0.2
9727 * @deprecated Replaced by isJavaIdentifierPart(char).
9728 */
9729 @Deprecated(since="1.1")
9730 public static boolean isJavaLetterOrDigit(char ch) {
9731 return isJavaIdentifierPart(ch);
9732 }
9733
9734 /**
9735 * Determines if the specified character (Unicode code point) is an alphabet.
9736 * <p>
9737 * A character is considered to be alphabetic if its general category type,
9738 * provided by {@link Character#getType(int) getType(codePoint)}, is any of
9739 * the following:
9740 * <ul>
9741 * <li> {@code UPPERCASE_LETTER}
9742 * <li> {@code LOWERCASE_LETTER}
9743 * <li> {@code TITLECASE_LETTER}
9744 * <li> {@code MODIFIER_LETTER}
9745 * <li> {@code OTHER_LETTER}
9746 * <li> {@code LETTER_NUMBER}
9747 * </ul>
9748 * or it has contributory property Other_Alphabetic as defined by the
9749 * Unicode Standard.
9750 *
9751 * @param codePoint the character (Unicode code point) to be tested.
9752 * @return {@code true} if the character is a Unicode alphabet
9753 * character, {@code false} otherwise.
9754 * @since 1.7
9755 */
|
9715 *
9716 * @param ch the character to be tested.
9717 * @return {@code true} if the character may be part of a
9718 * Java identifier; {@code false} otherwise.
9719 * @see Character#isJavaLetter(char)
9720 * @see Character#isJavaIdentifierStart(char)
9721 * @see Character#isJavaIdentifierPart(char)
9722 * @see Character#isLetter(char)
9723 * @see Character#isLetterOrDigit(char)
9724 * @see Character#isUnicodeIdentifierPart(char)
9725 * @see Character#isIdentifierIgnorable(char)
9726 * @since 1.0.2
9727 * @deprecated Replaced by isJavaIdentifierPart(char).
9728 */
9729 @Deprecated(since="1.1")
9730 public static boolean isJavaLetterOrDigit(char ch) {
9731 return isJavaIdentifierPart(ch);
9732 }
9733
9734 /**
9735 * Determines if the specified character (Unicode code point) is alphabetic.
9736 * <p>
9737 * A character is considered to be alphabetic if its general category type,
9738 * provided by {@link Character#getType(int) getType(codePoint)}, is any of
9739 * the following:
9740 * <ul>
9741 * <li> {@code UPPERCASE_LETTER}
9742 * <li> {@code LOWERCASE_LETTER}
9743 * <li> {@code TITLECASE_LETTER}
9744 * <li> {@code MODIFIER_LETTER}
9745 * <li> {@code OTHER_LETTER}
9746 * <li> {@code LETTER_NUMBER}
9747 * </ul>
9748 * or it has contributory property Other_Alphabetic as defined by the
9749 * Unicode Standard.
9750 *
9751 * @param codePoint the character (Unicode code point) to be tested.
9752 * @return {@code true} if the character is a Unicode alphabet
9753 * character, {@code false} otherwise.
9754 * @since 1.7
9755 */
|