C++Spec 1.1.0
BDD testing for C++
Loading...
Searching...
No Matches
match.hpp File Reference
#include <regex>
#include <string>
#include "matchers/matcher_base.hpp"
Include dependency graph for match.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CppSpec::Matchers::Match< A >
 The match matcher: the whole of the actual text matches a regular expression. More...
class  CppSpec::Matchers::MatchPartial< A >
 The partially match matcher: a regular expression matches somewhere in the actual text. More...

Functions

std::string CppSpec::Matchers::describe_pattern (const std::string &pattern)
template<Util::is_string_like T>
std::regex CppSpec::Matchers::regex_of (const T &pattern)
 Compile a pattern given as text, read through string_view_of(); a null C string compiles to an empty regex, which a matcher never uses, as it has no pattern to look for.
template<Util::is_string_like T>
std::string CppSpec::Matchers::pattern_name_of (const T &pattern)
 Name a pattern given as text: its quoted text, or nullptr for a null C string.