package stdcompat

  1. Overview
  2. Docs
val length : bytes -> int
val get : bytes -> int -> char
val set : bytes -> int -> char -> unit
val create : int -> bytes
val make : int -> char -> bytes
val init : int -> (int -> char) -> bytes
val copy : bytes -> bytes
val sub : bytes -> int -> int -> bytes
val fill : bytes -> int -> int -> char -> unit
val blit : bytes -> int -> bytes -> int -> int -> unit
val concat : bytes -> bytes list -> bytes
val iter : (char -> unit) -> bytes -> unit
val iteri : (int -> char -> unit) -> bytes -> unit
val map : (char -> char) -> bytes -> bytes
val mapi : (int -> char -> char) -> bytes -> bytes
val trim : bytes -> bytes
val escaped : bytes -> bytes
val index : bytes -> char -> int
val index_opt : bytes -> char -> int option
val rindex : bytes -> char -> int
val rindex_opt : bytes -> char -> int option
val index_from : bytes -> int -> char -> int
val index_from_opt : bytes -> int -> char -> int option
val rindex_from : bytes -> int -> char -> int
val rindex_from_opt : bytes -> int -> char -> int option
val contains : bytes -> char -> bool
val contains_from : bytes -> int -> char -> bool
val rcontains_from : bytes -> int -> char -> bool
val uppercase : bytes -> bytes
  • deprecated Use Bytes.uppercase_ascii instead.
val lowercase : bytes -> bytes
  • deprecated Use Bytes.lowercase_ascii instead.
val capitalize : bytes -> bytes
  • deprecated Use Bytes.capitalize_ascii instead.
val uncapitalize : bytes -> bytes
  • deprecated Use Bytes.uncapitalize_ascii instead.
type t = bytes
val compare : t -> t -> int
val unsafe_get : bytes -> int -> char
val unsafe_set : bytes -> int -> char -> unit
val unsafe_blit : bytes -> int -> bytes -> int -> int -> unit
val unsafe_fill : bytes -> int -> int -> char -> unit
val empty : t
val of_string : string -> t
val to_string : t -> string
val sub_string : t -> int -> int -> string
val extend : t -> int -> int -> t
val blit_string : string -> int -> t -> int -> int -> unit
val cat : t -> t -> t
val unsafe_of_string : string -> t
val unsafe_to_string : t -> string
val uppercase_ascii : t -> t
val lowercase_ascii : t -> t
val capitalize_ascii : t -> t
val uncapitalize_ascii : t -> t
val equal : t -> t -> bool
val of_seq : char Seq.t -> t
val to_seq : t -> char Seq.t
val to_seqi : t -> (int * char) Seq.t
OCaml

Innovation. Community. Security.