module Char: Extlib.ExtChar.CharOperations on characters.
Characters range upon Latin-1 encoding, i.e. languages used in
Western Europe and North America. For international characters,
another, richer, module is provided: UChar.
Author(s): Xavier Leroy (base module), David Teller
typet =char
val is_whitespace : char -> bool' ', '\010', '\013', '\009', '\026'
and '\012'.val is_uppercase : char -> bool'A' and 'Z'val is_lowercase : char -> bool'a' and 'z'val is_uppercase_latin1 : char -> bool'A' and 'Z', between 'À' and 'Ö' or
between 'Ø' and 'Ý'val is_lowercase_latin1 : char -> bool'a' and 'z', between 'Þ' and 'ö' or
between 'ø' and 'ÿ'val is_latin1 : char -> boolval is_digit : char -> bool'0',
'1', ... '9'.val is_symbol : char -> bool'!', '%', '&', '$', '#', '+',
'-', '/', ':', '<', '=' '>', '?', '@', '\\',
'~', '^', '|', '*'val is_letter : char -> boolval is_newline : char -> bool'\010'
and '\013'val of_digit : int -> charInvalid_argument "Char.of_digit" if the
argument is outside the range 0--9val chr : int -> charInvalid_argument "Char.chr" if the argument is
outside the range 0--255.val escaped : char -> stringval lowercase : char -> charval uppercase : char -> charval compare : t -> t -> intStandard.compare. Along with the type t, this function compare
allows the module Char to be passed as argument to the functors
Set.Make and Map.Make.val enum : unit -> char Enum.tval range : ?until:char -> char -> char Enum.tval (--) : char -> char -> char Enum.t
'a' -- 'z' is the enumeration of all characters
between 'a' and 'z' included.
val code : char -> intval t_of_sexp : Sexplib.Sexp.t -> tval sexp_of_t : t -> Sexplib.Sexp.tval print : 'a Extlib.InnerIO.output -> t -> unit