lpad.h
Go to the documentation of this file.
1 #ifndef cetlib_lpad_h
2 #define cetlib_lpad_h
3 
4 // ======================================================================
5 //
6 // lpad: Left-pad a string to the wanted size, unless already longer
7 //
8 // ======================================================================
9 
10 #include <string>
11 
12 namespace cet {
13  std::string lpad(std::string const& pad_me,
14  std::string::size_type wanted_size,
15  char char_to_pad_with = ' ');
16 }
17 
18 #endif /* cetlib_lpad_h */
19 
20 // Local Variables:
21 // mode: c++
22 // End:
std::string string
Definition: nybbler.cc:12
std::string lpad(std::string const &pad_me, std::string::size_type wanted_size, char char_to_pad_with= ' ')
Definition: lpad.cc:10