package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val init : int -> (int -> char) -> string
val is_empty : string -> bool
val length : string -> int
val get : string -> int -> char
val set : string -> int -> char -> unit
val create : int -> string
val make : int -> char -> string
val copy : string -> string
val sub : string -> int -> int -> string
val fill : string -> int -> int -> char -> unit
val blit : string -> int -> string -> int -> int -> unit
val concat : string -> string list -> string
val iter : (char -> unit) -> string -> unit
val mapi : (int -> char -> char) -> string -> string
val escaped : string -> string
val contains : string -> char -> bool
val contains_from : string -> int -> char -> bool
val rcontains_from : string -> int -> char -> bool
val uppercase : string -> string
val lowercase : string -> string
val capitalize : string -> string
val uncapitalize : string -> string
val uppercase_ascii : string -> string
val lowercase_ascii : string -> string
val capitalize_ascii : string -> string
val uncapitalize_ascii : string -> string
type t = string
val enum : string -> char BatEnum.t
val of_enum : char BatEnum.t -> string
val backwards : string -> char BatEnum.t
val of_backwards : char BatEnum.t -> string
val of_list : char list -> string
val to_list : string -> char list
val of_int : int -> string
val of_float : float -> string
val of_char : char -> string
val map : (char -> char) -> string -> string
val fold_left : ('a -> char -> 'a) -> 'a -> string -> 'a
val fold_lefti : ('a -> int -> char -> 'a) -> 'a -> string -> 'a
val fold_right : (char -> 'a -> 'a) -> string -> 'a -> 'a
val fold_righti : (int -> char -> 'a -> 'a) -> string -> 'a -> 'a
val filter : (char -> bool) -> string -> string
val filter_map : (char -> char option) -> string -> string
val iteri : (int -> char -> unit) -> string -> unit
val find_all : string -> string -> int BatEnum.t
val ends_with : string -> string -> bool
val starts_with : string -> string -> bool
val exists : string -> string -> bool
val lchop : ?n:int -> string -> string
val rchop : ?n:int -> string -> string
val trim : string -> string
val quote : string -> string
val left : string -> int -> string
val right : string -> int -> string
val head : string -> int -> string
val tail : string -> int -> string
val strip : ?chars:string -> string -> string
val replace_chars : (char -> string) -> string -> string
val replace : str:string -> sub:string -> by:string -> bool * string
val nreplace : str:string -> sub:string -> by:string -> string
val repeat : string -> int -> string
val rev : string -> string
val rev_in_place : string -> unit
val in_place_mirror : string -> unit
val split_on_char : char -> string -> string list
val nsplit : string -> by:string -> string list
val join : string -> string list -> string
val slice : ?first:int -> ?last:int -> string -> string
val splice : string -> int -> int -> string -> string
val explode : string -> char list
val implode : char list -> string
val equal : t -> t -> bool
val ord : t -> t -> BatOrd.order
val compare : t -> t -> int
val icompare : t -> t -> int
module IString : sig ... end
val numeric_compare : t -> t -> int
module NumString : sig ... end
val edit_distance : t -> t -> int
val print : 'a BatInnerIO.output -> string -> unit
val println : 'a BatInnerIO.output -> string -> unit
val print_quoted : 'a BatInnerIO.output -> string -> unit
module Exceptionless : sig ... end
val unsafe_get : string -> int -> char
val unsafe_set : string -> int -> char -> unit
val unsafe_blit : string -> int -> string -> int -> int -> unit
val unsafe_fill : string -> int -> int -> char -> unit
val to_int : string -> int option
val to_float : string -> float option
val index : string -> char -> int option
val rindex : string -> char -> int option
val index_from : string -> int -> char -> int option
val rindex_from : string -> int -> char -> int option
val find : string -> string -> int option
val find_from : string -> int -> string -> int option
val rfind : string -> string -> int option
val rfind_from : string -> int -> string -> int option
val split : string -> by:string -> (string * string) option
val rsplit : string -> by:string -> (string * string) option
module Cap : sig ... end
OCaml

Innovation. Community. Security.