Rich_text.Bufferval create : ?indent:int -> ?margin:int -> unit -> bufferCreate a buffer.
The right-margin is set to ~margin and maximum indentation to ~indent. Default values are those of Format.make_formatter, which are ~indent:68 and ~margin:78 in OCaml 4.05.
val reset : buffer -> unitReset the buffer to its initial empty state.
val add_char : buffer -> char -> unitBuffer-like
val add_string : buffer -> string -> unitBuffer-like
Buffer-like
val add_substring : buffer -> string -> int -> int -> unitBuffer-like
Buffer-like
val bprintf : buffer -> ('a, Format.formatter, unit) format -> 'aPretty printing into the buffer. Similar to Format.fprintf.
val kbprintf :
(Format.formatter -> 'a) ->
buffer ->
('b, Format.formatter, unit, 'a) format4 ->
'bSame as bprintf above, but instead of returning immediately, passes a formatter to the continuation given as first argument at the end of printing.