MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / header

Function header

include/util/io.h:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94inline std::string header(const std::string &content) {
95 std::stringstream ss;
96 size_t padding = kLineWidth - content.length() - 2;
97 std::string line(padding / 2, '-');
98 ss << line << " " << content << " " << line;
99 if (padding % 2 == 1)
100 ss << '-';
101 return ss.str();
102}
103
104} // namespace pretty
105} // namespace graphvite

Callers 2

infoMethod · 0.85
infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected