AsciiTable

The workhorse of the module.

Members

Functions

add
AsciiTable add(V values)

Add a row of strings

toString
string toString(string linePrefix = "", string separator = "")

Convert to tabular presentation

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