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)
| 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 |