MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / addRow

Method addRow

Bcore/src/main/cpp/Dobby/tests/catch.hpp:11981–11993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11979 SummaryColumn(std::string _label, Colour::Code _colour) : label(std::move(_label)), colour(_colour) {
11980 }
11981 SummaryColumn addRow(std::size_t count) {
11982 ReusableStringStream rss;
11983 rss << count;
11984 std::string row = rss.str();
11985 for (auto &oldRow : rows) {
11986 while (oldRow.size() < row.size())
11987 oldRow = ' ' + oldRow;
11988 while (oldRow.size() > row.size())
11989 row = ' ' + row;
11990 }
11991 rows.push_back(row);
11992 return *this;
11993 }
11994
11995 std::string label;
11996 Colour::Code colour;

Callers 1

printTotalsMethod · 0.80

Calls 2

strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected