Indicates whether the specified character is a letter. @param c the character to check. @return true if c is a letter; false otherwise.
(char c)
| 3229 | * @return {@code true} if {@code c} is a letter; {@code false} otherwise. |
| 3230 | */ |
| 3231 | public static boolean isLetter(char c) { |
| 3232 | if (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')) { |
| 3233 | return true; |
| 3234 | } |
| 3235 | // if (c < 128) { |
| 3236 | return false; |
| 3237 | // } |
| 3238 | // int type = getType(c); |
| 3239 | // return type >= UPPERCASE_LETTER && type <= OTHER_LETTER; |
| 3240 | } |
| 3241 | |
| 3242 | /** |
| 3243 | * Indicates whether the specified code point is a letter. |