| 
    libhext: C++ Library Documentation 1.0.14-6065bc7
    
   | 
 
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.   | |
  Public Member Functions inherited from hext::Cloneable< EndsWithTest, 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 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.