Module Ansi_text.TextSource

include module type of Text
Sourcetype 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
Sourceval compare : t -> t -> int
include Ppx_compare_lib.Equal.S with type t := t
Sourceval 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
Sourceval quickcheck_generator : t Base_quickcheck.Generator.t
Sourceval quickcheck_observer : t Base_quickcheck.Observer.t
Sourceval quickcheck_shrinker : t Base_quickcheck.Shrinker.t
include Sexplib0.Sexpable.S with type t := t
include Sexplib0.Sexpable.Of_sexp with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
include Sexplib0.Sexpable.Sexp_of with type t := t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval width : t -> int

Printable width, as estimated using Uucp_break.tty_width_hint.

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

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

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