类 UPinYin
java.lang.Object
com.gdxsoft.easyweb.utils.UPinYin
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringconvertToPinyin(char c, boolean xingFirst) static StringconvertToPinyinFirstAlpha(String str, boolean xingFirst) 转换为拼音首字母,例如张三,返回zsconvertToPinyinList(String str, boolean xingFirst) 转换为拼音列表static charconvertToSimpleChinese(char c) 转换为简体中文convertWithoutTone(String str, boolean xingFirst) 将带声调格式的拼音转换为不带声调格式的拼音static StringconvertWithoutToneString(String str, boolean xingFirst) 将带声调格式的拼音转换为不带声调格式的拼音字符串,用,分隔static booleanisChinese(char c) 判断某个字符是否为汉字
-
构造器详细资料
-
UPinYin
public UPinYin()
-
-
方法详细资料
-
convertToSimpleChinese
public static char convertToSimpleChinese(char c) 转换为简体中文- 参数:
c-- 返回:
-
convertToPinyinFirstAlpha
-
convertToPinyinList
-
convertToPinyin
-
convertWithoutTone
-
convertWithoutToneString
-
isChinese
public static boolean isChinese(char c) 判断某个字符是否为汉字- 参数:
c- 需要判断的字符- 返回:
- 是汉字返回true,否则返回false
-