Documentation ¶
Overview ¶
main.go
rawchinesechar.go
Index ¶
- func ChineseCharToDigit(char string) []int
- func ChineseStrToDigitStr(str string) string
- func ChinseCharToPinyin(theChar string) ([]string, error)
- func DigitToConsonant(digit int) []string
- func DigitToConsonantTable() string
- func InputToOutput(input string) (output string)
- func NumStrToChineseStr(numStr string) string
- func PinyinStrToChineseStr(pyList string) string
- func PinyinToChinseChar(py string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChineseCharToDigit ¶
a single chinese char to digits, might be multiple pronouncation, so might be multiple results
func ChineseStrToDigitStr ¶
Convert a Chinese str(may contain multiple chars) to a number(multiple digits) A char may contributate multiple digits
func ChinseCharToPinyin ¶
return list of pinyin ( multiple pinyin for a char may exist) theChar shall be a single chinese char
func DigitToConsonant ¶
func DigitToConsonantTable ¶
func DigitToConsonantTable() string
Get a string with the mappings from digit to pinyin char
func InputToOutput ¶
func NumStrToChineseStr ¶
Convert a number(might be several digits) to possible Chinese chars The output format is fixed
func PinyinStrToChineseStr ¶
A list of pinyin(separated by comma, space char) to string that separated by predefined delimiters
func PinyinToChinseChar ¶
the py is supposed to be only for a single char, like zhong, not zhong guo. py may also be partial prefix like zh
Types ¶
This section is empty.