MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / addRow

Method addRow

unittests/catch.hpp:12084–12096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12082 : label( std::move( _label ) ),
12083 colour( _colour ) {}
12084 SummaryColumn addRow( std::size_t count ) {
12085 ReusableStringStream rss;
12086 rss << count;
12087 std::string row = rss.str();
12088 for (auto& oldRow : rows) {
12089 while (oldRow.size() < row.size())
12090 oldRow = ' ' + oldRow;
12091 while (oldRow.size() > row.size())
12092 row = ' ' + row;
12093 }
12094 rows.push_back(row);
12095 return *this;
12096 }
12097
12098 std::string label;
12099 Colour::Code colour;

Callers 1

printTotalsMethod · 0.80

Calls 2

strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected