ENSNormalize class

Constructors

ENSNormalize()
Synchronously gets an instance of ENSNormalize e.g
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beautify(String text) String
Apply ENS normalization with beautification to a string.
cure(String text) String
Apply ENS normalization to a string. If the result is not normalized then this function will try to make the input normalized by removing all disallowed characters. Raises DisallowedSequence if one is encountered and cannot be cured. e.g
ensProcess(String input, {bool doNormalize = false, bool doBeautify = false, bool doTokenize = false, bool doNormalizations = false, bool doCure = false}) → ENSProcessResult
Used to compute
isCombiningMark(int codePoint, bool onlyNSM) bool
isNormalizable(String name) bool
Checks if the input string is ENS normalizable (i.e. normalize(name) will not raise DisallowedSequence). e.g
isNormalized(String name) bool
Checks if the input string is already ENS normalized (i.e. ens_normalize(name) == name). e.g
normalizations(String input) List<NormalizableSequence>
This function returns a list of NormalizableSequence objects that describe the modifications applied by ENS normalization to the input string. Raises DisallowedSequence if the input cannot be normalized. e.g
normalize(String text) String
Apply ENS normalization to a string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldEscape(int codePoint) bool
tokenize(String input) List<Token>
Tokenize a string using ENS normalization. Returns a list of tokens. Each token contains a type field and other fields depending on the type. All codepoints are represented as integers.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getInstance() Future<ENSNormalize>
Asynchronously gets an instance of ENSNormalize e.g