package alcotest

  1. Overview
  2. Docs
type t = sub
val empty : sub
val v : ?start:int -> ?stop:int -> string -> sub
val start_pos : sub -> int
val stop_pos : sub -> int
val base_string : sub -> string
val length : sub -> int
val get : sub -> int -> char
val get_byte : sub -> int -> int
val unsafe_get : sub -> int -> char
val unsafe_get_byte : sub -> int -> int
val head : ?rev:bool -> sub -> char option
val get_head : ?rev:bool -> sub -> char
val of_string : string -> sub
val to_string : sub -> string
val rebase : sub -> sub
val hash : sub -> int
val start : sub -> sub
val stop : sub -> sub
val base : sub -> sub
val tail : ?rev:bool -> sub -> sub
val extend : ?rev:bool -> ?max:int -> ?sat:(char -> bool) -> sub -> sub
val reduce : ?rev:bool -> ?max:int -> ?sat:(char -> bool) -> sub -> sub
val extent : sub -> sub -> sub
val overlap : sub -> sub -> sub option
val append : sub -> sub -> sub
val concat : ?sep:sub -> sub list -> sub
val is_empty : sub -> bool
val is_prefix : affix:sub -> sub -> bool
val is_infix : affix:sub -> sub -> bool
val is_suffix : affix:sub -> sub -> bool
val for_all : (char -> bool) -> sub -> bool
val exists : (char -> bool) -> sub -> bool
val same_base : sub -> sub -> bool
val equal_bytes : sub -> sub -> bool
val compare_bytes : sub -> sub -> int
val equal : sub -> sub -> bool
val compare : sub -> sub -> int
val with_range : ?first:int -> ?len:int -> sub -> sub
val with_index_range : ?first:int -> ?last:int -> sub -> sub
val trim : ?drop:(char -> bool) -> sub -> sub
val span : ?rev:bool -> ?min:int -> ?max:int -> ?sat:(char -> bool) -> sub -> sub * sub
val take : ?rev:bool -> ?min:int -> ?max:int -> ?sat:(char -> bool) -> sub -> sub
val drop : ?rev:bool -> ?min:int -> ?max:int -> ?sat:(char -> bool) -> sub -> sub
val cut : ?rev:bool -> sep:sub -> sub -> (sub * sub) option
val cuts : ?rev:bool -> ?empty:bool -> sep:sub -> sub -> sub list
val fields : ?empty:bool -> ?is_sep:(char -> bool) -> sub -> sub list
val find : ?rev:bool -> (char -> bool) -> sub -> sub option
val find_sub : ?rev:bool -> sub:sub -> sub -> sub option
val filter : (char -> bool) -> sub -> sub
val filter_map : (char -> char option) -> sub -> sub
val map : (char -> char) -> sub -> sub
val mapi : (int -> char -> char) -> sub -> sub
val fold_left : ('a -> char -> 'a) -> 'a -> sub -> 'a
val fold_right : (char -> 'a -> 'a) -> sub -> 'a -> 'a
val iter : (char -> unit) -> sub -> unit
val iteri : (int -> char -> unit) -> sub -> unit
val pp : Stdlib.Format.formatter -> sub -> unit
val dump : Stdlib.Format.formatter -> sub -> unit
val dump_raw : Stdlib.Format.formatter -> sub -> unit
val of_char : char -> sub
val to_char : sub -> char option
val of_bool : bool -> sub
val to_bool : sub -> bool option
val of_int : int -> sub
val to_int : sub -> int option
val of_nativeint : nativeint -> sub
val to_nativeint : sub -> nativeint option
val of_int32 : int32 -> sub
val to_int32 : sub -> int32 option
val of_int64 : int64 -> sub
val to_int64 : sub -> int64 option
val of_float : float -> sub
val to_float : sub -> float option
OCaml

Innovation. Community. Security.