#include <catch_matchers_string.h>
Definition at line 3171 of file catch.hpp.
◆ RegexMatcher() [1/2]
Catch::Matchers::StdString::RegexMatcher::RegexMatcher |
( |
std::string | regex, |
|
|
CaseSensitive::Choice | caseSensitivity ) |
◆ RegexMatcher() [2/2]
Catch::Matchers::StdString::RegexMatcher::RegexMatcher |
( |
std::string | regex, |
|
|
CaseSensitive::Choice | caseSensitivity ) |
◆ describe() [1/2]
std::string Catch::Matchers::StdString::RegexMatcher::describe |
( |
| ) |
const |
|
overridevirtual |
◆ describe() [2/2]
std::string Catch::Matchers::StdString::RegexMatcher::describe |
( |
| ) |
const |
|
overridevirtual |
◆ match() [1/2]
bool Catch::Matchers::StdString::RegexMatcher::match |
( |
std::string const & | matchee | ) |
const |
|
override |
Definition at line 84 of file catch_matchers_string.cpp.
84 {
85 auto flags = std::regex::ECMAScript;
86 if (m_caseSensitivity == CaseSensitive::Choice::No) {
87 flags |= std::regex::icase;
88 }
89 auto reg = std::regex(m_regex,
flags);
90 return std::regex_match(matchee, reg);
91 }
◆ match() [2/2]
bool Catch::Matchers::StdString::RegexMatcher::match |
( |
std::string const & | matchee | ) |
const |
|
override |
The documentation for this struct was generated from the following files: