package links
include module type of Stdlib.Format
with type formatter = Stdlib.Format.formatter
val pp_open_box : formatter -> int -> unit
val pp_close_box : formatter -> unit -> unit
val pp_open_hbox : formatter -> unit -> unit
val pp_open_vbox : formatter -> int -> unit
val pp_open_hvbox : formatter -> int -> unit
val pp_open_hovbox : formatter -> int -> unit
val pp_print_string : formatter -> string -> unit
val pp_print_bytes : formatter -> bytes -> unit
val pp_print_as : formatter -> int -> string -> unit
val pp_print_int : formatter -> int -> unit
val pp_print_float : formatter -> float -> unit
val pp_print_char : formatter -> char -> unit
val pp_print_bool : formatter -> bool -> unit
val pp_print_space : formatter -> unit -> unit
val pp_print_cut : formatter -> unit -> unit
val pp_print_break : formatter -> int -> int -> unit
val pp_print_custom_break :
formatter ->
fits:(string * int * string) ->
breaks:(string * int * string) ->
unit
val pp_force_newline : formatter -> unit -> unit
val pp_print_if_newline : formatter -> unit -> unit
val pp_print_flush : formatter -> unit -> unit
val pp_print_newline : formatter -> unit -> unit
val pp_set_margin : formatter -> int -> unit
val pp_get_margin : formatter -> unit -> int
val pp_set_max_indent : formatter -> int -> unit
val pp_get_max_indent : formatter -> unit -> int
val check_geometry : geometry -> bool
val pp_set_geometry : formatter -> max_indent:int -> margin:int -> unit
val pp_safe_set_geometry : formatter -> max_indent:int -> margin:int -> unit
val get_geometry : unit -> geometry
val pp_set_max_boxes : formatter -> int -> unit
val pp_get_max_boxes : formatter -> unit -> int
val pp_over_max_boxes : formatter -> unit -> bool
val pp_open_tbox : formatter -> unit -> unit
val pp_close_tbox : formatter -> unit -> unit
val pp_set_tab : formatter -> unit -> unit
val pp_print_tab : formatter -> unit -> unit
val pp_print_tbreak : formatter -> int -> int -> unit
val pp_set_ellipsis_text : formatter -> string -> unit
val pp_get_ellipsis_text : formatter -> unit -> string
val open_stag : stag -> unit
val pp_close_stag : formatter -> unit -> unit
val pp_set_tags : formatter -> bool -> unit
val pp_set_print_tags : formatter -> bool -> unit
val pp_set_mark_tags : formatter -> bool -> unit
val pp_get_print_tags : formatter -> unit -> bool
val pp_get_mark_tags : formatter -> unit -> bool
val pp_set_formatter_out_channel : formatter -> Stdlib.out_channel -> unit
val pp_set_formatter_output_functions :
formatter ->
(string -> int -> int -> unit) ->
(unit -> unit) ->
unit
val pp_get_formatter_output_functions :
formatter ->
unit ->
(string -> int -> int -> unit) * (unit -> unit)
val pp_set_formatter_out_functions :
formatter ->
formatter_out_functions ->
unit
val set_formatter_out_functions : formatter_out_functions -> unit
val pp_get_formatter_out_functions :
formatter ->
unit ->
formatter_out_functions
val get_formatter_out_functions : unit -> formatter_out_functions
val pp_set_formatter_stag_functions :
formatter ->
formatter_stag_functions ->
unit
val set_formatter_stag_functions : formatter_stag_functions -> unit
val pp_get_formatter_stag_functions :
formatter ->
unit ->
formatter_stag_functions
val get_formatter_stag_functions : unit -> formatter_stag_functions
val formatter_of_out_channel : Stdlib.out_channel -> formatter
val synchronized_formatter_of_out_channel :
Stdlib.out_channel ->
formatter Stdlib.Domain.DLS.key
val std_formatter : formatter
val get_std_formatter : unit -> formatter
val err_formatter : formatter
val get_err_formatter : unit -> formatter
val formatter_of_buffer : Stdlib.Buffer.t -> formatter
val str_formatter : formatter
val get_str_formatter : unit -> formatter
val make_formatter :
(string -> int -> int -> unit) ->
(unit -> unit) ->
formatter
val make_synchronized_formatter :
(string -> int -> int -> unit) ->
(unit -> unit) ->
formatter Stdlib.Domain.DLS.key
val formatter_of_out_functions : formatter_out_functions -> formatter
val make_symbolic_output_buffer : unit -> symbolic_output_buffer
val clear_symbolic_output_buffer : symbolic_output_buffer -> unit
val get_symbolic_output_buffer :
symbolic_output_buffer ->
symbolic_output_item list
val flush_symbolic_output_buffer :
symbolic_output_buffer ->
symbolic_output_item list
val add_symbolic_output_item :
symbolic_output_buffer ->
symbolic_output_item ->
unit
val formatter_of_symbolic_output_buffer : symbolic_output_buffer -> formatter
val pp_print_text : formatter -> string -> unit
val printf : ('a, formatter, unit) Stdlib.format -> 'a
val eprintf : ('a, formatter, unit) Stdlib.format -> 'a
val asprintf : ('a, formatter, unit, string) Stdlib.format4 -> 'a
val kasprintf :
(string -> 'a) ->
('b, formatter, unit, 'a) Stdlib.format4 ->
'b
type 'a fmt_fn = formatter -> 'a -> unit
val pp_constant : string -> unit fmt_fn
Returns a formatter which prints a constant string value.
val pp_constant_poly : string -> 'a fmt_fn
Returns a formatter which prints a constant string value, ignoring the input value.
Transforms the input using the function f and prints it using the supplied formatter.
val pp_comma : unit fmt_fn
A formatter which prints a constant ", "
Format a list as comma separated values.
Example:
Format.asprintf "%a" (Format.pp_comma_list Format.pp_print_int) [5, 6, 7]
evaluates to: 5, 6, 7
val pp_comma_string_list : string list fmt_fn
Format a list of string as comma separated values.
Example:
Format.asprintf "%a" Format.pp_comma_string_list ["hello", "world"]
evaluates to: "hello, world"
Format a list as newline separated values. See Format.pp_comma_list
.
Pad a string so it has length
characters.
Example:
Format.asprintf "%a - %s"
(Format.pp_padded ~length:8 Format.pp_print_string) "hello" "world"
evaluates to: "hello - world"
val show_of_pp : 'a fmt_fn -> 'a -> string
Construct a show
command of type 'a -> string
from a formatter.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>