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. static intcompareByFirstCharWithHashLast(String left, String right)-
-
Method Detail
-
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
-
compareByFirstCharWithHashLast
static int compareByFirstCharWithHashLast(String left, String right)
-
-
-
-