native.Char
Native methods on Char.
All modules · Writing docstrings
to_int
Section titled “to_int”func to_int(self: Char): IntReturns the Unicode scalar value as Int.
is_alpha
Section titled “is_alpha”func is_alpha(self: Char): BoolReturns whether the character is alphabetic under Unicode classification.
is_digit
Section titled “is_digit”func is_digit(self: Char): BoolReturns whether the character is an ASCII decimal digit.
is_upper
Section titled “is_upper”func is_upper(self: Char): BoolReturns whether the character is Unicode uppercase.
is_lower
Section titled “is_lower”func is_lower(self: Char): BoolReturns whether the character is Unicode lowercase.
to_upper
Section titled “to_upper”func to_upper(self: Char): CharReturns the first Unicode uppercase character; multi-character mappings are truncated.
to_lower
Section titled “to_lower”func to_lower(self: Char): CharReturns the first Unicode lowercase character; multi-character mappings are truncated.
func hash(self: Char): U64Returns this character’s runtime hash.