package General

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = string
val of_char : char -> t
val of_list : char list -> t
val to_list : t -> char list
val size : t -> int
val get : t -> int -> char
val set : bytes -> int -> char -> unit
val of_bytes : bytes -> t
val to_bytes : t -> bytes
module O : sig ... end
include Traits.Displayable.S0 with type t := t
val to_string : t -> string
include Traits.Parsable.S0 with type t := t
val try_of_string : string -> t option
val of_string : string -> t
include Concepts.Able.S0 with type t := t and module O := O
include Concepts.Identifiable.S0 with type t := t and module O := O
include Traits.Equatable.S0 with type t := t with module O := O
include Traits.Equatable.Basic.S0 with type t := t
val equal : t -> t -> bool
val different : t -> t -> bool
include Traits.Representable.S0 with type t := t
val repr : t -> string
include Traits.Comparable.S0 with type t := t and module O := O
include Traits.Comparable.Basic.S0 with type t := t
val compare : t -> t -> Compare.t
val less_than : t -> t -> bool
val less_or_equal : t -> t -> bool
val greater_than : t -> t -> bool
val greater_or_equal : t -> t -> bool
val between : t -> low:t -> high:t -> bool
val between_or_equal : t -> low:t -> high:t -> bool
val min : t -> t -> t
val max : t -> t -> t
val min_max : t -> t -> t * t
val concat : t -> t -> t
val substring : t -> pos:int -> len:int -> t
val prefix : t -> len:int -> t
val suffix : t -> len:int -> t
val has_prefix : t -> pre:t -> bool
val try_drop_prefix : t -> pre:t -> t option
val drop_prefix : t -> pre:t -> t
val drop_prefix' : t -> len:int -> t
val has_suffix : t -> suf:t -> bool
val try_drop_suffix : t -> suf:t -> t option
val drop_suffix : t -> suf:t -> t
val drop_suffix' : t -> len:int -> t
val split : t -> sep:t -> t list
val split' : t -> seps:char list -> t list
val fold : init:'a -> t -> f:('a -> char -> 'a) -> 'a
val filter : t -> f:(char -> bool) -> t