CharInfo_widthmodule Cfg : sig ... endval width : ?cfg:Cfg.t option -> CamomileLibraryDefault.Camomile.UChar.t -> intwidth 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 ->
CamomileLibraryDefault.Camomile.UChar.t ->
intwhen encounter an unprintable character, width_exn c raises Failure "unprintable character" instead of returning -1.
module type UnicodeString_mini = sig ... endminimization of Camomile.UnicodeString.Type
module String (US : UnicodeString_mini) : sig ... end