Package | Description |
---|---|
com.google.common.base |
Basic utility libraries and interfaces.
|
Modifier and Type | Field and Description |
---|---|
static CharMatcher |
CharMatcher.ANY
Deprecated.
Use
any() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.ASCII
Deprecated.
Use
ascii() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.BREAKING_WHITESPACE
Deprecated.
Use
breakingWhitespace() instead. This constant is scheduled
to be removed in June 2018. |
static CharMatcher |
CharMatcher.DIGIT
Deprecated.
Use
digit() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.INVISIBLE
Deprecated.
Use
invisible() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.JAVA_DIGIT
Deprecated.
Use
javaDigit() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.JAVA_ISO_CONTROL
Deprecated.
Use
javaIsoControl() instead. This constant is scheduled to
be removed in June 2018. |
static CharMatcher |
CharMatcher.JAVA_LETTER
Deprecated.
Use
javaLetter() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.JAVA_LETTER_OR_DIGIT
Deprecated.
Use
javaLetterOrDigit() instead. This constant is scheduled
to be removed in June 2018. |
static CharMatcher |
CharMatcher.JAVA_LOWER_CASE
Deprecated.
Use
javaLowerCase() instead. This constant is scheduled to
be removed in June 2018. |
static CharMatcher |
CharMatcher.JAVA_UPPER_CASE
Deprecated.
Use
javaUpperCase() instead. This constant is scheduled to
be removed in June 2018. |
static CharMatcher |
CharMatcher.NONE
Deprecated.
Use
none() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.SINGLE_WIDTH
Deprecated.
Use
singleWidth() instead. This constant is scheduled to be
removed in June 2018. |
static CharMatcher |
CharMatcher.WHITESPACE
Deprecated.
Use
whitespace() instead. This constant is scheduled to be
removed in June 2018. |
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.any()
Matches any character.
|
static CharMatcher |
CharMatcher.anyOf(CharSequence sequence)
Returns a
char matcher that matches any character present in the given character
sequence. |
static CharMatcher |
CharMatcher.ascii()
Determines whether a character is ASCII, meaning that its code point is less than 128.
|
static CharMatcher |
CharMatcher.breakingWhitespace()
Determines whether a character is a breaking whitespace (that is, a whitespace which can be
interpreted as a break between words for formatting purposes).
|
static CharMatcher |
CharMatcher.digit()
Determines whether a character is a digit according to
Unicode.
|
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.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.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. |
static CharMatcher |
CharMatcher.javaDigit()
Determines whether a character is a digit according to Java's definition.
|
static CharMatcher |
CharMatcher.javaIsoControl()
Determines whether a character is an ISO control character as specified by
Character.isISOControl(char) . |
static CharMatcher |
CharMatcher.javaLetter()
Determines whether a character is a letter according to Java's definition.
|
static CharMatcher |
CharMatcher.javaLetterOrDigit()
Determines whether a character is a letter or digit according to
Java's definition.
|
static CharMatcher |
CharMatcher.javaLowerCase()
Determines whether a character is lower case according to
Java's definition.
|
static CharMatcher |
CharMatcher.javaUpperCase()
Determines whether a character is upper case according to
Java's definition.
|
CharMatcher |
CharMatcher.negate()
Returns a matcher that matches any character not matched by this matcher.
|
static CharMatcher |
CharMatcher.none()
Matches no characters.
|
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 which may be faster to
query than the original; your mileage may vary. |
static CharMatcher |
CharMatcher.singleWidth()
Determines whether a character is single-width (not double-width).
|
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 Splitter |
Splitter.on(CharMatcher separatorMatcher)
Returns a splitter that considers any single character matched by the given
CharMatcher
to be a separator. |
CharMatcher |
CharMatcher.or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher or
other . |
Splitter |
Splitter.trimResults(CharMatcher trimmer)
Returns a splitter that behaves equivalently to
this splitter, but removes all leading
or trailing characters matching the given CharMatcher from each returned substring. |
Copyright © 2010-2016. All Rights Reserved.