Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Matchers::StdString::ContainsMatcher Struct Reference

#include <catch_matchers_string.h>

Inheritance diagram for Catch::Matchers::StdString::ContainsMatcher:
Collaboration diagram for Catch::Matchers::StdString::ContainsMatcher:

Public Member Functions

 ContainsMatcher (CasedString const &comparator)
 
bool match (std::string const &source) const override
 
 ContainsMatcher (CasedString const &comparator)
 
bool match (std::string const &source) const override
 
- Public Member Functions inherited from Catch::Matchers::StdString::StringMatcherBase
 StringMatcherBase (std::string const &operation, CasedString const &comparator)
 
std::string describe () const override
 
 StringMatcherBase (std::string const &operation, CasedString const &comparator)
 
std::string describe () const override
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchAllOf< Toperator&& (MatcherBase const &other) const
 
MatchAnyOf< Toperator|| (MatcherBase const &other) const
 
MatchNotOf< Toperator! () const
 
MatchAllOf< Toperator&& (MatcherBase const &other) const
 
MatchAnyOf< Toperator|| (MatcherBase const &other) const
 
MatchNotOf< Toperator! () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherMethod< T >
virtual bool match (T const &arg) const=0
 
virtual bool match (T const &arg) const=0
 

Additional Inherited Members

- Public Attributes inherited from Catch::Matchers::StdString::StringMatcherBase
CasedString m_comparator
 
std::string m_operation
 
- Protected Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
virtual ~MatcherUntypedBase ()
 
virtual ~MatcherUntypedBase ()
 
- Protected Attributes inherited from Catch::Matchers::Impl::MatcherUntypedBase
std::string m_cachedToString
 

Detailed Description

Definition at line 3158 of file catch.hpp.

Constructor & Destructor Documentation

◆ ContainsMatcher() [1/2]

Catch::Matchers::StdString::ContainsMatcher::ContainsMatcher ( CasedString const & comparator)

Definition at line 60 of file catch_matchers_string.cpp.

60: StringMatcherBase( "contains", comparator ) {}
StringMatcherBase(std::string const &operation, CasedString const &comparator)

◆ ContainsMatcher() [2/2]

Catch::Matchers::StdString::ContainsMatcher::ContainsMatcher ( CasedString const & comparator)

Member Function Documentation

◆ match() [1/2]

bool Catch::Matchers::StdString::ContainsMatcher::match ( std::string const & source) const
override

Definition at line 62 of file catch_matchers_string.cpp.

62 {
64 }
bool contains(std::string const &s, std::string const &infix)
const CharType(& source)[N]
Definition pointer.h:1204
std::string adjustString(std::string const &str) const
Here is the call graph for this function:

◆ match() [2/2]

bool Catch::Matchers::StdString::ContainsMatcher::match ( std::string const & source) const
override

The documentation for this struct was generated from the following files: