module MzString: sig
.. end
Various string utilities.
val bsprintf : ('a, Buffer.t, unit, string) Pervasives.format4 -> 'a
Make all your pretty-printers work with buffers and use this to get a
Printf.sprintf
val bfprintf : ?new_line:unit ->
Pervasives.out_channel -> ('a, Buffer.t, unit, unit) Pervasives.format4 -> 'a
Make all your pretty-printers work with buffers, use them with %a
and use
this to get a Printf.fprintf
val bprintf : ('a, Buffer.t, unit, unit) Pervasives.format4 -> 'a
Make all your pretty-printers work with buffers, use them with %a
and use
this to get a Printf.printf
val beprintf : ('a, Buffer.t, unit, unit) Pervasives.format4 -> 'a
Make all your pretty-printers work with buffers, use them with %a
and use
this to get a Printf.eprintf
val biprintf : ('a, Buffer.t, unit) Pervasives.format -> 'a
In case you need to ignore some stuff.
val replace : string -> string -> string -> string
replace s1 s2 s
replaces all occurrences of s1
with s2
in s
.
val split : string -> char -> string list
split s c
will split string s
on character c
val substring : string -> int -> int -> string
substring s i j
will return all characters from string s
comprised
between indices i
(included) and j
(excluded).