module Uchar: sig
.. end
Characters.
Characters
type
t = Uucp.uchar
val min : Uucp.uchar
min
is U+0000.
val max : Uucp.uchar
max
is U+10FFFF.
val is_uchar : int -> bool
val succ : Uucp.uchar -> Uucp.uchar
succ u
is the scalar value after
u
in the set of Unicode scalar
values.
Raises Invalid_argument
if
u
is
Uucp.Uchar.max
.
val pred : Uucp.uchar -> Uucp.uchar
pred u
is the scalar value before
u
in the set of Unicode scalar
values.
Raises Invalid_argument
if
u
is
Uucp.Uchar.min
.
val of_int : int -> Uucp.uchar
val to_int : Uucp.uchar -> int
to_int u
is the scalar value of u
as an integer.
val equal : Uucp.uchar -> Uucp.uchar -> bool
equal u u'
is u = u')
.
val compare : Uucp.uchar -> Uucp.uchar -> int
compare u u'
is Pervasives.compare u u'
.
Full Unicode character set traversal
val fold : ('a -> Uucp.uchar -> 'a) -> 'a -> 'a
fold f acc
is
(f (…(f (f (…(f (f acc 0x0000) 0x0001…) 0xD7FF) 0xE000)…) 0x10FFFF)
val iter : (Uucp.uchar -> unit) -> unit
iter f
is f 0x0000; f0x0001; …; f 0xD7FF; f 0xE000; …; f 0x10FFFF
Printers
val pp : Format.formatter -> Uucp.uchar -> unit
pp ppf u
prints u
on ppf
using only US-ASCII encoded
characters according to the Unicode notational convention.