MCPcopy Create free account
hub / github.com/p-ranav/tabulate / main

Function main

samples/word_wrapping.cpp:5–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using Row_t = Table::Row_t;
4
5int main() {
6 Table table;
7
8 table.add_row(Row_t{"This paragraph contains a veryveryveryveryveryverylong "
9 "word. The long word will "
10 "break and word wrap to the next line.",
11 "This paragraph \nhas embedded '\\n' \ncharacters and\n "
12 "will break\n exactly "
13 "where\n you want it\n to\n break."});
14
15 table[0][0].format().width(20);
16 table[0][1].format().width(50);
17
18 std::cout << table << std::endl;
19}

Callers

nothing calls this directly

Calls 2

add_rowMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected