Indicates whether the specified character is a digit. @param c the character to check. @return true if c is a digit; false otherwise.
(char c)
| 3043 | * otherwise. |
| 3044 | */ |
| 3045 | public static boolean isDigit(char c) { |
| 3046 | // Optimized case for ASCII |
| 3047 | if ('0' <= c && c <= '9') { |
| 3048 | return true; |
| 3049 | } |
| 3050 | // if (c < 1632) { |
| 3051 | return false; |
| 3052 | // } |
| 3053 | // return getType(c) == DECIMAL_DIGIT_NUMBER; |
| 3054 | } |
| 3055 | |
| 3056 | /** |
| 3057 | * Indicates whether the specified code point is a digit. |