module String: sig
.. end
Extended functionality
val match_beg : string -> string -> int -> bool
match_beg s1 s2 i
checks if the first i
characters of s1
and s2
are equal.
val match_end : string -> string -> int -> bool
match_end s1 s2 i
checks if the last i
characters of s1
and s2
are equal.
val suffix : string -> string -> bool
suffix s1 s2
checks if s2
is the suffix of s1
.
val prefix : string -> string -> bool
prefix s1 s2
checks if s2
is the prefix of s1
.
Functions from the original List module
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 iteri : (int -> char -> unit) -> string -> unit
val map : (char -> char) -> string -> string
val trim : string -> string
val escaped : string -> string
val index : string -> char -> int
val rindex : string -> char -> int
val index_from : string -> int -> char -> int
val rindex_from : string -> int -> char -> int
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
type
t = string
val compare : t -> t -> int
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