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