PhoneticUtils class Null safety

Common helpers and utilities.




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

clean(String value, {bool allowLatin = true}) String
Returns a cleaned string (that is ready for encoding) by performing the following steps on value : [...]
codeUnitAt(String value, int index) int
Returns the character from value at index or $nul if the index is out of range.
differenceEncoded(String? e1, String? e2) int
Returns the number of characters that are the same in the e1 and e2 encoded strings. [...]
isSimpleVowel(int charCode) bool
Returns true if charCode is a simple vowel ($A, $E, $I, $O, $U). This does not include $Y.
isSpecialCharacter(int charCode) bool
Returns true if charCode is a special character.
isVowel(int charCode) bool
Returns true if charCode is a vowel (including latin characters).
isVowelAt(String value, int index) bool
Returns true if the character at index in value is a vowel (including special latin characters). The value should be cleaned first (which optionally removes latin characters if they are not desired).
primaryDifference(PhoneticEncoder encoder, String s1, String s2) int
Encodes s1 and s2 using encoder and then returns the similarity for the PhoneticEncoding.primary encoding. [...]
removeRepeatRuns(List<int> chars) → void
Removes runs of repeated characters from the chars provided.
startsWith(String value, Pattern pattern, [int index = 0]) bool
Returns true if the character from value at index matches pattern or false (including if index is if out of range).