README.md 313 B

left_pad

Simple C++ utility. Pads a string (a std::basic_string<...>) from the left.

Usage

#include <left_pad/left_pad.hpp>

...

string text= "Some text";
cout<< left_pad(text, 20)<< endl;

Expected output:

          Some text.

License

Released under GNU LGPL, see LICENSE.