Ascii
Ascii
from_str : Str -> Result Ascii [InvalidAscii]
Convert a UTF-8 Str
to an ASCII string.
to_str : Ascii -> Str
Convert an ASCII string to a UTF-8 Str
.
from_ascii_bytes : List U8 -> Result 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.
compare :
Ascii,
Ascii
->
[
LT,
EQ,
GT
]
Compare the ASCIIbetical order of two ASCII strings, i.e. by comparing their code points.
is_empty : Ascii -> Bool
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 : List Ascii -> Ascii
Join a list of ASCII strings.
join_with : List Ascii, Ascii -> Ascii
Join a list of ASCII strings with a separator.
repeat : Ascii, U64 -> Ascii
Repeat an ASCII string a specified number of times.
starts_with : Ascii, Ascii -> Bool
Check if an ASCII string starts with another ASCII string.
ends_with : Ascii, Ascii -> Bool
Check if an ASCII string ends with another ASCII string.
to_dec : Ascii -> Result Dec [InvalidNumStr]
to_f64 : Ascii -> Result F64 [InvalidNumStr]
to_f32 : Ascii -> Result F32 [InvalidNumStr]
to_u128 : Ascii -> Result U128 [InvalidNumStr]
to_i128 : Ascii -> Result I128 [InvalidNumStr]
to_u64 : Ascii -> Result U64 [InvalidNumStr]
to_i64 : Ascii -> Result I64 [InvalidNumStr]
to_u32 : Ascii -> Result U32 [InvalidNumStr]
to_i32 : Ascii -> Result I32 [InvalidNumStr]
to_u16 : Ascii -> Result U16 [InvalidNumStr]
to_i16 : Ascii -> Result I16 [InvalidNumStr]
to_u8 : Ascii -> Result U8 [InvalidNumStr]
to_i8 : Ascii -> Result I8 [InvalidNumStr]
len : Ascii -> U64
Count the number of characters in an ASCII string.
reverse : Ascii -> Ascii
Reverse the characters in an ASCII string.
sort_asc : List Ascii -> List Ascii
Sort a list of ASCII strings in ascending ASCIIbetical order.
sort_desc : List Ascii -> List Ascii
Sort a list of ASCII strings in descending ASCIIbetical order.