#include <cstring>
#include <string>
Go to the source code of this file.
◆ concatenate()
template<typename... S>
std::string concatenate |
( |
S... |
s | ) |
|
Concatenate a list of std::string or '\0'-terminated strings.
- Note
- throws std::bad_alloc
- Parameters
-
s | List of std::string or '\0'-terminated strings |
- Returns
- concatenated string
◆ concatenate_acc() [1/2]
template<typename H , typename... T>
void concatenate_acc |
( |
std::string * |
acc, |
|
|
H |
head, |
|
|
T... |
tail |
|
) |
| |
◆ concatenate_acc() [2/2]
template<typename S >
void concatenate_acc |
( |
std::string * |
acc, |
|
|
S |
s |
|
) |
| |
◆ length_of_string() [1/2]
static size_t length_of_string |
( |
const char * |
s | ) |
|
|
inlinestatic |
◆ length_of_string() [2/2]
static size_t length_of_string |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
◆ sum_sizeof_strings() [1/2]
template<typename H , typename... T>
size_t sum_sizeof_strings |
( |
H |
head, |
|
|
T... |
tail |
|
) |
| |
◆ sum_sizeof_strings() [2/2]
template<typename S >
size_t sum_sizeof_strings |
( |
S |
s | ) |
|