include module type of struct include Astring.Char end
Bytes
of_byte b
is a byte from b
.
- raises Invalid_argument
if
b
is not in the range [0x00
;0xFF
].
of_int b
is a byte from b
. None
is returned if b
is not in the range [0x00
;0xFF
].
Predicates
compare b b'
is Stdlib.compare
b b'
.
Bytes as US-ASCII characters
module Ascii = Astring.Char.Ascii
US-ASCII character support
Pretty printing
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 Ascii.escape_char