UcdParser class

Parser to read the Unicode Character Database (UCD) files. The parser will read the UCD file line by line and call the appropriate callback when a Comment, Part or Data is found.

ref: https://www.unicode.org/reports/tr44/

Constructors

UcdParser(DataHandler onData, {CommentHandler? onComment, PartHandler? onPart})
Creates a new UCD Parser with the provided onData callback. Optionally, you can provide callbacks for Comments and Parts.
UcdParser.parseFile(String filePath, DataHandler onData, {CommentHandler? onComment, PartHandler? onPart})
Creates a new UCD Parser from a file with the provided onData callback. Optionally, you can provide callbacks for Comments and Parts.
factory
UcdParser.parseStream(Stream<String> fileStream, DataHandler onData, {CommentHandler? onComment, PartHandler? onPart})
Creates a new UCD Parser from a stream with the provided onData callback. Optionally, you can provide callbacks for Comments and Parts.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onComment CommentHandler?
Callback to handle Comments in the UCD file.
getter/setter pair
onData DataHandler
Callback to handle Data in the UCD file.
final
onPart PartHandler?
Callback to handle Parts in the UCD file.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse() Future<void>
Parses the UCD file line by line and calls the appropriate callback when a Comment, Part or Data is found.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited