Converts the character argument to uppercase using case mapping information from the UnicodeData file.
Note that
Character.isUpperCase(Character.toUpperCase(ch))
does not always return true
for some ranges of
characters, particularly those that are symbols or ideographs.
In general, String.toUpperCase()
should be used to map
characters to uppercase. String
case mapping methods
have several benefits over Character
case mapping methods.
String
case mapping methods can perform locale-sensitive
mappings, context-sensitive mappings, and 1:M character mappings, whereas
the Character
case mapping methods cannot.
Note: This method cannot handle supplementary characters. To support
all Unicode characters, including supplementary characters, use
the toUpperCase(int)
method.
ch | the character to be converted. |
Character.isUpperCase(char), String.toUpperCase()
Diagram: Character