UnicodeCharMatcher class
Character matcher function that classifies characters using official Unicode categories and properties.
- Inheritance
-
- Object
- CharMatcher
- UnicodeCharMatcher
Constructors
-
UnicodeCharMatcher(List<
int> data, int mask) -
const
- UnicodeCharMatcher.asciiHexDigit()
-
factory
- UnicodeCharMatcher.bidiArabicNumber()
-
factory
- UnicodeCharMatcher.bidiBoundaryNeutral()
-
factory
- UnicodeCharMatcher.bidiCommonNumberSeparator()
-
factory
- UnicodeCharMatcher.bidiControl()
-
factory
- UnicodeCharMatcher.bidiEuropeanNumber()
-
factory
- UnicodeCharMatcher.bidiEuropeanNumberSeparator()
-
factory
- UnicodeCharMatcher.bidiEuropeanNumberTerminator()
-
factory
- UnicodeCharMatcher.bidiExplicitFormatting()
-
factory
- UnicodeCharMatcher.bidiFirstStrongIsolate()
-
factory
- UnicodeCharMatcher.bidiLeftToRight()
-
Bidi Classes
factory
- UnicodeCharMatcher.bidiLeftToRightEmbedding()
-
factory
- UnicodeCharMatcher.bidiLeftToRightIsolate()
-
factory
- UnicodeCharMatcher.bidiLeftToRightOverride()
-
factory
- UnicodeCharMatcher.bidiNeutral()
-
factory
- UnicodeCharMatcher.bidiNonspacingMark()
-
factory
- UnicodeCharMatcher.bidiOtherNeutrals()
-
factory
- UnicodeCharMatcher.bidiParagraphSeparator()
-
factory
- UnicodeCharMatcher.bidiPopDirectionalFormat()
-
factory
- UnicodeCharMatcher.bidiPopDirectionalIsolate()
-
factory
- UnicodeCharMatcher.bidiRightToLeft()
-
factory
- UnicodeCharMatcher.bidiRightToLeftArabic()
-
factory
- UnicodeCharMatcher.bidiRightToLeftEmbedding()
-
factory
- UnicodeCharMatcher.bidiRightToLeftIsolate()
-
factory
- UnicodeCharMatcher.bidiRightToLeftOverride()
-
factory
- UnicodeCharMatcher.bidiSegmentSeparator()
-
factory
- UnicodeCharMatcher.bidiStrong()
-
Bidi Class Categories
factory
- UnicodeCharMatcher.bidiWeak()
-
factory
- UnicodeCharMatcher.bidiWhitespace()
-
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 thesequence
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 specifiedreplacement
.inherited -
countIn(
String sequence) → int -
Counts the number of matches in
sequence
.inherited -
everyOf(
String sequence) → bool -
Returns
true
if thesequence
contains only matching characters.inherited -
firstIndexIn(
String sequence, [int start = 0]) → int -
Returns the first matching index in
sequence
starting atstart
(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 atstart
(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 thesequence
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 specifiedreplacement
.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