MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / Contains

Class Contains

tests/catch.hpp:4057–4068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4055 };
4056
4057 struct Contains : StringHolder {
4058 Contains( NSString* substr ) : StringHolder( substr ){}
4059
4060 bool match( NSString* str ) const {
4061 return (str != nil || m_substr == nil ) &&
4062 [str rangeOfString:m_substr].location != NSNotFound;
4063 }
4064
4065 std::string describe() const override {
4066 return "contains string: " + Catch::Detail::stringify( m_substr );
4067 }
4068 };
4069
4070 struct StartsWith : StringHolder {
4071 StartsWith( NSString* substr ) : StringHolder( substr ){}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected