package charInfo_width

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Cfg : sig ... end
val width : ?cfg:Cfg.t option -> Camomile.UChar.t -> int

width c returns the column width of c where c is of type Camomile.UChar.t and the value returned is of type int. This module is implemented purely in OCaml and follows the prototype of POSIX's wcwidth. i.e. If c is a printable character, the value is at least 0. If c is null character (L'\0'), the value is 0. Otherwise, -1 is returned.

val width_exn : ?cfg:Cfg.t option -> Camomile.UChar.t -> int

when encounter an unprintable character, width_exn c raises Failure "unprintable character" instead of returning -1.

module type UnicodeString_mini = sig ... end

minimization of Camomile.UnicodeString.Type

module String (US : UnicodeString_mini) : sig ... end
OCaml

Innovation. Community. Security.