MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / pad_right

Function pad_right

src/commandline.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace MOBase;
17
18std::string pad_right(std::string s, std::size_t n, char c = ' ')
19{
20 if (s.size() < n)
21 s.append(n - s.size(), c);
22
23 return s;
24}
25
26// formats the list of pairs in two columns
27//

Callers 1

tableFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected