summaryrefslogtreecommitdiff
path: root/stdlib/stringLabels.mli
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2010-11-05 08:15:36 +0000
committerAlain Frisch <alain@frisch.fr>2010-11-05 08:15:36 +0000
commitf537ba28b044ee7c4ea9d05e3934c9146e079cc1 (patch)
treed9c06dc96b017ad80ebb38929b88f91ced9b0a9a /stdlib/stringLabels.mli
parenta5628ad72587ecef6e117b7436d49935638beab9 (diff)
downloadocaml-f537ba28b044ee7c4ea9d05e3934c9146e079cc1.tar.gz
Adding String.iteri.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10762 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/stringLabels.mli')
-rw-r--r--stdlib/stringLabels.mli7
1 files changed, 7 insertions, 0 deletions
diff --git a/stdlib/stringLabels.mli b/stdlib/stringLabels.mli
index 9cbee708bb..d1a3966f57 100644
--- a/stdlib/stringLabels.mli
+++ b/stdlib/stringLabels.mli
@@ -84,6 +84,13 @@ val iter : f:(char -> unit) -> string -> unit
the characters of [s]. It is equivalent to
[f s.[0]; f s.[1]; ...; f s.[String.length s - 1]; ()]. *)
+val iteri : f:(int -> char -> unit) -> string -> unit
+(** Same as {!String.iter}, but the
+ function is applied to the index of the element as first argument (counting from 0),
+ and the character itself as second argument.
+ @since 3.13.0
+*)
+
val escaped : string -> string
(** Return a copy of the argument, with special characters
represented by escape sequences, following the lexical