Returns a {@code char} matcher that matches any character in a given BMP range (both endpoints are inclusive). For example, to match any lowercase letter of the English alphabet, use {@code CharMatcher.inRange('a', 'z')}. @throws IllegalArgumentException if {@code endInclusive < startInclusive}
(char startInclusive, char endInclusive)
| 342 | * @throws IllegalArgumentException if {@code endInclusive < startInclusive} |
| 343 | */ |
| 344 | public static CharMatcher inRange(char startInclusive, char endInclusive) { |
| 345 | return new InRange(startInclusive, endInclusive); |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Returns a matcher with identical behavior to the given {@link Character}-based predicate, but |
no outgoing calls