Documentation

Init.Data.Char.Basic

@[inline]

Determines if the given integer is a valid Unicode scalar value.

Note that values in [0xd800, 0xdfff] are reserved for UTF-16 surrogate pairs.

Equations
def Char.lt (a : Char) (b : Char) :
Equations
def Char.le (a : Char) (b : Char) :
Equations
@[inline]

Determines if the given nat is a valid Unicode scalar value.

Equations
@[inline]
def Char.toNat (c : Char) :

Underlying unicode code point as a Nat.

Equations

Is the character a space (U+0020) a tab (U+0009), a carriage return (U+000D) or a newline (U+000A)?

Equations

Is the character in ABCDEFGHIJKLMNOPQRSTUVWXYZ?

Equations

Is the character in abcdefghijklmnopqrstuvwxyz?

Equations

Is the character in ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz?

Equations

Is the character in 0123456789?

Equations

Is the character in ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789?

Equations

Convert an upper case character to its lower case character.

Only works on basic latin letters.

Equations

Convert a lower case character to its upper case character.

Only works on basic latin letters.

Equations