Compartir a través de


Character.IsTitleCase Method

Definition

Overloads

IsTitleCase(Char)

Determines if the specified character is a titlecase character.

IsTitleCase(Int32)

Determines if the specified character (Unicode code point) is a titlecase character.

IsTitleCase(Char)

Determines if the specified character is a titlecase character.

[Android.Runtime.Register("isTitleCase", "(C)Z", "")]
public static bool IsTitleCase (char ch);
[<Android.Runtime.Register("isTitleCase", "(C)Z", "")>]
static member IsTitleCase : char -> bool

Parameters

ch
Char

the character to be tested.

Returns

true if the character is titlecase; false otherwise.

Attributes

Remarks

Determines if the specified character is a titlecase character.

A character is a titlecase character if its general category type, provided by Character.getType(ch), is TITLECASE_LETTER.

Some characters look like pairs of Latin letters. For example, there is an uppercase letter that looks like "LJ" and has a corresponding lowercase letter that looks like "lj". A third form, which looks like "Lj", is the appropriate form to use when rendering a word in lowercase with initial capitals, as for a book title.

These are some of the Unicode characters for which this method returns true: <ul> <li>LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON<li>LATIN CAPITAL LETTER L WITH SMALL LETTER J<li>LATIN CAPITAL LETTER N WITH SMALL LETTER J<li>LATIN CAPITAL LETTER D WITH SMALL LETTER Z</ul>

Many other Unicode characters are titlecase too.

<b>Note:</b> This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the #isTitleCase(int) method.

Added in 1.0.2.

Java documentation for java.lang.Character.isTitleCase(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.

Applies to

IsTitleCase(Int32)

Determines if the specified character (Unicode code point) is a titlecase character.

[Android.Runtime.Register("isTitleCase", "(I)Z", "")]
public static bool IsTitleCase (int codePoint);
[<Android.Runtime.Register("isTitleCase", "(I)Z", "")>]
static member IsTitleCase : int -> bool

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character is titlecase; false otherwise.

Attributes

Remarks

Determines if the specified character (Unicode code point) is a titlecase character.

A character is a titlecase character if its general category type, provided by Character#getType(int) getType(codePoint), is TITLECASE_LETTER.

Some characters look like pairs of Latin letters. For example, there is an uppercase letter that looks like "LJ" and has a corresponding lowercase letter that looks like "lj". A third form, which looks like "Lj", is the appropriate form to use when rendering a word in lowercase with initial capitals, as for a book title.

These are some of the Unicode characters for which this method returns true: <ul> <li>LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON<li>LATIN CAPITAL LETTER L WITH SMALL LETTER J<li>LATIN CAPITAL LETTER N WITH SMALL LETTER J<li>LATIN CAPITAL LETTER D WITH SMALL LETTER Z</ul>

Many other Unicode characters are titlecase too.

Added in 1.5.

Java documentation for java.lang.Character.isTitleCase(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