string/unicode_class_utils library

Classes

UnicodeClass
A single Unicode named block paired with its inclusive code-point range.

Constants

unicodeClassRanges → const List<UnicodeClass>
The Unicode block range table backing findUnicodeClassType.

Functions

findUnicodeClassType(String value, {bool ignoreBasicLatin = false, bool firstCharOnly = true, bool ignoreWhitespace = true}) UnicodeClassType?
Returns the Unicode named block (UnicodeClassType) that the string's first qualifying rune belongs to, or null when the trimmed string is empty or no block matches.
isUnicodeWhitespace(int rune) bool
Set of code points treated as whitespace by findUnicodeClassType.