Package ai.nexconn.chatui.utils.text
Class CharacterParser
-
- All Implemented Interfaces:
public class CharacterParserConverts Chinese characters to Pinyin
-
-
Constructor Summary
Constructors Constructor Description CharacterParser()
-
Method Summary
Modifier and Type Method Description StringgetResource()voidsetResource(String resource)static CharacterParsergetInstance()Stringconvert(String str)Converts a single character to Pinyin StringgetSelling(String chs)Converts a phrase (string of characters) to Pinyin StringgetSpelling()-
-
Method Detail
-
getResource
String getResource()
-
setResource
void setResource(String resource)
-
getInstance
static CharacterParser getInstance()
-
convert
String convert(String str)
Converts a single character to Pinyin
-
getSelling
String getSelling(String chs)
Converts a phrase (string of characters) to Pinyin
-
getSpelling
String getSpelling()
-
-
-
-