Module Ansi_text.Text

include module type of Text
type t

Represents a string that doesn't contain ANSI codes, but may contain unicode chars.

include Ppx_compare_lib.Comparable.S with type t := t
val compare : t -> t -> int
include Ppx_compare_lib.Equal.S with type t := t
val equal : t -> t -> bool
include Ppx_compare_lib.Equal.S__local with type t := t
include Ppx_quickcheck_runtime.Quickcheckable.S with type t := t
val quickcheck_generator : t Base_quickcheck.Generator.t
val quickcheck_observer : t Base_quickcheck.Observer.t
val quickcheck_shrinker : t Base_quickcheck.Shrinker.t
include Sexplib0.Sexpable.S with type t := t
include Sexplib0.Sexpable.Of_sexp with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
include Sexplib0.Sexpable.Sexp_of with type t := t
val sexp_of_t : t -> Sexplib0.Sexp.t
val width : t -> int

Printable width, as estimated using Uucp_break.tty_width_hint.

val is_empty : t -> bool
val of_string : string -> t
val to_string : t -> string
val split : t -> pos:int -> t * t

If pos falls within a multi-column char, that char will go after the split.

val (^) : t -> t -> t
val concat : t list -> t