package containers

  1. Overview
  2. Docs
On This Page
  1. Utils around char
Legend:
Library
Module
Module type
Parameter
Class
Class type

Utils around char

  • since 0.14
type t = char
val equal : t -> t -> bool
val compare : t -> t -> int
val lowercase_ascii : t -> t

See Char

  • since 0.20
val uppercase_ascii : t -> t

See Char

  • since 0.20
val of_int_exn : int -> t

Alias to Char.chr

  • raises Invalid_argument

    if the int is not within 0,...,255

  • since 1.0
val of_int : int -> t option

Safe version of of_int

  • since 1.0
val to_int : t -> int

Alias to Char.code

  • since 1.0
val pp : Buffer.t -> t -> unit
val print : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.