package zed

  1. Overview
  2. Docs
type t = string
exception Invalid of string * string
exception Out_of_bounds
type check_result =
  1. | Correct of int
  2. | Message of string
val check : t -> check_result
val validate : t -> int
val next_error : t -> int -> int * int * string
val singleton : CamomileLibrary.UChar.t -> t
val make : int -> CamomileLibrary.UChar.t -> t
val init : int -> (int -> CamomileLibrary.UChar.t) -> t
val rev_init : int -> (int -> CamomileLibrary.UChar.t) -> t
val length : t -> int
val compare : t -> t -> int
val get : t -> int -> CamomileLibrary.UChar.t
val sub : t -> int -> int -> t
val break : t -> int -> t * t
val before : t -> int -> t
val after : t -> int -> t
val insert : t -> int -> t -> t
val remove : t -> int -> int -> t
val replace : t -> int -> int -> t -> t
val rev : t -> t
val concat : t -> t list -> t
val rev_concat : t -> t list -> t
val explode : t -> CamomileLibrary.UChar.t list
val rev_explode : t -> CamomileLibrary.UChar.t list
val implode : CamomileLibrary.UChar.t list -> t
val rev_implode : CamomileLibrary.UChar.t list -> t
val iter : (CamomileLibrary.UChar.t -> unit) -> t -> unit
val rev_iter : (CamomileLibrary.UChar.t -> unit) -> t -> unit
val fold : (CamomileLibrary.UChar.t -> 'a -> 'a) -> t -> 'a -> 'a
val rev_fold : (CamomileLibrary.UChar.t -> 'a -> 'a) -> t -> 'a -> 'a
val map_concat : (CamomileLibrary.UChar.t -> t) -> t -> t
val rev_map_concat : (CamomileLibrary.UChar.t -> t) -> t -> t
val filter : (CamomileLibrary.UChar.t -> bool) -> t -> t
val rev_filter : (CamomileLibrary.UChar.t -> bool) -> t -> t
val filter_map : (CamomileLibrary.UChar.t -> CamomileLibrary.UChar.t option) -> t -> t
val rev_filter_map : (CamomileLibrary.UChar.t -> CamomileLibrary.UChar.t option) -> t -> t
val filter_map_concat : (CamomileLibrary.UChar.t -> t option) -> t -> t
val rev_filter_map_concat : (CamomileLibrary.UChar.t -> t option) -> t -> t
val for_all : (CamomileLibrary.UChar.t -> bool) -> t -> bool
val exists : (CamomileLibrary.UChar.t -> bool) -> t -> bool
val count : (CamomileLibrary.UChar.t -> bool) -> t -> int
val contains : t -> t -> bool
val starts_with : t -> t -> bool
val ends_with : t -> t -> bool
val strip : ?predicate:(CamomileLibrary.UChar.t -> bool) -> t -> t
val lstrip : ?predicate:(CamomileLibrary.UChar.t -> bool) -> t -> t
val rstrip : ?predicate:(CamomileLibrary.UChar.t -> bool) -> t -> t
val lchop : t -> t
val rchop : t -> t
val add : Buffer.t -> CamomileLibrary.UChar.t -> unit
val escaped_char : CamomileLibrary.UChar.t -> t
val add_escaped_char : Buffer.t -> CamomileLibrary.UChar.t -> unit
val escaped : t -> t
val add_escaped : Buffer.t -> t -> unit
val escaped_string : CamomileLibraryDyn.Camomile.CharEncoding.t -> string -> t
val add_escaped_string : Buffer.t -> CamomileLibraryDyn.Camomile.CharEncoding.t -> string -> unit
val next : t -> int -> int
val prev : t -> int -> int
val extract : t -> int -> CamomileLibrary.UChar.t
val extract_next : t -> int -> CamomileLibrary.UChar.t * int
val extract_prev : t -> int -> CamomileLibrary.UChar.t * int
val unsafe_next : t -> int -> int
val unsafe_prev : t -> int -> int
val unsafe_extract : t -> int -> CamomileLibrary.UChar.t
val unsafe_extract_next : t -> int -> CamomileLibrary.UChar.t * int
val unsafe_extract_prev : t -> int -> CamomileLibrary.UChar.t * int
OCaml

Innovation. Community. Security.