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

Method matchesAllOf

output/java_guava/1.4.18/CharMatcher.java:663–670  ·  view source on GitHub ↗

Returns true if a character sequence contains only matching characters. The default implementation iterates over the sequence, invoking #matches for each character, until this returns false or the end is reached. @param sequence the character sequence to examine, possibl

(CharSequence sequence)

Source from the content-addressed store, hash-verified

661
662
663 public boolean matchesAllOf(CharSequence sequence) {
664 for (int i = sequence.length() - 1; i >= 0; i--) {
665 if (!matches(sequence.charAt(i))) {
666 return false;
667 }
668 }
669 return true;
670 }
671
672 /**
673 * Returns {@code true} if a character sequence contains no matching characters. Equivalent to

Callers 4

normalizeTokenMethod · 0.45
applyMethod · 0.45
validatePartMethod · 0.45
matchesNoneOfMethod · 0.45

Calls 2

matchesMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected