libhext: C++ Library Documentation
1.0.12-3ea013c
|
Tests whether another string matches a given regex. More...
Public Member Functions | |
RegexTest (boost::regex regex) | |
Constructs a RegexTest that succeeds if a subject matches regex. More... | |
bool | test (const char *subject) const override |
Returns true if given regex matches subject. More... | |
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. More... | |
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.