Simple C++ utility. Pads a string (a std::basic_string<...>) from the left.
|
6 years ago | |
---|---|---|
LICENSE | 6 years ago | |
README.md | 6 years ago | |
left_pad.hpp | 6 years ago |
Simple C++ utility. Pads a string (a std::basic_string<...>) from the left.
#include <left_pad/left_pad.hpp>
...
string text= "Some text";
cout<< left_pad(text, 20)<< endl;
Expected output:
Some text.
Released under GNU LGPL, see LICENSE.