package acgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=07f391d052090bb70c10ec511fdc53af764954cbe1c30093778984c5ed41a4327573fdac0890c6fd619ff9827725572eb7b8a7545bd8ccb7f5bddb84d2d7f7cc
doc/acgtk.utilsLib/UtilsLib/PPUtils/index.html
Module UtilsLib.PPUtilsSource
This module provides pretty printing formatters and utilities
val pp_list :
?sep:(unit, Format.formatter, unit, unit, unit, unit) format6 ->
?terminal:(unit, Format.formatter, unit, unit, unit, unit) format6 ->
(Format.formatter -> 'a -> unit) ->
Format.formatter ->
'a list ->
unitpp_list ~sep ppf fmt l pretty prints on the formater fmt the items of the list l, each of them being pretty-printed by ppf. Example usage: pp_list ~sep:",@\n" Format.pp_print_int Format.std_formatter [1;2;3]
val pp_list_i :
?sep:(unit, Format.formatter, unit, unit, unit, unit) format6 ->
?terminal:(unit, Format.formatter, unit, unit, unit, unit) format6 ->
(Format.formatter -> (int * 'a) -> unit) ->
Format.formatter ->
'a list ->
unitpp_list_i ~sep ppf fmt l pretty prints on the formater fmt the items of the list l, each of them, together with its position (starting at 1) being pretty-printed by ppf.
pp_text fmt t pretty prints on the formater fmt the text of of the string t where each space in t is made a space break.
resize_formatter ~width ~formatter () sets the max output width of the formatter formatter to width. Argument formatter defaults to Format.std_formatter. Argument width defaults to the current terminal width if stdout is a tty, or Format.pp_infinity - 1 otherwise.
no_pp () sets the max output width of the formatter formatter to Format.pp_infinity - 1 so that break hints are basically not used, and no pretty printing information is used but semantic tags. Argument formatter defaults to Format.std_formatter.
app_pp ppf s pretty prints the string s on the formatter ppf surrounded by the application semantic tag <app>
err_pp ppf s pretty prints the string s on the formatter ppf surrounded by the error semantic tag <err>
warn_pp ppf s pretty prints the string s on the formatter ppf surrounded by the warning semantic tag <warn>
info_pp ppf s pretty prints the string s on the formatter ppf surrounded by the information semantic tag <info>
debug_pp ppf s pretty prints the string s on the formatter ppf surrounded by the debug semantic tag <debug>
fun_pp ppf s pretty prints the string s on the formatter ppf surrounded by the semantic tag <fun>
sig_pp ppf s pretty prints the string s on the formatter ppf surrounded by the semantic tag <sig>
lex_pp ppf s pretty prints the string s on the formatter ppf surrounded by the semantic tag <lex>
terms_pp ppf s pretty prints the string s on the formatter ppf surrounded by the semantic tag <terms>
arg_pp ppf s pretty prints the string s on the formatter ppf surrounded by the semantic tag <arg>
bin_pp ppf s pretty prints the string s on the formatter ppf surrounded by the semantic tag <bin>