EventAnalysis  1.0.0
Namespaces | Typedefs | Functions
StringUtils.h File Reference
#include <regex>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 EA
 IncludeFileExc.h IncludeFileExc class declaration.
 
 EA::StringUtils
 A namespace with some utility methods for strings.
 

Typedefs

using EA::StringUtils::Tokens = std::vector< std::string >
 

Functions

Tokens EA::StringUtils::Tokenize (const std::string &str, char delimiter=' ')
 Extracts words from a string. More...
 
std::string EA::StringUtils::Trim (const std::string &str)
 Trims a string. More...
 
bool EA::StringUtils::IsInteger (const std::string &str)
 Checks if a string is an a integer. More...
 
bool EA::StringUtils::IsReal (const std::string &str)
 Checks if a string is a real number. More...
 
bool EA::StringUtils::ToBoolean (const std::string &str)
 Converts a string into a boolean value. More...
 
bool EA::StringUtils::IsGlobExpression (const std::string &str)
 Check if the given string is a glob expression. More...
 
std::string EA::StringUtils::RegexFromGlob (const std::string &str)
 Build a regex starting from a glob expression. More...
 

Detailed Description

StringUtils static class declaration and definition.