public class PinyinUtils extends Object
| 构造器和说明 |
|---|
PinyinUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getFirstLetter(String ChineseLanguage)
取第一个汉字的第一个字符
|
static String |
getFirstLetters(String ChineseLanguage,
net.sourceforge.pinyin4j.format.HanyuPinyinCaseType caseType) |
static String |
getFirstLettersLo(String ChineseLanguage) |
static String |
getFirstLettersUp(String ChineseLanguage) |
static String |
getPinyinString(String ChineseLanguage) |
static void |
main(String[] args) |
static String |
toHanyuPinyin(String chineseLanguage)
将文字转为汉语拼音
|
public static String toHanyuPinyin(String chineseLanguage)
chineseLanguage - 要转成拼音的中文public static String getFirstLettersUp(String ChineseLanguage) throws net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombinationpublic static String getFirstLettersLo(String ChineseLanguage) throws net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombinationpublic static String getFirstLetters(String ChineseLanguage, net.sourceforge.pinyin4j.format.HanyuPinyinCaseType caseType) throws net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombinationpublic static String getPinyinString(String ChineseLanguage) throws net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombinationpublic static String getFirstLetter(String ChineseLanguage) throws net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombinationpublic static void main(String[] args) throws net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombinationCopyright © 2019-Now–2021. All rights reserved.