Uses of Interface
com.google.mu.util.CharPredicate
Packages that use CharPredicate
Package
Description
Parser combinator that's free from infinite loop or accidental left recursion (requires dot-parse artifact)
StringFormat, Substring, Optionals and more...
- 
Uses of CharPredicate in com.google.common.labs.parse
Classes in com.google.common.labs.parse that implement CharPredicateModifier and TypeClassDescriptionfinal classRepresents a set of characters specified by a regex-like character set string.Methods in com.google.common.labs.parse with parameters of type CharPredicateModifier and TypeMethodDescriptionParser.consecutive(CharPredicate matcher, String name) Matches one or more consecutive characters as specified bymatcher.Parser.notImmediatelyFollowedBy(CharPredicate predicate, String name) A form of negative lookahead such that the match is rejected if immediately followed by (no skippable characters as specified byparseSkipping()in between) a character that matchespredicate.Parser.OrEmpty.parseSkipping(CharPredicate charsToSkip, String input) Parses the entire input string, ignoringcharsToSkip, and returns the result; if there's nothing to parse except skippable content, returns the default empty value.final TParser.parseSkipping(CharPredicate charsToSkip, String input) ParsesinputwhilecharsToSkiparound atomic matches.Parser.single(CharPredicate matcher, String name) Matches a character as specified bymatcher.Parser.skipping(CharPredicate charsToSkip) Starts a fluent chain for parsing inputs while skippingcharsToSkip.Parser.zeroOrMore(CharPredicate charsToMatch, String name) Starts a fluent chain for matching consecutivecharsToMatchzero or more times. - 
Uses of CharPredicate in com.google.mu.util
Fields in com.google.mu.util declared as CharPredicateModifier and TypeFieldDescriptionstatic final CharPredicateCharPredicate.ALPHAEquivalent to the[a-zA-Z]character class.static final CharPredicateCharPredicate.ANYCorresponds to all characters.static final CharPredicateCharPredicate.ASCIICorresponds to the ASCII characters.static final CharPredicateCharPredicate.NONECorresponds to no characters.static final CharPredicateCharPredicate.WORDEquivalent to the[a-zA-Z0-9_]character class.Methods in com.google.mu.util that return CharPredicateModifier and TypeMethodDescriptiondefault CharPredicateCharPredicate.and(CharPredicate that) Returns aCharPredicatethat evaluates true if both this andthatpredicate evaluate to true.static CharPredicateReturns a CharPredicate that matches any ofchars.static CharPredicateCharPredicate.is(char ch) Returns a CharPredicate for the range of characters:[from, to].static CharPredicateCharPredicate.isNot(char ch) Returns a CharPredicate that matches exceptch.static CharPredicateReturns a CharPredicate that matches any ofchars.default CharPredicateCharPredicate.not()Returns the negation of thisCharPredicate.default CharPredicateCharPredicate.or(char ch) Returns aCharPredicatethat evaluates true if either this predicate evaluates to true, or the character isch.default CharPredicateCharPredicate.or(CharPredicate that) Returns aCharPredicatethat evaluates true if either this orthatpredicate evaluate to true.default CharPredicateCharPredicate.orRange(char from, char to) Returns aCharPredicatethat evaluates true if either this predicate evaluates to true, or the character is in the range of[from, to].static CharPredicateCharPredicate.range(char from, char to) Returns a CharPredicate for the range of characters:[from, to].Methods in com.google.mu.util with parameters of type CharPredicateModifier and TypeMethodDescriptionstatic Substring.RepeatingPatternSubstring.all(CharPredicate matcher) Returns aSubstring.RepeatingPatternthat matches all characters that matchmatcherin the input string.default CharPredicateCharPredicate.and(CharPredicate that) Returns aCharPredicatethat evaluates true if both this andthatpredicate evaluate to true.static Substring.PatternSubstring.consecutive(CharPredicate matcher) Returns aPatternthat matches the first non-empty sequence of consecutive characters identified bymatcher.static Substring.PatternSubstring.first(CharPredicate charMatcher) Returns aPatternthat matches the first character found bycharMatcher.booleanSubstring.Match.isFollowedBy(CharPredicate lookahead) Returns true if the match is immediately followed by a character that matches thelookaheadpredicate.booleanSubstring.Match.isPrecededBy(CharPredicate lookbehind) Returns true if the match immediately follows a character that matches thelookbehindpredicate.static Substring.PatternSubstring.last(CharPredicate charMatcher) Returns aPatternthat matches the last character found bycharMatcher.static Substring.PatternSubstring.leading(CharPredicate matcher) Returns aPatternthat matches from the beginning of the input string, a non-empty sequence of leading characters identified bymatcher.default CharPredicateCharPredicate.or(CharPredicate that) Returns aCharPredicatethat evaluates true if either this orthatpredicate evaluate to true.final Substring.PatternSubstring.Pattern.separatedBy(CharPredicate separator) Returns an otherwise equivalentPattern, except it only matches if it's next to the beginning of the string, the end of the string, or theseparatorcharacter(s).Substring.Pattern.separatedBy(CharPredicate separatorBefore, CharPredicate separatorAfter) Returns an otherwise equivalentPattern, except it requires the beginning of the match must either be the beginning of the string, or be separated from the rest of the string by theseparatorBeforecharacter; and the end of the match must either be the end of the string, or be separated from the rest of the string by theseparatorAftercharacter.static Substring.PatternSubstring.trailing(CharPredicate matcher) Returns aPatternthat matches from the end of the input string, a non-empty sequence of trailing characters identified bymatcher.CaseBreaker.withLowerCaseChars(CharPredicate camelLower) Returns a new instance usingcamelLowerto identify lower case characters (don't forget to include digits if they should also be treated as lower case).CaseBreaker.withPunctuationChars(CharPredicate punctuation) Returns a new instance usingpunctuationto identify punctuation characters (ones that separate words but aren't themselves included in the result), for example if you want to support dash-case using the en dash (–) character.