hyphenate_SDK3.0
3.0.1
hyphenatejavaIMSDK
|
类 | |
class | Token |
Public 成员函数 | |
ArrayList< Token > | get (final String input) |
静态 Public 成员函数 | |
static HanziToPinyin | getInstance () |
静态 Public 属性 | |
static final char[] | UNIHANS |
static final byte[][] | PINYINS |
Protected 成员函数 | |
HanziToPinyin (boolean hasChinaCollator) | |
An object to convert Chinese character to its corresponding pinyin string. For characters with multiple possible pinyin string, only one is selected according to collator. Polyphone is not supported in this implementation. This class is implemented to achieve the best runtime performance and minimum runtime resources with tolerable sacrifice of accuracy. This implementation highly depends on zh_CN ICU collation data and must be always synchronized with ICU.
Currently this file is aligned to zh.txt in ICU 4.6
ArrayList<Token> com.hyphenate.util.HanziToPinyin.get | ( | final String | input | ) |
Convert the input to a array of tokens. The sequence of ASCII or Unknown characters without space will be put into a Token, One Hanzi character which has pinyin will be treated as a Token. If these is no China collator, the empty token array is returned.
|
static |
Pinyin array.
Each pinyin is corresponding to unihans of same offset in the unihans array.
|
static |
Unihans array.
Each unihans is the first one within same pinyin when collator is zh_CN.