EventAnalysis
1.3.0
|
#include "core/Traits.h"
#include <iostream>
#include <regex>
#include <string>
#include <vector>
#include "utils/StringUtils.hpp"
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... | |
template<typename Container > | |
std::enable_if_t<!(is_pointer< typename Container::value_type >::value), std::string > | EA::StringUtils::FindSimilar (const std::string &str, const Container &cont) |
Find a similar string inside a container. More... | |
template<typename Container > | |
std::enable_if_t< is_pointer< typename Container::value_type >::value, std::string > | EA::StringUtils::FindSimilar (const std::string &str, const Container &cont) |
Find a similar string inside a container. More... | |
Declaration of utility functions for string manipulation.