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

Method isMatch

unittests/catch.hpp:6188–6195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6186 }
6187
6188 auto isMatch( std::string const &optToken ) const -> bool {
6189 auto normalisedToken = normaliseOpt( optToken );
6190 for( auto const &name : m_optNames ) {
6191 if( normaliseOpt( name ) == normalisedToken )
6192 return true;
6193 }
6194 return false;
6195 }
6196
6197 using ParserBase::parse;
6198

Callers

nothing calls this directly

Calls 1

normaliseOptFunction · 0.85

Tested by

no test coverage detected