Share via


Character.IsSpaceChar Method

Definition

Overloads

IsSpaceChar(Char)

Determines if the specified character is a Unicode space character.

IsSpaceChar(Int32)

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

IsSpaceChar(Char)

Determines if the specified character is a Unicode space character.

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

Parameters

ch
Char

the character to be tested.

Returns

true if the character is a space character; false otherwise.

Attributes

Remarks

Determines if the specified character is a Unicode space character. A character is considered to be a space character if and only if it is specified to be a space character by the Unicode Standard. This method returns true if the character's general category type is any of the following: <ul> <li> SPACE_SEPARATOR<li> LINE_SEPARATOR<li> PARAGRAPH_SEPARATOR</ul>

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

Added in 1.1.

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

IsSpaceChar(Int32)

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

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character is a space character; false otherwise.

Attributes

Remarks

Determines if the specified character (Unicode code point) is a Unicode space character. A character is considered to be a space character if and only if it is specified to be a space character by the Unicode Standard. This method returns true if the character's general category type is any of the following:

<ul> <li> #SPACE_SEPARATOR<li> #LINE_SEPARATOR<li> #PARAGRAPH_SEPARATOR</ul>

Added in 1.5.

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