Character.ToTitleCase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToTitleCase(Int32) |
Converts the character (Unicode code point) argument to titlecase using case mapping information from the UnicodeData file. |
ToTitleCase(Char) |
Converts the character argument to titlecase using case mapping information from the UnicodeData file. |
ToTitleCase(Int32)
Converts the character (Unicode code point) argument to titlecase using case mapping information from the UnicodeData file.
[Android.Runtime.Register("toTitleCase", "(I)I", "")]
public static int ToTitleCase (int codePoint);
[<Android.Runtime.Register("toTitleCase", "(I)I", "")>]
static member ToTitleCase : int -> int
Parameters
- codePoint
- Int32
the character (Unicode code point) to be converted.
Returns
the titlecase equivalent of the character, if any; otherwise, the character itself.
- Attributes
Remarks
Converts the character (Unicode code point) argument to titlecase using case mapping information from the UnicodeData file. If a character has no explicit titlecase mapping and is not itself a titlecase char according to UnicodeData, then the uppercase mapping is returned as an equivalent titlecase mapping. If the character argument is already a titlecase character, the same character value will be returned.
Note that Character.isTitleCase(Character.toTitleCase(codePoint))
does not always return true
for some ranges of characters.
Added in 1.5.
Java documentation for java.lang.Character.toTitleCase(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ToTitleCase(Char)
Converts the character argument to titlecase using case mapping information from the UnicodeData file.
[Android.Runtime.Register("toTitleCase", "(C)C", "")]
public static char ToTitleCase (char ch);
[<Android.Runtime.Register("toTitleCase", "(C)C", "")>]
static member ToTitleCase : char -> char
Parameters
- ch
- Char
the character to be converted.
Returns
the titlecase equivalent of the character, if any; otherwise, the character itself.
- Attributes
Remarks
Converts the character argument to titlecase using case mapping information from the UnicodeData file. If a character has no explicit titlecase mapping and is not itself a titlecase char according to UnicodeData, then the uppercase mapping is returned as an equivalent titlecase mapping. If the char
argument is already a titlecase char
, the same char
value will be returned.
Note that Character.isTitleCase(Character.toTitleCase(ch))
does not always return true
for some ranges of characters.
<b>Note:</b> This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the #toTitleCase(int)
method.
Added in 1.0.2.
Java documentation for java.lang.Character.toTitleCase(char)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.