10 #ifndef STRINGUTILS_H_ 11 #define STRINGUTILS_H_ 20 namespace StringUtils {
22 using Tokens = std::vector<std::string>;
45 std::string
Trim(
const std::string &str);
65 bool IsReal(
const std::string &str);
bool ToBoolean(const std::string &str)
Converts a string into a boolean value.
Definition: StringUtils.cpp:122
bool IsGlobExpression(const std::string &str)
Check if the given string is a glob expression.
Definition: StringUtils.cpp:142
Tokens Tokenize(const std::string &str, char delimiter=' ')
Extracts words from a string.
Definition: StringUtils.cpp:15
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
std::string Trim(const std::string &str)
Trims a string.
Definition: StringUtils.cpp:67
std::vector< std::string > Tokens
Definition: StringUtils.h:22
std::string RegexFromGlob(const std::string &str)
Build a regex starting from a glob expression.
Definition: StringUtils.cpp:150
bool IsReal(const std::string &str)
Checks if a string is a real number.
Definition: StringUtils.cpp:90
bool IsInteger(const std::string &str)
Checks if a string is an a integer.
Definition: StringUtils.cpp:78