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

Method lowerCase

output/java_guava/1.4.18/BaseEncoding.java:543–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

541 }
542
543 Alphabet lowerCase() {
544 if (!hasUpperCase()) {
545 return this;
546 } else {
547 checkState(!hasLowerCase(), "Cannot call lowerCase() on a mixed-case alphabet");
548 char[] lowerCased = new char[chars.length];
549 for (int i = 0; i < chars.length; i++) {
550 lowerCased[i] = Ascii.toLowerCase(chars[i]);
551 }
552 return new Alphabet(name + ".lowerCase()", lowerCased);
553 }
554 }
555
556 @Override
557 public boolean matches(char c) {

Callers

nothing calls this directly

Calls 4

hasUpperCaseMethod · 0.95
hasLowerCaseMethod · 0.95
toLowerCaseMethod · 0.95
checkStateMethod · 0.45

Tested by

no test coverage detected