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

Method parseInto

ext/catch.hpp:4887–4897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4885 }
4886
4887 std::vector<Parser::Token> parseInto( std::vector<std::string> const& args, ConfigT& config ) const {
4888 std::string processName = args[0];
4889 std::size_t lastSlash = processName.find_last_of( "/\\" );
4890 if( lastSlash != std::string::npos )
4891 processName = processName.substr( lastSlash+1 );
4892 m_boundProcessName.set( config, processName );
4893 std::vector<Parser::Token> tokens;
4894 Parser parser;
4895 parser.parseIntoTokens( args, tokens );
4896 return populate( tokens, config );
4897 }
4898
4899 std::vector<Parser::Token> populate( std::vector<Parser::Token> const& tokens, ConfigT& config ) const {
4900 validate();

Callers 1

applyCommandLineMethod · 0.80

Calls 2

parseIntoTokensMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected