package base
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=2100b0ed13fecf43be86ed45c5b2cc4d
sha512=628610caff7e124631870fa1e29661caac28bdfdb18750ee43b868037da3d65d6dd9023b4be7c4c52405679efb5e865a6632d95606a22b28a36636a6bf706ef3
doc/base/Base/Char/index.html
Module Base.CharSource
A type for 8-bit characters.
An alias for the type of characters.
include Sexplib0.Sexpable.S with type t := t
include Identifiable.S with type t := t
include Comparable.S with type t := t
include Comparisons.S with type t := t
compare t1 t2 returns 0 if t1 is equal to t2, a negative integer if t1 is less than t2, and a positive integer if t1 is greater than t2.
ascending is identical to compare. descending x y = ascending y x. These are intended to be mnemonic when used like List.sort ~compare:ascending and List.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that between t' ~low:min ~high:max is true.
Raises if not (min <= max).
include Pretty_printer.S with type t := t
include Invariant.S with type t := t
Returns the character with the given ASCII code or None is the argument is outside the range 0 to 255.
Returns the character with the given ASCII code. Raises Failure if the argument is outside the range 0 to 255.
Returns a string representing the given character, with special characters escaped following the lexical conventions of OCaml.
Returns Some i where 0 <= i && i < 16 if is_hex_digit c and None otherwise.