getFirstChar

public 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.

Return

the uppercase Pinyin initial or the uppercase character

Parameters

c

the character