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

Method inRange

corpus/java/training/guava/base/CharMatcher.java:423–425  ·  view source on GitHub ↗

Returns a char matcher that matches any character in a given range (both endpoints are inclusive). For example, to match any lowercase letter of the English alphabet, use CharMatcher.inRange('a', 'z'). @throws IllegalArgumentException if endInclusive < startInclusive

(final char startInclusive, final char endInclusive)

Source from the content-addressed store, hash-verified

421 * @throws IllegalArgumentException if {@code endInclusive < startInclusive}
422 */
423 public static CharMatcher inRange(final char startInclusive, final char endInclusive) {
424 return new InRange(startInclusive, endInclusive);
425 }
426
427 /**
428 * Returns a matcher with identical behavior to the given {@link Character}-based predicate, but

Callers 1

CaseFormatEnum · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected