Package ai.nexconn.chatui.utils.text
Class StringUtils
-
- All Implemented Interfaces:
public class StringUtilsString utility class.
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
Modifier and Type Method Description static StringgetKey(String arg1, String arg2)static StringgetArg1(String key)static StringgetArg2(String key)static StringgetStringNoBlank(String str)static chargetFirstChar(char c)Gets the Pinyin initial of a character. -
-
Method Detail
-
getKey
static String getKey(String arg1, String arg2)
-
getArg1
static String getArg1(String key)
-
getArg2
static String getArg2(String key)
-
getStringNoBlank
static String getStringNoBlank(String str)
-
getFirstChar
static char getFirstChar(char c)
Gets the Pinyin initial of a character. Returns the uppercase Pinyin initial for Chinese characters, or the uppercase form of the character itself otherwise.
- Parameters:
c- the character- Returns:
the uppercase Pinyin initial or the uppercase character
-
-
-
-