libhext: C++ Library Documentation 1.0.13-b24695d
|
Tests whether another string matches a given regex. More...
#include <RegexTest.h>
Public Member Functions | |
RegexTest (boost::regex regex) | |
Constructs a RegexTest that succeeds if a subject matches regex. | |
bool | test (const char *subject) const override |
Returns true if given regex matches subject. | |
![]() | |
virtual std::unique_ptr< ValueTest > | clone () const override |
Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
![]() | |
ValueTest () noexcept=default | |
ValueTest (const ValueTest &)=default | |
ValueTest (ValueTest &&) noexcept=default | |
ValueTest & | operator= (const ValueTest &)=default |
ValueTest & | operator= (ValueTest &&) noexcept=default |
virtual | ~ValueTest () noexcept=default |
Tests whether another string matches a given regex.
Definition at line 46 of file RegexTest.h.
|
explicit |
Constructs a RegexTest that succeeds if a subject matches regex.
|
overridevirtual |
Returns true if given regex matches subject.
Implements hext::ValueTest.