MCPcopy Create free account
hub / github.com/cirquit/trdrop / handleMode

Method handleMode

ext/catch.hpp:4526–4536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4524 }
4525 }
4526 Mode handleMode( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
4527 switch( mode ) {
4528 case None: return handleNone( i, c );
4529 case MaybeShortOpt: return handleMaybeShortOpt( i, c );
4530 case ShortOpt:
4531 case LongOpt:
4532 case SlashOpt: return handleOpt( i, c, arg, tokens );
4533 case Positional: return handlePositional( i, c, arg, tokens );
4534 default: throw std::logic_error( "Unknown mode" );
4535 }
4536 }
4537
4538 Mode handleNone( std::size_t i, char c ) {
4539 if( inQuotes ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected