Character.isWhitespace
Class Overview | Class Members |
This Package |
All Packages
public static boolean isWhitespace( char ch )
Parameters
- ch
- the character to be tested.
Returns
true if the character is a Java whitespace character;
false otherwise.
Description
Determines if the specified character is white space according to Java.
A character is considered to be a Java whitespace character if and only
if it satisfies one of the following criteria:
- It is a Unicode space separator (category "Zs"), but is not
a no-break space (\u00A0 or \uFEFF).
- It is a Unicode line separator (category "Zl").
- It is a Unicode paragraph separator (category "Zp").
- It is \u0009, HORIZONTAL TABULATION.
- It is \u000A, LINE FEED.
- It is \u000B, VERTICAL TABULATION.
- It is \u000C, FORM FEED.
- It is \u000D, CARRIAGE RETURN.
- It is \u001C, FILE SEPARATOR.
- It is \u001D, GROUP SEPARATOR.
- It is \u001E, RECORD SEPARATOR.
- It is \u001F, UNIT SEPARATOR.
See Also
isSpaceChar