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

Method inRange

output/java_guava/1.4.19/CharMatcher.java:474–477  ·  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

472
473
474 public static CharMatcher inRange(
475 final char startInclusive, final char endInclusive) {
476 return new InRange(startInclusive, endInclusive);
477 }
478
479 /**
480 * 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