PinyinUtils class

Constructors

PinyinUtils()

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

containsTone(String text) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

mappedVowels Map<String, List<String>>
no setter

Static Methods

clearPunctuation(String value) String
countNumSyllables(String value) int
counts the number of syllables in a text line
createRegexpForPinyinSearch(String syllable) RegExp?
createds a generic regular expression that allows you to search a pinyin regardless of its tone e.g. in a database request
encodeUnicodeToChinese(String unicodeString) String
Converts unicode sequences to chinese characters
getPinyinTone(String syllable) int
Detects a tone of a single syllable where 5 means neutral tone it works for one syllable only. If you need to detect tones of a sentence, use getPinyinTones() instead
getPinyinTones(String sentence) List<int>
Returns a list of tones for the whole sentence
promptTonesForPinyin(String pinyin) List<String>
Pass a tone or untoned pinyin and get a list of toned vowels that can be in this pinyin
simplifyPinyin(String pinyin) String
converts all spcial symbols in pinyin to it's normal latin analog like ě -> e or ǔ -> u
splitToSyllables<T>(String value, {bool removePunctuation = true}) List<T>
splitToSyllablesBySeparator(String value, [String separator = "'"]) String

Constants

UNICODE_SQUARE → const String