public class PingYinUtil extends Object
| 构造器和说明 |
|---|
PingYinUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getFirstSpell(String chinese)
获取汉字串拼音首字母,英文字符不变
|
static String |
getFistOneSpell(String chinese)
获取字符串的第一个字母
|
static String |
getFullSpell(String chinese)
获取汉字串拼音,英文字符不变
|
static String |
getPingYin(String inputString)
将字符串中的中文转化为拼音,其他字符不变
|
public static String getPingYin(String inputString)
inputString - 翻译的内容public static String getFirstSpell(String chinese)
chinese - 汉字串public static String getFistOneSpell(String chinese)
chinese - 汉字Copyright © 2017-6-20–2017. All rights reserved.