20 #ifndef ESSENTIA_STRINGUTIL_H
21 #define ESSENTIA_STRINGUTIL_H
32 std::string
toLower(
const std::string& str);
37 std::string
toUpper(
const std::string& str);
43 std::vector<std::string>
tokenize(
const std::string& str,
const std::string& delimiters,
bool trimEmpty =
false);
48 std::string
strip(
const std::string& str);
56 std::ostringstream
oss;
62 std::string
str()
const {
return oss.str(); }
66 std::string
pad(
int n,
int size,
char paddingChar=
' ',
bool leftPadded=
false);
67 std::string
pad(
const std::string& str,
int size,
char paddingChar=
' ',
bool leftPadded=
false);
Definition: stringutil.h:54
Stringifier & operator<<(const T &msg)
Definition: stringutil.h:60
std::ostringstream oss
Definition: stringutil.h:56
std::string str() const
Definition: stringutil.h:62
Definition: algorithm.h:28
std::string strip(const std::string &str)
std::vector< std::string > tokenize(const std::string &str, const std::string &delimiters, bool trimEmpty=false)
std::string toLower(const std::string &str)
std::string toUpper(const std::string &str)
std::string pad(int n, int size, char paddingChar=' ', bool leftPadded=false)