module BatUChar:sig..end
This module implements Unicode characters.
type t
exception Out_of_range
val char_of : t -> charchar_of u returns the Latin-1 representation of u.
If u can not be represented by Latin-1, raises Out_of_rangeval of_char : char -> tof_char c returns the Unicode character of the Latin-1 character cval code : t -> intcode u returns the Unicode code number of u.val chr : int -> tchr n returns the Unicode character with the code number n.
If n does not lay in the valid range of Unicode or designates a
surrogate charactor, raises Out_of_rangeval eq : t -> t -> boolval compare : t -> t -> intcompare u1 u2 returns,
a value > 0 if u1 has a larger Unicode code number than u2,
0 if u1 and u2 are the same Unicode character,
a value < 0 if u1 has a smaller Unicode code number than u2.typeuchar =t
type tval int_of : uchar -> intcodeval of_int : int -> ucharchrval is_ascii : uchar -> booltrue if the char is a regular ascii char, i.e. if its code is <= 127