package spotlib

  1. Overview
  2. Docs
include module type of struct include Stdlib.Printf end
val fprintf : Stdlib.out_channel -> ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val printf : ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val eprintf : ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val sprintf : ('a, unit, string) Stdlib.format -> 'a
val bprintf : Stdlib.Buffer.t -> ('a, Stdlib.Buffer.t, unit) Stdlib.format -> 'a
val ifprintf : 'b -> ('a, 'b, 'c, unit) Stdlib.format4 -> 'a
val ibprintf : Stdlib.Buffer.t -> ('a, Stdlib.Buffer.t, unit) Stdlib.format -> 'a
val kfprintf : (Stdlib.out_channel -> 'd) -> Stdlib.out_channel -> ('a, Stdlib.out_channel, unit, 'd) Stdlib.format4 -> 'a
val ikfprintf : ('b -> 'd) -> 'b -> ('a, 'b, 'c, 'd) Stdlib.format4 -> 'a
val ksprintf : (string -> 'd) -> ('a, unit, string, 'd) Stdlib.format4 -> 'a
val kbprintf : (Stdlib.Buffer.t -> 'd) -> Stdlib.Buffer.t -> ('a, Stdlib.Buffer.t, unit, 'd) Stdlib.format4 -> 'a
val ikbprintf : (Stdlib.Buffer.t -> 'd) -> Stdlib.Buffer.t -> ('a, Stdlib.Buffer.t, unit, 'd) Stdlib.format4 -> 'a
val kprintf : (string -> 'b) -> ('a, unit, string, 'b) Stdlib.format4 -> 'a
include module type of struct include Xprintf end
val zprintf : ('a, 'b, unit) Stdlib.format -> 'a

Consumer of format string. Does nothing.

Expression zprintf "complex %d format %s string" 10 "hello" does not perform any internal formatting of the format string and discards it and the corresponding arguments.

val format_check : ('a, 'b, 'c, 'd, 'e, 'f) Stdlib.format6 -> string -> ('a, 'b, 'c, 'd, 'e, 'f) Stdlib.format6

runtime format type check. format_check template string checks string has the same type as template as format string. If it has, it converts string to the corresponding printf format string. Otherwise it raises Invalid_argument.

OCaml

Innovation. Community. Security.