Ansi_text.Style_rangesinclude module type of Style_rangesval quickcheck_generator_range :
range Ppx_quickcheck_runtime.Base_quickcheck.Generator.tval quickcheck_observer_range :
range Ppx_quickcheck_runtime.Base_quickcheck.Observer.tval quickcheck_shrinker_range :
range Ppx_quickcheck_runtime.Base_quickcheck.Shrinker.tval sexp_of_range : range -> Sexplib0.Sexp.tval range_of_sexp : Sexplib0.Sexp.t -> rangetype t = range listinclude Ppx_compare_lib.Comparable.S with type t := tinclude Ppx_compare_lib.Comparable.S__local with type t := tinclude Ppx_compare_lib.Equal.S with type t := tinclude Ppx_compare_lib.Equal.S__local with type t := tinclude Ppx_quickcheck_runtime.Quickcheckable.S with type t := tval quickcheck_generator : t Base_quickcheck.Generator.tval quickcheck_observer : t Base_quickcheck.Observer.tval quickcheck_shrinker : t Base_quickcheck.Shrinker.tinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tval t_of_sexp : Sexplib0.Sexp.t -> tinclude Sexplib0.Sexpable.Sexp_of with type t := tval sexp_of_t : t -> Sexplib0.Sexp.tval identify :
[ Ansi_text__.Ansi.t | `Text of Text.t ] list ->
t
* [ `Control of Control.t
| `Style of Style.t
| `Hyperlink of Ansi_text__.Hyperlink.t
| `Unknown of Unknown_esc.t ]
listIdentifies ranges for as many styles as possible. Also returns a list of the remaining styles and control-codes that couldn't be accounted for.
Makes an Ansi_text.t with the given style-ranges
Updates all ranges, moving their start and end by the given amounts (default = 0).
Adjusts style-ranges to remove all styling between start and end_.
Splits the ranges appropriately for splitting the text at a given position, producing two lists of ranges: those that end before and those that start after pos, with starts/ends in the after-list adjusted accordingly. Ranges straddling pos are included in both lists, modified to start/end at the split.