|
libhext: C++ Library Documentation 1.0.14-6065bc7
|
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. | |
Public Member Functions inherited from hext::Cloneable< RegexTest, ValueTest > | |
| virtual std::unique_ptr< ValueTest > | clone () const override |
| Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
Public Member Functions inherited from hext::ValueTest | |
| 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.