Package java.lang
Class Character

Public Method toTitleCase

static char toTitleCase(char ch)

_INSERT_METHOD_SIGNATURE_HERE_

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.

Example

   Logger.log(Character.toTitleCase('g'));

Converts the character argument to titlecase.