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

Method printHeaderString

unittests/catch.hpp:12070–12077  ·  view source on GitHub ↗

if string has a : in first line will set indent to follow it on subsequent lines

Source from the content-addressed store, hash-verified

12068// if string has a : in first line will set indent to follow it on
12069// subsequent lines
12070void ConsoleReporter::printHeaderString(std::string const& _string, std::size_t indent) {
12071 std::size_t i = _string.find(": ");
12072 if (i != std::string::npos)
12073 i += 2;
12074 else
12075 i = 0;
12076 stream << Column(_string).indent(indent + i).initialIndent(indent) << '\n';
12077}
12078
12079struct SummaryColumn {
12080

Callers

nothing calls this directly

Calls 4

ColumnClass · 0.85
initialIndentMethod · 0.80
findMethod · 0.45
indentMethod · 0.45

Tested by

no test coverage detected