You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6591 Reporter:@dra27 Status: closed (set by @zoggy on 2014-09-30T11:06:17Z) Resolution: won't fix Priority: normal Severity: feature Version: 4.02.0+beta1 / +rc1 Category: standard library
Bug description
It would be useful to have a function in Buffer which accepts formatted (Printf) input.
Steps to reproduce
Very simple (but useful!) new function:
[stdlib/buffer.ml, after add_string]
let add_fstring b fmt = Printf.ksprintf (add_string b) fmt
[stdlib/buffer.mli, after add_string]
val add_fstring : t -> ('a, unit, string, unit) format4 -> 'a
(** [add_fstring b format arg1 ... argN] formats the arguments [arg1] to [argN] according to the format string [format] (see {!Printf.fprintf}) and appends this string at the end of the buffer [b]. @SInCE 4.02.1
*)
The text was updated successfully, but these errors were encountered:
Original bug ID: 6591
Reporter: @dra27
Status: closed (set by @zoggy on 2014-09-30T11:06:17Z)
Resolution: won't fix
Priority: normal
Severity: feature
Version: 4.02.0+beta1 / +rc1
Category: standard library
Bug description
It would be useful to have a function in Buffer which accepts formatted (Printf) input.
Steps to reproduce
Very simple (but useful!) new function:
[stdlib/buffer.ml, after add_string]
let add_fstring b fmt = Printf.ksprintf (add_string b) fmt
[stdlib/buffer.mli, after add_string]
val add_fstring : t -> ('a, unit, string, unit) format4 -> 'a
(** [add_fstring b format arg1 ... argN] formats the arguments [arg1] to [argN] according to the format string [format] (see {!Printf.fprintf}) and appends this string at the end of the buffer [b].
@SInCE 4.02.1
*)
The text was updated successfully, but these errors were encountered: