MCPcopy Create free account
hub / github.com/antlr/codebuff / isLowerCase

Method isLowerCase

output/java_guava/1.4.16/Ascii.java:516–520  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

514
515
516 public static boolean isLowerCase(char c) {
517 // Note: This was benchmarked against the alternate expression "(char)(c - 'a') < 26" (Nov '13)
518 // and found to perform at least as well, or better.
519 return (c >= 'a') && (c <= 'z');
520 }
521
522 /**
523 * Indicates whether {@code c} is one of the twenty-six uppercase ASCII alphabetic characters

Callers 3

hasLowerCaseMethod · 0.95
toUpperCaseMethod · 0.95
matchesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected