Debian Codegraph @

dev/bench/table.mli

raw symbols SCIP
1 module Align : sig
2 type t =
3 | Left
4 | MidLeft
5 | Middle
6 | MidRight
7 | Right
8 (** Type of Alignments. During the justification phase of printing, the
9 alignment decides how much space should be left on the left and right of the
10 data. *)
11 end
12
13 type sized_string = { str : string; size : int }
14 (** String with a display size. [size] is usually but not always
15 [String.length str] (or rather unicode length but currently no unicode support). *)
16
17 type header = sized_string
18 type row = sized_string list list
19
20 (** Print the table with optional alignment parameters. The alignment parametrs
21 must have the same shape as the corresponding data. Due to a limitation of
22 OCaml, the entire thing has to be thunked in order for optional arguments to
23 come at the end. *)
24 val print : header list
25 -> row
26 -> row list
27 -> ?align_headers:Align.t list
28 -> ?align_top:Align.t list list
29 -> ?align_rows:Align.t list list
30 -> unit
31 -> string
32
33 type raw_header = string
34 type raw_row = string list list
35
36 val raw_str : string -> sized_string
37 (** string which displays as itself *)
38
39 val raw_row : raw_row -> row
40
41 val raw_print : raw_header list
42 -> raw_row
43 -> raw_row list
44 -> ?align_headers:Align.t list
45 -> ?align_top:Align.t list list
46 -> ?align_rows:Align.t list list
47 -> unit
48 -> string
49 (** Print with display size = string length *)