libhext: C++ Library Documentation 1.0.13-b24695d
|
Tests whether a string ends with a given literal. More...
#include <EndsWithTest.h>
Public Member Functions | |
EndsWithTest (std::string literal) noexcept | |
Constructs an EndsWithTest that succeeds for subjects that end with the given literal. | |
bool | test (const char *subject) const override |
Returns true if subject ends with the given literal. | |
![]() | |
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 a string ends with a given literal.
Definition at line 41 of file EndsWithTest.h.
|
explicitnoexcept |
Constructs an EndsWithTest that succeeds for subjects that end with the given literal.
literal | A string that a subject must end with. |
|
overridevirtual |
Returns true if subject ends with the given literal.
subject | The string that is to be tested. |
Implements hext::ValueTest.