10 #ifndef GGSSTRINGUTILS_H_
11 #define GGSSTRINGUTILS_H_
17 using Tokens = std::vector<std::string>;
20 namespace GGSStringUtils {
34 Tokens
Tokenize(
const std::string &str,
char delimiter =
' ');
43 std::string
Trim(
const std::string &str);
63 bool IsReal(
const std::string &str);
std::string RegexFromGlob(const std::string &str)
Build a regex starting from a glob expression.
Tokens Tokenize(const std::string &str, char delimiter= ' ')
Extracts words from a string.
bool IsGlobExpression(const std::string &str)
Check if the given string is a glob expression.
bool IsInteger(const std::string &str)
Checks if a string is an a integer.
bool IsReal(const std::string &str)
Checks if a string is a real number.
std::string Trim(const std::string &str)
Trims a string.