package smart-print
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c28d6260af67666c5d70542dc496d3a0c3e48be441aa23f82df3cf2898d1884f
sha512=45e1485eaab0633f352868ab85d7551ec6c32a4b8a56dd882c0e3145a10630da746b92f0b4870f6c141abd12ceac161ac916d774627616e6929dfa485059d33e
doc/smart-print/SmartPrint/index.html
Module SmartPrint
Source
SmartPrint library.
The document's abstract type.
A non-breakable string pointing to the sub-string of an existing string. Does not duplicate the sub-string. The sub-string is indexed by its offset and its length.
Concatenation of two documents with a breakable space in between. Like d1 ^-^ space ^-^ d2
.
Group a document, breaking spaces only when necessary. Indent when spaces are broken.
Group a document, breaking all spaces if the line is full. Indent when spaces are broken.
Group a document, breaking spaces only when necessary. Do not indent when spaces are broken.
Group a document, breaking all spaces if the line is full. Do not indent when spaces are broken.
Concatenate the list of documents with no space. concat [d1; ...; dn] = d1 ^-^ ... ^-^ dn
Concatenate the list of documents with no space but adding a separator in between. separate sep [d1; ...; dn] = d1 ^-^ sep ^-^ d2 ^-^ sep ... sep ^-^ dn
val to_something :
int ->
int ->
(char -> unit) ->
(string -> unit) ->
(string -> int -> int -> unit) ->
t ->
unit
Render a document with a maximal width
per line and a tabulation size. Uses the functions add_char
, add_string
and add_sub_string
given.
Render a document in a buffer with a maximal width
per line and a tabulation size.
Render a document in a string with a maximal width
per line and a tabulation size.
Render a document in an output channel with a maximal width
per line and a tabulation size.