Example usage for Java com.google.common.base CharMatcher fields, constructors, methods, implement or subclass
The text is from its open source code.
CharMatcher | WHITESPACE Determines whether a character is whitespace according to the latest Unicode standard, as illustrated here. |
CharMatcher | BREAKING_WHITESPACE Determines whether a character is a breaking whitespace (that is, a whitespace which can be interpreted as a break between words for formatting purposes). |
CharMatcher | ASCII Determines whether a character is ASCII, meaning that its code point is less than 128. |
CharMatcher | DIGIT Determines whether a character is a digit according to Unicode. |
CharMatcher | JAVA_DIGIT Determines whether a character is a digit according to Character#isDigit(char) Java's definition . |
CharMatcher | JAVA_LETTER Determines whether a character is a letter according to Character#isLetter(char) Java's definition . |
CharMatcher | JAVA_LETTER_OR_DIGIT Determines whether a character is a letter or digit according to Character#isLetterOrDigit(char) Java's definition . |
CharMatcher | JAVA_UPPER_CASE Determines whether a character is upper case according to Character#isUpperCase(char) Java's definition . |
CharMatcher | JAVA_LOWER_CASE Determines whether a character is lower case according to Character#isLowerCase(char) Java's definition . |
CharMatcher | JAVA_ISO_CONTROL Determines whether a character is an ISO control character as specified by Character#isISOControl(char) . |
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. |
CharMatcher | NONE Matches no characters. |
CharMatcher() Constructor for use by subclasses. |
CharMatcher | anyOf(final CharSequence sequence) Returns a char matcher that matches any character present in the given character sequence. |
boolean | apply(Character character) |
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). |
String | collapseFrom(CharSequence sequence, char replacement) Returns a string copy of the input character sequence, with each group of consecutive characters that match this matcher replaced by a single replacement character. |
int | countIn(CharSequence sequence) Returns the number of matching characters found in a character sequence. |
CharMatcher | forPredicate(final Predicate super Character> predicate) Returns a matcher with identical behavior to the given Character -based predicate, but which operates on primitive char instances instead. |
int | indexIn(CharSequence sequence, int start) Returns the index of the first matching character in a character sequence, starting from a given position, or -1 if no character matches after that position. |
int | indexIn(CharSequence sequence) Returns the index of the first matching character in a character sequence, or -1 if no matching character is present. |
CharMatcher | inRange(final char startInclusive, final char endInclusive) Returns a char matcher that matches any character in a given range (both endpoints are inclusive). |
CharMatcher | is(final char match) Returns a char matcher that matches only one specified character. |
CharMatcher | isNot(final char match) Returns a char matcher that matches any character except the one specified. |
CharMatcher | javaDigit() Determines whether a character is a digit according to Character#isDigit(char) Java's definition . |
CharMatcher | javaIsoControl() Determines whether a character is an ISO control character as specified by Character#isISOControl(char) . |
CharMatcher | javaLetterOrDigit() Determines whether a character is a letter or digit according to Character#isLetterOrDigit(char) Java's definition . |
CharMatcher | javaLowerCase() Determines whether a character is lower case according to Character#isLowerCase(char) Java's definition . |
CharMatcher | javaUpperCase() Determines whether a character is upper case according to Character#isUpperCase(char) Java's definition . |
boolean | matches(char c) Determines a true or false value for the given character. |
boolean | matchesAllOf(CharSequence sequence) Returns true if a character sequence contains only matching characters. |
boolean | matchesAnyOf(CharSequence sequence) Returns true if a character sequence contains at least one matching character. |
boolean | matchesNoneOf(CharSequence sequence) Returns true if a character sequence contains no matching characters. |
CharMatcher | negate() Returns a matcher that matches any character not matched by this matcher. |
CharMatcher | noneOf(CharSequence sequence) Returns a char matcher that matches any character not present in the given character sequence. |
CharMatcher | or(CharMatcher other) Returns a matcher that matches any character matched by either this matcher or other . |
String | removeFrom(CharSequence sequence) Returns a string containing all non-matching characters of a character sequence, in order. |
String | replaceFrom(CharSequence sequence, char replacement) Returns a string copy of the input character sequence, with each character that matches this matcher replaced by a given replacement character. |
String | replaceFrom(CharSequence sequence, CharSequence replacement) Returns a string copy of the input character sequence, with each character that matches this matcher replaced by a given replacement sequence. |
String | retainFrom(CharSequence sequence) Returns a string containing all matching characters of a character sequence, in order. |
String | trimFrom(CharSequence sequence) Returns a substring of the input character sequence that omits all characters this matcher matches from the beginning and from the end of the string. |
String | trimLeadingFrom(CharSequence sequence) Returns a substring of the input character sequence that omits all characters this matcher matches from the beginning of the string. |
String | trimTrailingFrom(CharSequence sequence) Returns a substring of the input character sequence that omits all characters this matcher matches from the end of the string. |