summaryrefslogtreecommitdiff
path: root/stdlib/buffer.mli
diff options
context:
space:
mode:
authorGabriel Scherer <gabriel.scherer@gmail.com>2014-12-19 17:31:47 +0000
committerGabriel Scherer <gabriel.scherer@gmail.com>2014-12-19 17:31:47 +0000
commitd6189d83a44b3bcb2957fa602b304ebf9999664b (patch)
tree72af467c72c5611bfa45f73f294805c3192d55d5 /stdlib/buffer.mli
parent3fc3a877f6d9234cf412e3bcf9c7a3d26b2e8efd (diff)
downloadocaml-d6189d83a44b3bcb2957fa602b304ebf9999664b.tar.gz
Add @since tags on stdlib functions new in 4.02
make_float was added in 4.02 Buffer.(to_bytes, add_bytes, add_subbytes) were added in 4.02. BytesLabels was added in 4.02. Digest.(bytes, subbytes) were added in 4.02. Marshal.(to_bytes, from_bytes) were added in 4.02. various Pervasives functions were added in 4.02: print_bytes prerr_bytes output_bytes output_substring really_input_string Printexc.(backtrace_slots, raw_backtrace_slot) were added in 4.02. Scanf.(ksscanf, kfscanf) were added in 4.02. Stream.of_bytes was added in 4.02. From: Jeremy Yallop <yallop@gmail.com> git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15687 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/buffer.mli')
-rw-r--r--stdlib/buffer.mli11
1 files changed, 7 insertions, 4 deletions
diff --git a/stdlib/buffer.mli b/stdlib/buffer.mli
index e7ce8b9999..962f6bc7fa 100644
--- a/stdlib/buffer.mli
+++ b/stdlib/buffer.mli
@@ -38,11 +38,12 @@ val create : int -> t
val contents : t -> string
(** Return a copy of the current contents of the buffer.
- The buffer itself is unchanged. *)
+ The buffer itself is unchanged. *)
val to_bytes : t -> bytes
(** Return a copy of the current contents of the buffer.
- The buffer itself is unchanged. *)
+ The buffer itself is unchanged.
+ @since 4.02 *)
val sub : t -> int -> int -> string
(** [Buffer.sub b off len] returns (a copy of) the bytes from the
@@ -85,7 +86,8 @@ val add_string : t -> string -> unit
(** [add_string b s] appends the string [s] at the end of the buffer [b]. *)
val add_bytes : t -> bytes -> unit
-(** [add_string b s] appends the string [s] at the end of the buffer [b]. *)
+(** [add_string b s] appends the string [s] at the end of the buffer [b].
+ @since 4.02 *)
val add_substring : t -> string -> int -> int -> unit
(** [add_substring b s ofs len] takes [len] characters from offset
@@ -93,7 +95,8 @@ val add_substring : t -> string -> int -> int -> unit
val add_subbytes : t -> bytes -> int -> int -> unit
(** [add_substring b s ofs len] takes [len] characters from offset
- [ofs] in byte sequence [s] and appends them at the end of the buffer [b]. *)
+ [ofs] in byte sequence [s] and appends them at the end of the buffer [b].
+ @since 4.02 *)
val add_substitute : t -> (string -> string) -> string -> unit
(** [add_substitute b f s] appends the string pattern [s] at the end