GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Namespaces | Typedefs | Functions
GGSStringUtils.h File Reference
#include <regex>
#include <string>
#include <vector>
Include dependency graph for GGSStringUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GGSStringUtils
 A namespace with some utility methods for strings.
 

Typedefs

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

Functions

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

Detailed Description

StringUtils namespace declaration.

Definition in file GGSStringUtils.h.