UnicodeCharMatcher class

Character matcher function that classifies characters using official Unicode categories and properties.

Inheritance

Constructors

UnicodeCharMatcher(List<int> data, int mask)
const
UnicodeCharMatcher.asciiHexDigit()
factory
UnicodeCharMatcher.bidiControl()
factory
UnicodeCharMatcher.casedLetter()
General Category Groups
factory
UnicodeCharMatcher.dash()
factory
UnicodeCharMatcher.deprecated()
factory
UnicodeCharMatcher.diacritic()
factory
UnicodeCharMatcher.extender()
factory
UnicodeCharMatcher.hexDigit()
factory
UnicodeCharMatcher.hyphen()
factory
UnicodeCharMatcher.idCompatMathContinue()
factory
UnicodeCharMatcher.idCompatMathStart()
factory
UnicodeCharMatcher.ideographic()
factory
UnicodeCharMatcher.idsBinaryOperator()
factory
UnicodeCharMatcher.idsTrinaryOperator()
factory
UnicodeCharMatcher.idsUnaryOperator()
factory
UnicodeCharMatcher.joinControl()
factory
UnicodeCharMatcher.letter()
factory
UnicodeCharMatcher.letterLowercase()
factory
UnicodeCharMatcher.letterModifier()
factory
UnicodeCharMatcher.letterOther()
factory
UnicodeCharMatcher.letterTitlecase()
factory
UnicodeCharMatcher.letterUppercase()
General Category
factory
UnicodeCharMatcher.logicalOrderException()
factory
UnicodeCharMatcher.mark()
factory
UnicodeCharMatcher.markEnclosing()
factory
UnicodeCharMatcher.markNonspacing()
factory
UnicodeCharMatcher.markSpacingCombining()
factory
UnicodeCharMatcher.noncharacterCodePoint()
factory
UnicodeCharMatcher.number()
factory
UnicodeCharMatcher.numberDecimalDigit()
factory
UnicodeCharMatcher.numberLetter()
factory
UnicodeCharMatcher.numberOther()
factory
UnicodeCharMatcher.other()
factory
UnicodeCharMatcher.otherAlphabetic()
factory
UnicodeCharMatcher.otherControl()
factory
UnicodeCharMatcher.otherDefaultIgnorableCodePoint()
factory
UnicodeCharMatcher.otherFormat()
factory
UnicodeCharMatcher.otherGraphemeExtend()
factory
UnicodeCharMatcher.otherIdContinue()
factory
UnicodeCharMatcher.otherIdStart()
factory
UnicodeCharMatcher.otherLowercase()
factory
UnicodeCharMatcher.otherMath()
factory
UnicodeCharMatcher.otherNotAssigned()
factory
UnicodeCharMatcher.otherPrivateUse()
factory
UnicodeCharMatcher.otherSurrogate()
factory
UnicodeCharMatcher.otherUppercase()
factory
UnicodeCharMatcher.patternSyntax()
factory
UnicodeCharMatcher.patternWhiteSpace()
factory
UnicodeCharMatcher.prependedConcatenationMark()
factory
UnicodeCharMatcher.punctuation()
factory
UnicodeCharMatcher.punctuationClose()
factory
UnicodeCharMatcher.punctuationConnector()
factory
UnicodeCharMatcher.punctuationDash()
factory
UnicodeCharMatcher.punctuationFinalQuote()
factory
UnicodeCharMatcher.punctuationInitialQuote()
factory
UnicodeCharMatcher.punctuationOpen()
factory
UnicodeCharMatcher.punctuationOther()
factory
UnicodeCharMatcher.quotationMark()
factory
UnicodeCharMatcher.radical()
factory
UnicodeCharMatcher.regionalIndicator()
factory
UnicodeCharMatcher.sentenceTerminal()
factory
UnicodeCharMatcher.separator()
factory
UnicodeCharMatcher.separatorLine()
factory
UnicodeCharMatcher.separatorParagraph()
factory
UnicodeCharMatcher.separatorSpace()
factory
UnicodeCharMatcher.softDotted()
factory
UnicodeCharMatcher.symbol()
factory
UnicodeCharMatcher.symbolCurrency()
factory
UnicodeCharMatcher.symbolMath()
factory
UnicodeCharMatcher.symbolModifier()
factory
UnicodeCharMatcher.symbolOther()
factory
UnicodeCharMatcher.terminalPunctuation()
factory
UnicodeCharMatcher.unifiedIdeograph()
factory
UnicodeCharMatcher.variationSelector()
factory
UnicodeCharMatcher.whiteSpace()
Properties
factory

Properties

data List<int>
final
defaultToStringPrinter ObjectPrinter
Override to configure the empty ObjectPrinter.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mask int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toStringPrinter ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setterinherited

Methods

allMatches(String sequence, [int start = 0]) Iterable<Match>
Matches this pattern against the string repeatedly.
inherited
anyOf(String sequence) bool
Returns true if the sequence contains at least one matching character.
inherited
call(int value) bool
Determines if the given Unicode code-point value belongs to this character class. See match for details.
inherited
collapseFrom(String sequence, String replacement) String
Replaces each group of consecutive matched characters in sequence with the specified replacement.
inherited
countIn(String sequence) int
Counts the number of matches in sequence.
inherited
everyOf(String sequence) bool
Returns true if the sequence contains only matching characters.
inherited
firstIndexIn(String sequence, [int start = 0]) int
Returns the first matching index in sequence starting at start (inclusive). Returns -1 if it could not be found.
inherited
lastIndexIn(String sequence, [int? start]) int
Returns the first matching index in sequence, searching backward starting at start (inclusive). Returns -1 if it could not be found.
inherited
match(int value) bool
Determines if the given Unicode code-point value belongs to this character class.
override
matchAsPrefix(String sequence, [int start = 0]) Match?
Matches this pattern against the start of string.
inherited
noneOf(String sequence) bool
Returns true if the sequence contains no matching character.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFrom(String sequence) String
Removes all matched characters in sequence.
inherited
replaceFrom(String sequence, String replacement) String
Replaces each matched character in sequence with the specified replacement.
inherited
retainFrom(String sequence) String
Retains all matched characters in sequence.
inherited
toString() String
Standard toString implementation. Do not override, instead implement toStringPrinter to customize.
inherited
trimFrom(String sequence) String
Removes leading and trailing matching characters in sequence.
inherited
trimLeadingFrom(String sequence) String
Removes leading matching characters in sequence.
inherited
trimTailingFrom(String sequence) String
Removes tailing matching characters in sequence.
inherited

Operators

operator &(CharMatcher other) CharMatcher
Returns a matcher that matches any character matched by either this matcher or other.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator |(CharMatcher other) CharMatcher
Returns a matcher that matches any character matched by either this matcher or other.
inherited
operator ~() CharMatcher
Returns a matcher that matches any character not matched by this matcher.
inherited