1
external length : string -> int = "%string_length"
2
external get : string -> int -> char = "%string_safe_get"
3
external set : string -> int -> char -> unit = "%string_safe_set"
4
external create : int -> string = "caml_create_string"
5
val make : int -> char -> string
6
val copy : string -> string
7
val sub : string -> pos:int -> len:int -> string
8
val fill : string -> pos:int -> len:int -> char -> unit
10
src:string -> src_pos:int -> dst:string -> dst_pos:int -> len:int -> unit
11
val concat : sep:string -> string list -> string
12
val iter : f:(char -> unit) -> string -> unit
13
val escaped : string -> string
14
val index : string -> char -> int
15
val rindex : string -> char -> int
16
val index_from : string -> int -> char -> int
17
val rindex_from : string -> int -> char -> int
18
val contains : string -> char -> bool
19
val contains_from : string -> int -> char -> bool
20
val rcontains_from : string -> int -> char -> bool
21
val uppercase : string -> string
22
val lowercase : string -> string
23
val capitalize : string -> string
24
val uncapitalize : string -> string
26
val compare : t -> t -> int
27
external unsafe_get : string -> int -> char = "%string_unsafe_get"
28
external unsafe_set : string -> int -> char -> unit = "%string_unsafe_set"
29
external unsafe_blit :
30
src:string -> src_pos:int -> dst:string -> dst_pos:int -> len:int -> unit =
31
"caml_blit_string" "noalloc"
32
external unsafe_fill :
33
string -> pos:int -> len:int -> char -> unit = "caml_fill_string" "noalloc"