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

Method match

unittests/catch.hpp:2991–2994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2989 StartsWith( NSString* substr ) : StringHolder( substr ){}
2990
2991 bool match( NSString* str ) const override {
2992 return (str != nil || m_substr == nil ) &&
2993 [str rangeOfString:m_substr].location == 0;
2994 }
2995
2996 std::string describe() const override {
2997 return "starts with: " + Catch::Detail::stringify( m_substr );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected