MCPcopy Create free account
hub / github.com/apache/thrift / parseInto

Method parseInto

compiler/cpp/tests/catch/catch.hpp:4972–4982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4970 }
4971
4972 std::vector<Parser::Token> parseInto( std::vector<std::string> const& args, ConfigT& config ) const {
4973 std::string processName = args.empty() ? std::string() : args[0];
4974 std::size_t lastSlash = processName.find_last_of( "/\\" );
4975 if( lastSlash != std::string::npos )
4976 processName = processName.substr( lastSlash+1 );
4977 m_boundProcessName.set( config, processName );
4978 std::vector<Parser::Token> tokens;
4979 Parser parser;
4980 parser.parseIntoTokens( args, tokens );
4981 return populate( tokens, config );
4982 }
4983
4984 std::vector<Parser::Token> populate( std::vector<Parser::Token> const& tokens, ConfigT& config ) const {
4985 validate();

Callers 1

applyCommandLineMethod · 0.80

Calls 5

stringFunction · 0.85
emptyMethod · 0.80
parseIntoTokensMethod · 0.80
substrMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected