mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Regenerated single include
This commit is contained in:
parent
db837a157f
commit
8d18d1648a
@ -3207,6 +3207,22 @@ namespace Catch
|
|||||||
NSString* m_substr;
|
NSString* m_substr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Equals : StringHolder
|
||||||
|
{
|
||||||
|
Equals( NSString* substr ) : StringHolder( substr ){}
|
||||||
|
|
||||||
|
bool operator()( NSString* str ) const
|
||||||
|
{
|
||||||
|
return [str isEqualToString:m_substr];
|
||||||
|
}
|
||||||
|
|
||||||
|
friend std::ostream& operator<<( std::ostream& os, const Equals& matcher )
|
||||||
|
{
|
||||||
|
os << "equals string: " << Catch::toString( matcher.m_substr );
|
||||||
|
return os;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
struct Contains : StringHolder
|
struct Contains : StringHolder
|
||||||
{
|
{
|
||||||
Contains( NSString* substr ) : StringHolder( substr ){}
|
Contains( NSString* substr ) : StringHolder( substr ){}
|
||||||
@ -3257,10 +3273,15 @@ namespace Catch
|
|||||||
} // namespace NSStringMatchers
|
} // namespace NSStringMatchers
|
||||||
} // namespace Impl
|
} // namespace Impl
|
||||||
|
|
||||||
|
inline Impl::NSStringMatchers::Equals
|
||||||
|
Equals( NSString* substr ){ return Impl::NSStringMatchers::Equals( substr ); }
|
||||||
|
|
||||||
inline Impl::NSStringMatchers::Contains
|
inline Impl::NSStringMatchers::Contains
|
||||||
Contains( NSString* substr ){ return Impl::NSStringMatchers::Contains( substr ); }
|
Contains( NSString* substr ){ return Impl::NSStringMatchers::Contains( substr ); }
|
||||||
|
|
||||||
inline Impl::NSStringMatchers::StartsWith
|
inline Impl::NSStringMatchers::StartsWith
|
||||||
StartsWith( NSString* substr ){ return Impl::NSStringMatchers::StartsWith( substr ); }
|
StartsWith( NSString* substr ){ return Impl::NSStringMatchers::StartsWith( substr ); }
|
||||||
|
|
||||||
inline Impl::NSStringMatchers::EndsWith
|
inline Impl::NSStringMatchers::EndsWith
|
||||||
EndsWith( NSString* substr ){ return Impl::NSStringMatchers::EndsWith( substr ); }
|
EndsWith( NSString* substr ){ return Impl::NSStringMatchers::EndsWith( substr ); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user