AsciiTable

The workhorse of the module.

Constructors

this
this(W minimumWidths)
Undocumented in source.

Members

Functions

add
AsciiTable add(V values)

Add a row of strings

toString
string toString(string linePrefix, string separator)

Convert to tabular presentation

Variables

minimumWidths
size_t[] minimumWidths;
Undocumented in source.
rows
Row[] rows;
Undocumented in source.

Examples

import unit_threaded;

AsciiTable(1, 2, 3).add("1", "2", "3").add("4", "5", "6").toString("prefix",
        "|").shouldEqual("prefix|1|2 |3  |\n" ~ "prefix|4|5 |6  |");

Meta