Sdílet prostřednictvím


Character.IsUpperCase Method

Definition

Overloads

IsUpperCase(Char)

Determines if the specified character is an uppercase character.

IsUpperCase(Int32)

Determines if the specified character (Unicode code point) is an uppercase character.

IsUpperCase(Char)

Determines if the specified character is an uppercase character.

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

Parameters

ch
Char

the character to be tested.

Returns

true if the character is uppercase; false otherwise.

Attributes

Remarks

Determines if the specified character is an uppercase character.

A character is uppercase if its general category type, provided by Character.getType(ch), is UPPERCASE_LETTER. or it has contributory property Other_Uppercase as defined by the Unicode Standard.

The following are examples of uppercase characters: <blockquote>

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
            '&#92;u00C0' '&#92;u00C1' '&#92;u00C2' '&#92;u00C3' '&#92;u00C4' '&#92;u00C5' '&#92;u00C6' '&#92;u00C7'
            '&#92;u00C8' '&#92;u00C9' '&#92;u00CA' '&#92;u00CB' '&#92;u00CC' '&#92;u00CD' '&#92;u00CE' '&#92;u00CF'
            '&#92;u00D0' '&#92;u00D1' '&#92;u00D2' '&#92;u00D3' '&#92;u00D4' '&#92;u00D5' '&#92;u00D6' '&#92;u00D8'
            '&#92;u00D9' '&#92;u00DA' '&#92;u00DB' '&#92;u00DC' '&#92;u00DD' '&#92;u00DE'

</blockquote>

Many other Unicode characters are uppercase too.

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

Added in 1.0.

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

IsUpperCase(Int32)

Determines if the specified character (Unicode code point) is an uppercase character.

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character is uppercase; false otherwise.

Attributes

Remarks

Determines if the specified character (Unicode code point) is an uppercase character.

A character is uppercase if its general category type, provided by Character#getType(int) getType(codePoint), is UPPERCASE_LETTER, or it has contributory property Other_Uppercase as defined by the Unicode Standard.

The following are examples of uppercase characters: <blockquote>

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
            '&#92;u00C0' '&#92;u00C1' '&#92;u00C2' '&#92;u00C3' '&#92;u00C4' '&#92;u00C5' '&#92;u00C6' '&#92;u00C7'
            '&#92;u00C8' '&#92;u00C9' '&#92;u00CA' '&#92;u00CB' '&#92;u00CC' '&#92;u00CD' '&#92;u00CE' '&#92;u00CF'
            '&#92;u00D0' '&#92;u00D1' '&#92;u00D2' '&#92;u00D3' '&#92;u00D4' '&#92;u00D5' '&#92;u00D6' '&#92;u00D8'
            '&#92;u00D9' '&#92;u00DA' '&#92;u00DB' '&#92;u00DC' '&#92;u00DD' '&#92;u00DE'

</blockquote>

Many other Unicode characters are uppercase too.

Added in 1.5.

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