tlx
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
pad.hpp
Go to the documentation of this file.
1
/*******************************************************************************
2
* tlx/string/pad.hpp
3
*
4
* Part of tlx - http://panthema.net/tlx
5
*
6
* Copyright (C) 2007-2017 Timo Bingmann <tb@panthema.net>
7
*
8
* All rights reserved. Published under the Boost Software License, Version 1.0
9
******************************************************************************/
10
11
#ifndef TLX_STRING_PAD_HEADER
12
#define TLX_STRING_PAD_HEADER
13
14
#include <string>
15
16
namespace
tlx
{
17
18
//! \addtogroup tlx_string
19
//! \{
20
21
/*!
22
* Truncate or pad string to exactly len characters.
23
*/
24
std::string
pad
(
const
std::string& s,
size_t
len,
char
pad_char =
' '
);
25
26
//! \}
27
28
}
// namespace tlx
29
30
#endif // !TLX_STRING_PAD_HEADER
31
32
/******************************************************************************/
tlx
Definition:
exclusive_scan.hpp:17
tlx::pad
std::string pad(const std::string &s, size_t len, char pad_char)
Truncate or pad string to exactly len characters.
Definition:
pad.cpp:15
tlx
string
pad.hpp
Generated on Sat Oct 2 2021 20:29:00 for tlx by
1.8.11