module Native_string: sig
.. end
include StringLabels
type
character = char
val empty : string
val is_empty : t -> bool
val of_character : char -> string
val of_character_list : char list -> string
val to_character_list : string -> char list
val get : string -> index:int -> char option
val set : string -> index:int -> v:char -> string option
val get_exn : string -> index:int -> char
val set_exn : string -> index:int -> v:char -> string
val compare_substring : string * int * int -> string * int * int -> int
type
s = t
module T_length_and_compsub: sig
.. end
include struct ... end
include struct ... end
val to_native_string : string -> string
val of_native_string : string -> (string, 'a) Sosa.result
val of_native_substring : string ->
offset:int -> length:int -> (string, [> `out_of_bounds ]) Sosa.result
val to_string_hum : string -> string
val concat : ?sep:string -> string list -> string
val fold : string -> init:'a -> f:('a -> char -> 'a) -> 'a
val foldi : string -> init:'a -> f:(int -> 'a -> char -> 'a) -> 'a
val fold2_exn : string -> string -> init:'a -> f:('a -> char -> char -> 'a) -> 'a
val sub_exn : string -> index:int -> length:int -> string
val sub : string -> index:int -> length:int -> string option
val slice_exn : ?start:int -> ?finish:int -> t -> string
val slice : ?start:int -> ?finish:int -> t -> string option
val mutate_exn : bytes -> index:int -> char -> unit
val mutate : bytes -> index:int -> char -> (unit, [> `out_of_bounds ]) Sosa.result
val blit_exn : src:string ->
src_index:int -> dst:bytes -> dst_index:int -> length:int -> unit
val blit : src:string ->
src_index:int ->
dst:bytes ->
dst_index:int -> length:int -> (unit, [> `out_of_bounds ]) Sosa.result
val iter : string -> f:(char -> unit) -> unit
val iteri : string -> f:(int -> char -> unit) -> unit
val iter_reverse : string -> f:(char -> 'a) -> unit
val rev : string -> string
val map : string -> f:(char -> char) -> string
val map2_exn : string -> string -> f:(char -> char -> char) -> string
val mapi : string -> f:(int -> char -> char) -> bytes
val for_all : string -> f:(char -> bool) -> bool
val exists : string -> f:(char -> bool) -> bool
val index_of_character : string -> ?from:int -> char -> int option
val index_of_character_reverse : string -> ?from:int -> char -> int option
val resize_from_length : from:int -> ?length:int -> length_of_s:int -> int * int
val find : ?from:int -> ?length:int -> string -> f:(char -> bool) -> int option
val find_reverse : ?from:int -> ?length:int -> string -> f:(char -> bool) -> int option
val filter_map : ?from:int -> ?length:int -> string -> f:(char -> char option) -> string
val filter : ?from:int -> ?length:int -> string -> f:(char -> bool) -> string
include struct ... end
include struct ... end
include struct ... end
include struct ... end
module Make_output:
val take_while_with_index : string -> f:(int -> char -> bool) -> string
val take_while : string -> f:(char -> bool) -> string