from_chars : List(Char) -> Ascii
Ascii
Ascii :: # (opaque)
Convert a UTF-8 Str to an ASCII string.
Convert an ASCII string to a UTF-8 Str.
from_ascii_bytes : List(U8) -> Try(Ascii, [InvalidAscii])
Convert a list of ASCII code points to an ASCII string.
to_ascii_bytes : Ascii -> List(U8)
Convert an ASCII string to a list of ASCII code points.
Check whether two ASCII strings are equal.
compare : Ascii, Ascii -> [LT, EQ, GT]
Compare the ASCIIbetical order of two ASCII strings, i.e. by comparing their code points.
Check if an ASCII string is empty.
to_uppercase : Ascii -> Ascii
Convert all the lowercase letters in an ASCII string to uppercase, leaving all other characters unchanged.
to_lowercase : Ascii -> Ascii
Convert all the uppercase letters in an ASCII string to lowercase, leaving all other characters unchanged.
concat : Ascii, Ascii -> Ascii
Concatenate two ASCII strings.
Join a list of ASCII strings.
Join a list of ASCII strings with a separator.
Repeat an ASCII string a specified number of times.
starts_with : Ascii, Ascii -> Bool
Check if an ASCII string starts with another ASCII string.
Check if an ASCII string ends with another ASCII string.
Count the number of characters in an ASCII string.
rev : Ascii -> Ascii
Reverse the characters in an ASCII string.
Sort a list of ASCII strings in ascending ASCIIbetical order.
Sort a list of ASCII strings in descending ASCIIbetical order.