@ Cached @ DontLabel public Rule anyOf ( final Characters characters ) { Objects . requireNonNull ( characters ) ; if ( ! characters . isSubtractive ( ) && characters . getChars ( ) . length == 1 ) return ch ( characters . getChars ( ) [ 0 ] ) ; if ( characters . equals ( Characters . NONE ) ) return NOTHING ; return new AnyOfMatcher ( characters ) ; }
Match any given character among a set of characters