public static CharMatcher inRange(final char startInclusive, final char endInclusive) {
    checkArgument(endInclusive >= startInclusive);
    return new FastMatcher() {
      @Override public boolean matches(char c) {
        return startInclusive <= c && c <= endInclusive;
      }

      @Override public String toString() {
        return "CharMatcher.inRange('" + showCharacter(startInclusive)
            + "', '" + showCharacter(endInclusive) + "')";
      }
    };
  }
public static CharMatcher inRange ( final char startInclusive , final char endInclusive ) { checkArgument ( endInclusive >= startInclusive ) ; return new FastMatcher ( ) { @ Override public boolean matches ( char c ) { return startInclusive <= c && c <= endInclusive ; } @ Override public String toString ( ) { return "CharMatcher.inRange('" + showCharacter ( startInclusive ) + "', '" + showCharacter ( endInclusive ) + "')" ; } } ; }
Returns a {@code 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 {@code
CharMatcher.inRange('a', 'z')}.

@throws IllegalArgumentException if {@code endInclusive < startInclusive}