module Char:sig
..end
Characters (bytes in fact).
typet =
char
The type for bytes.
val of_byte : int -> char
of_byte b
is a byte from b
.
Invalid_argument
if b
is not in the range [0x00
;0xFF
].val of_int : int -> char option
of_int b
is a byte from b
. None
is returned if b
is not in the
range [0x00
;0xFF
].
val to_int : char -> int
to_int b
is the byte b
as an integer.
val hash : char -> int
hash
is Hashtbl.hash
.
val equal : char -> char -> bool
equal b b'
is b = b'
.
val compare : char -> char -> int
compare b b'
is Stdlib.compare
b b'
.
module Ascii:sig
..end
US-ASCII character support
val pp : Stdlib.Format.formatter -> char -> unit
pp ppf c
prints c
on ppf
.
val dump : Stdlib.Format.formatter -> char -> unit
dump ppf c
prints c
as a syntactically valid OCaml
char on ppf
using Astring.Char.Ascii.escape_char