|
| Function_regex_match () |
|
const mup::char_type * | GetDesc () const final |
|
mup::IToken * | Clone () const final |
|
void | Eval (mup::ptr_val_type &ret, const mup::ptr_val_type *args, int argc) final |
|
Definition at line 123 of file ExpressionParser.cpp.
import_export::anonymous_namespace{ExpressionParser.cpp}::Function_regex_match::Function_regex_match |
( |
| ) |
|
|
inline |
mup::IToken* import_export::anonymous_namespace{ExpressionParser.cpp}::Function_regex_match::Clone |
( |
| ) |
const |
|
inlinefinal |
void import_export::anonymous_namespace{ExpressionParser.cpp}::Function_regex_match::Eval |
( |
mup::ptr_val_type & |
ret, |
|
|
const mup::ptr_val_type * |
args, |
|
|
int |
argc |
|
) |
| |
|
inlinefinal |
Definition at line 130 of file ExpressionParser.cpp.
References run_benchmark_import::args, CHECK_EQ, import_export::anonymous_namespace{ExpressionParser.cpp}::ms_to_ss(), import_export::anonymous_namespace{ExpressionParser.cpp}::ss_to_ms(), THROW_INVALID_PARAMETER, and VALIDATE_ARG_TYPE.
137 std::regex regex(pattern, std::regex_constants::extended);
139 std::regex_match(text, match, regex);
140 if (match.size() != 2u) {
141 throw std::runtime_error(
"must have exactly one match");
144 }
catch (std::runtime_error& e) {
std::string ms_to_ss(const mup::string_type &s)
#define VALIDATE_ARG_TYPE(arg, t2)
mup::string_type ss_to_ms(const std::string &s)
#define THROW_INVALID_PARAMETER(arg, what)
const mup::char_type* import_export::anonymous_namespace{ExpressionParser.cpp}::Function_regex_match::GetDesc |
( |
| ) |
const |
|
inlinefinal |
The documentation for this class was generated from the following file: