MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / match

Method match

unittests/catch.hpp:3003–3006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3001 EndsWith( NSString* substr ) : StringHolder( substr ){}
3002
3003 bool match( NSString* str ) const override {
3004 return (str != nil || m_substr == nil ) &&
3005 [str rangeOfString:m_substr].location == [str length] - [m_substr length];
3006 }
3007
3008 std::string describe() const override {
3009 return "ends with: " + Catch::Detail::stringify( m_substr );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected