MCPcopy
hub / github.com/google/guava / isLowerCase

Method isLowerCase

guava/src/com/google/common/base/Ascii.java:503–507  ·  view source on GitHub ↗

Indicates whether {@code c} is one of the twenty-six lowercase ASCII alphabetic characters between {@code 'a'} and {@code 'z'} inclusive. All others (including non-ASCII characters) return {@code false}.

(char c)

Source from the content-addressed store, hash-verified

501 * return {@code false}.
502 */
503 public static boolean isLowerCase(char c) {
504 // Note: This was benchmarked against the alternate expression "(char)(c - 'a') < 26" (Nov '13)
505 // and found to perform at least as well, or better.
506 return (c >= 'a') && (c <= 'z');
507 }
508
509 /**
510 * Indicates whether {@code c} is one of the twenty-six uppercase ASCII alphabetic characters

Callers 6

hasLowerCaseMethod · 0.95
toUpperCaseMethod · 0.95
testCharsIgnoredMethod · 0.95
testCharsLowerMethod · 0.95
testCharsUpperMethod · 0.95
matchesMethod · 0.45

Calls

no outgoing calls

Tested by 3

testCharsIgnoredMethod · 0.76
testCharsLowerMethod · 0.76
testCharsUpperMethod · 0.76