Char¶
No import is needed.
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
compare¶
Orders this character against other by code point, implementing Comparable<char>.
is_digit¶
True if this character is an ASCII decimal digit ('0'-'9').
is_alpha¶
True if this character is an ASCII letter ('a'-'z' or 'A'-'Z').
is_whitespace¶
True if this character is ASCII whitespace (space, tab, newline, or carriage return).
to_lower¶
The lowercase form of an ASCII uppercase letter; other characters are returned unchanged.
to_upper¶
The uppercase form of an ASCII lowercase letter; other characters are returned unchanged.
as_string¶
A new single-character string containing this character.
parse¶
Parses exactly one Unicode scalar from text.