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

Method inRange

output/java_guava/1.4.13/CharMatcher.java:474–476  ·  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(final char startInclusive, final char endInclusive) {
475 return new InRange(startInclusive, endInclusive);
476 }
477
478 /**
479 * 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