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

Git Admin 2aa531b88d Upload 1. left_pad implementation. 5 yıl önce
LICENSE 02978f56ec Initial commit 5 yıl önce
README.md 2aa531b88d Upload 1. left_pad implementation. 5 yıl önce
left_pad.hpp 2aa531b88d Upload 1. left_pad implementation. 5 yıl önce

README.md

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.