Indicates whether c is one of the twenty-six lowercase ASCII alphabetic characters between 'a' and 'z' inclusive. All others (including non-ASCII characters) return false.
(char c)
| 553 | |
| 554 | |
| 555 | public static boolean isLowerCase(char c) { |
| 556 | // Note: This was benchmarked against the alternate expression "(char)(c - 'a') < 26" (Nov '13) |
| 557 | // and found to perform at least as well, or better. |
| 558 | return (c >= 'a') && (c <= 'z'); |
| 559 | } |
| 560 | |
| 561 | /** |
| 562 | * Indicates whether {@code c} is one of the twenty-six uppercase ASCII alphabetic characters |
no outgoing calls
no test coverage detected