Skip to content
Try Kata

native.Char

Native methods on Char.

All modules · Writing docstrings

func to_int(self: Char): Int

Returns the Unicode scalar value as Int.

func is_alpha(self: Char): Bool

Returns whether the character is alphabetic under Unicode classification.

func is_digit(self: Char): Bool

Returns whether the character is an ASCII decimal digit.

func is_upper(self: Char): Bool

Returns whether the character is Unicode uppercase.

func is_lower(self: Char): Bool

Returns whether the character is Unicode lowercase.

func to_upper(self: Char): Char

Returns the first Unicode uppercase character; multi-character mappings are truncated.

func to_lower(self: Char): Char

Returns the first Unicode lowercase character; multi-character mappings are truncated.

func hash(self: Char): U64

Returns this character’s runtime hash.