MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / writeWithWidth

Function writeWithWidth

src/Client/ProgressTable.cpp:172–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171template <typename Out>
172void writeWithWidth(Out & out, std::string_view s, size_t width)
173{
174 if (s.size() >= width)
175 out << s << " ";
176 else
177 out << s << std::string(width - s.size(), ' ');
178}
179
180template <typename Out>
181void writeWithWidthStrict(Out & out, std::string_view s, size_t width)

Callers 1

writeTableMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected