hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
| Public 成员函数 | 静态 Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | 所有成员列表
com.hyphenate.util.HanziToPinyin类 参考

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.

类成员变量说明

final byte [][] com.hyphenate.util.HanziToPinyin.PINYINS
static

Pinyin array.

Each pinyin is corresponding to unihans of same offset in the unihans array.

final char [] com.hyphenate.util.HanziToPinyin.UNIHANS
static

Unihans array.

Each unihans is the first one within same pinyin when collator is zh_CN.


该类的文档由以下文件生成: