Sdílet prostřednictvím


Character.IsDefined Method

Definition

Overloads

IsDefined(Int32)

Determines if a character (Unicode code point) is defined in Unicode.

IsDefined(Char)

Determines if a character is defined in Unicode.

IsDefined(Int32)

Determines if a character (Unicode code point) is defined in Unicode.

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character has a defined meaning in Unicode; false otherwise.

Attributes

Remarks

Determines if a character (Unicode code point) is defined in Unicode.

A character is defined if at least one of the following is true: <ul> <li>It has an entry in the UnicodeData file. <li>It has a value in a range defined by the UnicodeData file. </ul>

Added in 1.5.

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

IsDefined(Char)

Determines if a character is defined in Unicode.

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

Parameters

ch
Char

the character to be tested

Returns

true if the character has a defined meaning in Unicode; false otherwise.

Attributes

Remarks

Determines if a character is defined in Unicode.

A character is defined if at least one of the following is true: <ul> <li>It has an entry in the UnicodeData file. <li>It has a value in a range defined by the UnicodeData file. </ul>

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

Added in 1.0.2.

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