Character.toTitleCase

Character.toTitleCase

Class Overview | Class Members | This Package | All Packages

Syntax
public static char toTitleCase( char ch )
Parameters
ch
the character to be converted.
Returns
the titlecase equivalent of the character, if any; otherwise the character itself.
Description
Converts the character argument to titlecase. A character has a titlecase equivalent if and only if a titlecase mapping is specified for the character in the Unicode attribute table.

Note that some Unicode characters in the range '\u2000' through '\u2FFF' have titlecase mappings; this method does map such characters to their titlecase equivalents even though the method isTitleCase does not return true for such characters.

There are only four Unicode characters that are truly titlecase forms that are distinct from uppercase forms. As a rule, if a character has no true titlecase equivalent but does have an uppercase mapping, then the Unicode 2.0 attribute table specifies a titlecase mapping that is the same as the uppercase mapping.

See Also
isTitleCase, toLowerCase, toUpperCase