ManaPlus
Namespaces | Functions
Catch::Matchers Namespace Reference

Namespaces

 Impl
 

Functions

template<typename ExpressionT >
Impl::Generic::Not< ExpressionT > Not (Impl::Matcher< ExpressionT > const &m)
 
template<typename ExpressionT >
Impl::Generic::AllOf< ExpressionT > AllOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2)
 
template<typename ExpressionT >
Impl::Generic::AllOf< ExpressionT > AllOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2, Impl::Matcher< ExpressionT > const &m3)
 
template<typename ExpressionT >
Impl::Generic::AnyOf< ExpressionT > AnyOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2)
 
template<typename ExpressionT >
Impl::Generic::AnyOf< ExpressionT > AnyOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2, Impl::Matcher< ExpressionT > const &m3)
 
Impl::StdString::Equals Equals (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::Equals Equals (const char *str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::Contains Contains (std::string const &substr, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::Contains Contains (const char *substr, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::StartsWith StartsWith (std::string const &substr)
 
Impl::StdString::StartsWith StartsWith (const char *substr)
 
Impl::StdString::EndsWith EndsWith (std::string const &substr)
 
Impl::StdString::EndsWith EndsWith (const char *substr)
 

Function Documentation

◆ AllOf() [1/2]

template<typename ExpressionT >
Impl::Generic::AllOf<ExpressionT> Catch::Matchers::AllOf ( Impl::Matcher< ExpressionT > const &  m1,
Impl::Matcher< ExpressionT > const &  m2 
)
inline

Definition at line 1152 of file catch.hpp.

1153  {
1154  return Impl::Generic::AllOf<ExpressionT>().add( m1 ).add( m2 );
1155  }

References Catch::Matchers::Impl::Generic::AllOf< ExpressionT >::add().

◆ AllOf() [2/2]

template<typename ExpressionT >
Impl::Generic::AllOf<ExpressionT> Catch::Matchers::AllOf ( Impl::Matcher< ExpressionT > const &  m1,
Impl::Matcher< ExpressionT > const &  m2,
Impl::Matcher< ExpressionT > const &  m3 
)
inline

Definition at line 1157 of file catch.hpp.

1159  {
1160  return Impl::Generic::AllOf<ExpressionT>().add( m1 ).add( m2 ).add( m3 );
1161  }

References Catch::Matchers::Impl::Generic::AllOf< ExpressionT >::add().

◆ AnyOf() [1/2]

template<typename ExpressionT >
Impl::Generic::AnyOf<ExpressionT> Catch::Matchers::AnyOf ( Impl::Matcher< ExpressionT > const &  m1,
Impl::Matcher< ExpressionT > const &  m2 
)
inline

Definition at line 1163 of file catch.hpp.

1164  {
1165  return Impl::Generic::AnyOf<ExpressionT>().add( m1 ).add( m2 );
1166  }

References Catch::Matchers::Impl::Generic::AnyOf< ExpressionT >::add().

◆ AnyOf() [2/2]

template<typename ExpressionT >
Impl::Generic::AnyOf<ExpressionT> Catch::Matchers::AnyOf ( Impl::Matcher< ExpressionT > const &  m1,
Impl::Matcher< ExpressionT > const &  m2,
Impl::Matcher< ExpressionT > const &  m3 
)
inline

Definition at line 1168 of file catch.hpp.

1170  {
1171  return Impl::Generic::AnyOf<ExpressionT>().add( m1 ).add( m2 ).add( m3 );
1172  }

References Catch::Matchers::Impl::Generic::AnyOf< ExpressionT >::add().

◆ Contains() [1/2]

Impl::StdString::Contains Catch::Matchers::Contains ( const char *  substr,
CaseSensitive::Choice  caseSensitivity = CaseSensitive::Yes 
)
inline

Definition at line 1183 of file catch.hpp.

1183  {
1184  return Impl::StdString::Contains( Impl::StdString::makeString( substr ), caseSensitivity );
1185  }
std::string makeString(T const &value)
Definition: catch.hpp:1761
Impl::StdString::Contains Contains(const char *substr, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
Definition: catch.hpp:1183

References Catch::Detail::makeString().

Referenced by Contains().

◆ Contains() [2/2]

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

Definition at line 1180 of file catch.hpp.

1180  {
1181  return Impl::StdString::Contains( substr, caseSensitivity );
1182  }

References Contains().

◆ EndsWith() [1/2]

Impl::StdString::EndsWith Catch::Matchers::EndsWith ( const char *  substr)
inline

Definition at line 1195 of file catch.hpp.

1195  {
1197  }
Impl::StdString::EndsWith EndsWith(const char *substr)
Definition: catch.hpp:1195

References Catch::Detail::makeString().

Referenced by EndsWith().

◆ EndsWith() [2/2]

Impl::StdString::EndsWith Catch::Matchers::EndsWith ( std::string const &  substr)
inline

Definition at line 1192 of file catch.hpp.

1192  {
1193  return Impl::StdString::EndsWith( substr );
1194  }

References EndsWith().

◆ Equals() [1/2]

Impl::StdString::Equals Catch::Matchers::Equals ( const char *  str,
CaseSensitive::Choice  caseSensitivity = CaseSensitive::Yes 
)
inline

Definition at line 1177 of file catch.hpp.

1177  {
1178  return Impl::StdString::Equals( Impl::StdString::makeString( str ), caseSensitivity );
1179  }
Impl::StdString::Equals Equals(const char *str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
Definition: catch.hpp:1177

References Catch::Detail::makeString().

Referenced by Equals().

◆ Equals() [2/2]

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

Definition at line 1174 of file catch.hpp.

1174  {
1175  return Impl::StdString::Equals( str, caseSensitivity );
1176  }

References Equals().

◆ Not()

template<typename ExpressionT >
Impl::Generic::Not<ExpressionT> Catch::Matchers::Not ( Impl::Matcher< ExpressionT > const &  m)
inline

Definition at line 1147 of file catch.hpp.

1147  {
1148  return Impl::Generic::Not<ExpressionT>( m );
1149  }

◆ StartsWith() [1/2]

Impl::StdString::StartsWith Catch::Matchers::StartsWith ( const char *  substr)
inline

Definition at line 1189 of file catch.hpp.

1189  {
1191  }
Impl::StdString::StartsWith StartsWith(const char *substr)
Definition: catch.hpp:1189

References Catch::Detail::makeString().

Referenced by StartsWith().

◆ StartsWith() [2/2]

Impl::StdString::StartsWith Catch::Matchers::StartsWith ( std::string const &  substr)
inline

Definition at line 1186 of file catch.hpp.

1186  {
1187  return Impl::StdString::StartsWith( substr );
1188  }

References StartsWith().