jfun.parsec.pattern
public final class CharPredicates extends Object
Method Summary | |
---|---|
static CharPredicate | always()
A predicate that always returns true. |
static CharPredicate | among(char[] chars)
among chars. |
static CharPredicate | and(CharPredicate cp1, CharPredicate cp2)
Logical and of two CharPredicate objects. |
static CharPredicate | and(CharPredicate... cps)
Logical and of an array of CharPredicate objects. |
static CharPredicate | isAlpha()
[a-zA-Z]. |
static CharPredicate | isAlphaNumeric()
[a-zA-Z0-9_] |
static CharPredicate | isAlpha_()
[a-zA-Z_]. |
static CharPredicate | isChar(char a)
== a. |
static CharPredicate | isDigit()
between 0 and 9. |
static CharPredicate | isHexDigit()
is hex digit. |
static CharPredicate | isLetter()
is letter. |
static CharPredicate | isLowercase()
[a-z]. |
static CharPredicate | isUppercase()
[A-Z]. |
static CharPredicate | isWhitespace()
is white space. |
static CharPredicate | never()
A predicate that always returns false. |
static CharPredicate | not(CharPredicate cp)
Negate a CharPredicate object. |
static CharPredicate | notAmong(char[] chars)
not among chars. |
static CharPredicate | notChar(char a)
! |
static CharPredicate | notRange(char a, char b)
not between a and b inclusive. |
static CharPredicate | or(CharPredicate cp1, CharPredicate cp2)
Logical or of two CharPredicate objects. |
static CharPredicate | or(CharPredicate... cps)
Logical or of an array of CharPredicate objects. |
static CharPredicate | range(char a, char b)
between a and b inclusive. |