Simple C++ utility. Pads a string (a std::basic_string<...>) from the left.
Git Admin 2aa531b88d Upload 1. left_pad implementation. | vor 6 Jahren | |
---|---|---|
LICENSE | vor 6 Jahren | |
README.md | vor 6 Jahren | |
left_pad.hpp | vor 6 Jahren |
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.