Uses of Class
com.google.common.base.CharMatcher
Packages that use CharMatcher
Package
Description
Basic utility libraries and interfaces.
Utility methods and classes for networking (such as IP addresses and domain names).
Testing utilities.
-
Uses of CharMatcher in com.google.common.base
Subclasses of CharMatcher in com.google.common.baseModifier and TypeClassDescriptionprivate static final class
Implementation ofand(CharMatcher)
.private static final class
Implementation ofany()
.private static final class
Implementation ofanyOf(CharSequence)
for three or more characters.private static final class
Implementation ofascii()
.private static final class
Fast matcher using aBitSet
table of matching characters.private static final class
Implementation ofbreakingWhitespace()
.private static final class
Implementation ofdigit()
.(package private) static class
A matcher for which precomputation will not yield any significant benefit.private static final class
Implementation offorPredicate(Predicate)
.private static final class
Implementation ofinRange(char, char)
.private static final class
Implementation ofinvisible()
.private static final class
Implementation ofis(char)
.private static final class
Implementation ofanyOf(CharSequence)
for exactly two characters.private static final class
Implementation ofisNot(char)
.private static final class
Implementation ofjavaDigit()
.private static final class
Implementation ofjavaIsoControl()
.private static final class
Implementation ofjavaLetter()
.private static final class
Implementation ofjavaLetterOrDigit()
.private static final class
Implementation ofjavaLowerCase()
.private static final class
Implementation ofjavaUpperCase()
.(package private) static class
CharMatcher.FastMatcher
which overridestoString()
with a custom name.private static class
Implementation ofCharMatcher.Negated.negate()
.private static class
Negation of aCharMatcher.FastMatcher
.private static final class
Implementation ofnone()
.private static final class
Implementation ofor(CharMatcher)
.private static class
Implementation that matches characters that fall within multiple ranges.private static final class
Implementation ofsingleWidth()
.(package private) static final class
Implementation ofwhitespace()
.(package private) final class
An immutable version of CharMatcher for smallish sets of characters that uses a hash table with linear probing to check for matches.Fields in com.google.common.base declared as CharMatcherModifier and TypeFieldDescription(package private) final CharMatcher
CharMatcher.And.first
(package private) final CharMatcher
CharMatcher.Or.first
(package private) static final CharMatcher
CharMatcher.Any.INSTANCE
(package private) static final CharMatcher
CharMatcher.Ascii.INSTANCE
(package private) static final CharMatcher
CharMatcher.BreakingWhitespace.INSTANCE
(package private) static final CharMatcher
CharMatcher.Digit.INSTANCE
(package private) static final CharMatcher
CharMatcher.Invisible.INSTANCE
(package private) static final CharMatcher
CharMatcher.JavaDigit.INSTANCE
(package private) static final CharMatcher
CharMatcher.JavaIsoControl.INSTANCE
(package private) static final CharMatcher
CharMatcher.JavaLetter.INSTANCE
(package private) static final CharMatcher
CharMatcher.JavaLetterOrDigit.INSTANCE
(package private) static final CharMatcher
CharMatcher.JavaLowerCase.INSTANCE
(package private) static final CharMatcher
CharMatcher.JavaUpperCase.INSTANCE
(package private) static final CharMatcher
CharMatcher.None.INSTANCE
(package private) static final CharMatcher
CharMatcher.SingleWidth.INSTANCE
(package private) static final CharMatcher
CharMatcher.Whitespace.INSTANCE
(package private) final CharMatcher
CharMatcher.Negated.original
(package private) final CharMatcher
CharMatcher.And.second
(package private) final CharMatcher
CharMatcher.Or.second
(package private) final CharMatcher
Splitter.SplittingIterator.trimmer
private final CharMatcher
Splitter.trimmer
private final CharMatcher
CaseFormat.wordBoundary
Methods in com.google.common.base that return CharMatcherModifier and TypeMethodDescriptionCharMatcher.and
(CharMatcher other) Returns a matcher that matches any character matched by both this matcher andother
.CharMatcher.Any.and
(CharMatcher other) CharMatcher.Is.and
(CharMatcher other) CharMatcher.IsNot.and
(CharMatcher other) CharMatcher.None.and
(CharMatcher other) static CharMatcher
CharMatcher.any()
Matches any character.static CharMatcher
CharMatcher.anyOf
(CharSequence sequence) Returns achar
matcher that matches any BMP 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()
Deprecated.Many digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.forPredicate
(Predicate<? super Character> predicate) Returns a matcher with identical behavior to the givenCharacter
-based predicate, but which operates on primitivechar
instances instead.(package private) static CharMatcher
static CharMatcher
CharMatcher.inRange
(char startInclusive, char endInclusive) Returns achar
matcher that matches any character in a given BMP range (both endpoints are inclusive).static CharMatcher
CharMatcher.invisible()
Deprecated.Most invisible characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.is
(char match) Returns achar
matcher that matches only one specified BMP character.static CharMatcher
CharMatcher.isNot
(char match) Returns achar
matcher that matches any character except the BMP character specified.static CharMatcher
CharMatcher.javaDigit()
Deprecated.Many digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.javaIsoControl()
Determines whether a character is an ISO control character as specified byCharacter.isISOControl(char)
.static CharMatcher
CharMatcher.javaLetter()
Deprecated.Most letters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.javaLetterOrDigit()
Deprecated.Most letters and digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.javaLowerCase()
Deprecated.Some lowercase characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.javaUpperCase()
Deprecated.Some uppercase characters are supplementary characters; see the class documentation.CharMatcher.Any.negate()
CharMatcher.FastMatcher.negate()
CharMatcher.Is.negate()
CharMatcher.IsNot.negate()
CharMatcher.negate()
Returns a matcher that matches any character not matched by this matcher.CharMatcher.Negated.negate()
CharMatcher.None.negate()
static CharMatcher
CharMatcher.none()
Matches no characters.static CharMatcher
CharMatcher.noneOf
(CharSequence sequence) Returns achar
matcher that matches any BMP character not present in the given character sequence.CharMatcher.Any.or
(CharMatcher other) CharMatcher.Is.or
(CharMatcher other) CharMatcher.IsNot.or
(CharMatcher other) CharMatcher.None.or
(CharMatcher other) CharMatcher.or
(CharMatcher other) Returns a matcher that matches any character matched by either this matcher orother
.(package private) static CharMatcher
Platform.precomputeCharMatcher
(CharMatcher matcher) final CharMatcher
CharMatcher.FastMatcher.precomputed()
final CharMatcher
CharMatcher.NegatedFastMatcher.precomputed()
CharMatcher.precomputed()
Returns achar
matcher functionally equivalent to this one, but which may be faster to query than the original; your mileage may vary.(package private) CharMatcher
CharMatcher.precomputedInternal()
This is the actual implementation ofprecomputed()
, but we bounce calls through a method onPlatform
so that we can have different behavior in GWT.private static CharMatcher
CharMatcher.precomputedPositive
(int totalCharacters, BitSet table, String description) Helper method forprecomputedInternal()
that doesn't test if the negation is cheaper.static CharMatcher
CharMatcher.singleWidth()
Deprecated.Many such characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher.whitespace()
Determines whether a character is whitespace according to the latest Unicode standard, as illustrated here.Methods in com.google.common.base with parameters of type CharMatcherModifier and TypeMethodDescriptionCharMatcher.and
(CharMatcher other) Returns a matcher that matches any character matched by both this matcher andother
.CharMatcher.Any.and
(CharMatcher other) CharMatcher.Is.and
(CharMatcher other) CharMatcher.IsNot.and
(CharMatcher other) CharMatcher.None.and
(CharMatcher other) static Splitter
Splitter.on
(CharMatcher separatorMatcher) Returns a splitter that considers any single character matched by the givenCharMatcher
to be a separator.CharMatcher.Any.or
(CharMatcher other) CharMatcher.Is.or
(CharMatcher other) CharMatcher.IsNot.or
(CharMatcher other) CharMatcher.None.or
(CharMatcher other) CharMatcher.or
(CharMatcher other) Returns a matcher that matches any character matched by either this matcher orother
.(package private) static CharMatcher
Platform.precomputeCharMatcher
(CharMatcher matcher) Splitter.trimResults
(CharMatcher trimmer) Returns a splitter that behaves equivalently tothis
splitter, but removes all leading or trailing characters matching the givenCharMatcher
from each returned substring.Constructors in com.google.common.base with parameters of type CharMatcherModifierConstructorDescription(package private)
And
(CharMatcher a, CharMatcher b) private
CaseFormat
(CharMatcher wordBoundary, String wordSeparator) (package private)
Negated
(CharMatcher original) (package private)
NegatedFastMatcher
(CharMatcher original) (package private)
Or
(CharMatcher a, CharMatcher b) private
Splitter
(Splitter.Strategy strategy, boolean omitEmptyStrings, CharMatcher trimmer, int limit) -
Uses of CharMatcher in com.google.common.net
Fields in com.google.common.net declared as CharMatcherModifier and TypeFieldDescriptionprivate static final CharMatcher
InternetDomainName.DASH_MATCHER
private static final CharMatcher
InternetDomainName.DIGIT_MATCHER
private static final CharMatcher
InternetDomainName.DOTS_MATCHER
private static final CharMatcher
InetAddresses.IPV4_DELIMITER_MATCHER
private static final CharMatcher
InetAddresses.IPV6_DELIMITER_MATCHER
private static final CharMatcher
InternetDomainName.LETTER_MATCHER
private static final CharMatcher
MediaType.LINEAR_WHITE_SPACE
private static final CharMatcher
InternetDomainName.PART_CHAR_MATCHER
private static final CharMatcher
MediaType.QUOTED_TEXT_MATCHER
private static final CharMatcher
MediaType.TOKEN_MATCHER
Matcher for type, subtype and attributes.Methods in com.google.common.net with parameters of type CharMatcherModifier and TypeMethodDescription(package private) char
MediaType.Tokenizer.consumeCharacter
(CharMatcher matcher) (package private) String
MediaType.Tokenizer.consumeToken
(CharMatcher matcher) (package private) String
MediaType.Tokenizer.consumeTokenIfPresent
(CharMatcher matcher) -
Uses of CharMatcher in com.google.common.testing
Methods in com.google.common.testing that return CharMatcherModifier and TypeMethodDescription(package private) CharMatcher
FreshValueGenerator.generateCharMatcher()