ManaPlus
Public Member Functions | Data Fields
Catch::Matchers::Impl::StdString::Equals Struct Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Impl::StdString::Equals:
Catch::Matchers::Impl::MatcherImpl< Equals, std::string > Catch::Matchers::Impl::Matcher< ExpressionT > Catch::SharedImpl< IShared > Catch::IShared Catch::NonCopyable

Public Member Functions

 Equals (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
 Equals (Equals const &other)
 
virtual ~Equals ()
 
virtual bool match (std::string const &expr) const
 
virtual std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherImpl< Equals, std::string >
virtual Ptr< Matcher< std::string > > clone () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::Matcher< ExpressionT >
virtual ~Matcher ()
 
virtual bool match (ExpressionT const &expr) const =0
 
Generic::AllOf< ExpressionT > operator&& (Matcher< ExpressionT > const &other) const
 
Generic::AnyOf< ExpressionT > operator|| (Matcher< ExpressionT > const &other) const
 
Generic::Not< ExpressionT > operator! () const
 
- Public Member Functions inherited from Catch::SharedImpl< IShared >
 SharedImpl ()
 
virtual void addRef () const
 
virtual void release () const
 
- Public Member Functions inherited from Catch::IShared
virtual ~IShared ()
 

Data Fields

CasedString m_data
 
- Data Fields inherited from Catch::SharedImpl< IShared >
unsigned int m_rc
 

Additional Inherited Members

- Public Types inherited from Catch::Matchers::Impl::Matcher< ExpressionT >
typedef ExpressionT ExpressionType
 
- Protected Member Functions inherited from Catch::NonCopyable
 NonCopyable ()
 
virtual ~NonCopyable ()
 

Detailed Description

Definition at line 1072 of file catch.hpp.

Constructor & Destructor Documentation

◆ Equals() [1/2]

Catch::Matchers::Impl::StdString::Equals::Equals ( std::string const &  str,
CaseSensitive::Choice  caseSensitivity = CaseSensitive::Yes 
)
inline

Definition at line 1073 of file catch.hpp.

1074  : m_data( str, caseSensitivity )
1075  {}

◆ Equals() [2/2]

Catch::Matchers::Impl::StdString::Equals::Equals ( Equals const &  other)
inline

Definition at line 1076 of file catch.hpp.

1076 : m_data( other.m_data ){}

◆ ~Equals()

virtual Catch::Matchers::Impl::StdString::Equals::~Equals ( )
virtual

Member Function Documentation

◆ match()

virtual bool Catch::Matchers::Impl::StdString::Equals::match ( std::string const &  expr) const
inlinevirtual

Definition at line 1080 of file catch.hpp.

1080  {
1081  return m_data.m_str == m_data.adjustString( expr );;
1082  }
std::string adjustString(std::string const &str) const
Definition: catch.hpp:1056

◆ toString()

virtual std::string Catch::Matchers::Impl::StdString::Equals::toString ( ) const
inlinevirtual

Implements Catch::Matchers::Impl::Matcher< ExpressionT >.

Definition at line 1083 of file catch.hpp.

1083  {
1084  return "equals: \"" + m_data.m_str + "\"" + m_data.toStringSuffix();
1085  }

Field Documentation

◆ m_data

CasedString Catch::Matchers::Impl::StdString::Equals::m_data

Definition at line 1087 of file catch.hpp.


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