| Package | Description |
|---|---|
| com.google.gdata.util.common.base |
| Modifier and Type | Field and Description |
|---|---|
static CharMatcher |
CharMatcher.ANY
Matches any character.
|
static CharMatcher |
CharMatcher.ASCII
Determines whether a character is ASCII, meaning that its code point is
less than 128.
|
static CharMatcher |
CharMatcher.DIGIT
Determines whether a character is a digit according to
Unicode.
|
static CharMatcher |
CharMatcher.INVISIBLE
Determines whether a character is invisible; that is, if its Unicode
category is any of SPACE_SEPARATOR, LINE_SEPARATOR,
PARAGRAPH_SEPARATOR, CONTROL, FORMAT, SURROGATE, and PRIVATE_USE according
to ICU4J.
|
static CharMatcher |
CharMatcher.JAVA_DIGIT
Determines whether a character is a digit according to
Java's definition. |
static CharMatcher |
CharMatcher.JAVA_ISO_CONTROL
Determines whether a character is an ISO control character according to
Character.isISOControl(char). |
static CharMatcher |
CharMatcher.JAVA_LETTER
Determines whether a character is a letter according to
Java's definition. |
static CharMatcher |
CharMatcher.JAVA_LETTER_OR_DIGIT
Determines whether a character is a letter or digit according to
Java's definition. |
static CharMatcher |
CharMatcher.JAVA_LOWER_CASE
Determines whether a character is lower case according to
Java's definition. |
static CharMatcher |
CharMatcher.JAVA_UPPER_CASE
Determines whether a character is upper case according to
Java's definition. |
static CharMatcher |
CharMatcher.JAVA_WHITESPACE
Determines whether a character is whitespace according to
Java's definition; it is usually preferable
to use WHITESPACE. |
static CharMatcher |
CharMatcher.LEGACY_WHITESPACE
Determines whether a character is whitespace according to an arbitrary
definition used by
StringUtil for years. |
static CharMatcher |
CharMatcher.NONE
Matches no characters.
|
static CharMatcher |
CharMatcher.WHITESPACE
Determines whether a character is whitespace according to the latest
Unicode standard, as illustrated
here.
|
| Modifier and Type | Method and Description |
|---|---|
CharMatcher |
CharMatcher.and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher
and
other. |
static CharMatcher |
CharMatcher.anyOf(CharSequence sequence)
Returns a
char matcher that matches any character present in the
given character sequence. |
static CharMatcher |
CharMatcher.forPredicate(Predicate<? super Character> predicate)
Returns a matcher with identical behavior to the given
Character-based predicate, but which operates on primitive char
instances instead. |
static CharMatcher |
CharMatcher.inRange(char startInclusive,
char endInclusive)
Returns a
char matcher that matches any character in a given range
(both endpoints are inclusive). |
static CharMatcher |
CharMatcher.is(char match)
Returns a
char matcher that matches only one specified character. |
static CharMatcher |
CharMatcher.isNot(char match)
Returns a
char matcher that matches any character except the one
specified. |
CharMatcher |
CharMatcher.negate()
Returns a matcher that matches any character not matched by this matcher.
|
static CharMatcher |
CharMatcher.noneOf(CharSequence sequence)
Returns a
char matcher that matches any character not present in
the given character sequence. |
CharMatcher |
CharMatcher.or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher
or
other. |
CharMatcher |
CharMatcher.precomputed()
Returns a
char matcher functionally equivalent to this one, but
with its configuration cached in an eight-kilobyte bit array. |
| Modifier and Type | Method and Description |
|---|---|
CharMatcher |
CharMatcher.and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher
and
other. |
CharMatcher |
CharMatcher.or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher
or
other. |
Copyright © 2012. All Rights Reserved.