Lines Matching refs:Token

4133         struct Token {  struct in Clara::Parser
4135 Token( Type _type, std::string const& _data ) : type( _type ), data( _data ) {} in Token() argument
4142 void parseIntoTokens( std::vector<std::string> const& args, std::vector<Token>& tokens ) { in parseIntoTokens()
4148 void parseIntoTokens( std::string const& arg, std::vector<Token>& tokens ) { in parseIntoTokens()
4156 … Mode handleMode( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) { in handleMode()
4187 … Mode handleOpt( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) { in handleOpt()
4194 tokens.push_back( Token( Token::ShortOpt, optName.substr( j, 1 ) ) ); in handleOpt()
4196 tokens.push_back( Token( Token::ShortOpt, optName ) ); in handleOpt()
4198 tokens.push_back( Token( Token::LongOpt, optName ) ); in handleOpt()
4201 …Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens )… in handlePositional()
4206 tokens.push_back( Token( Token::Positional, data ) ); in handlePositional()
4517 …std::vector<Parser::Token> parseInto( std::vector<std::string> const& args, ConfigT& config ) cons… in parseInto()
4523 std::vector<Parser::Token> tokens; in parseInto()
4529 …std::vector<Parser::Token> populate( std::vector<Parser::Token> const& tokens, ConfigT& config ) c… in populate()
4531 std::vector<Parser::Token> unusedTokens = populateOptions( tokens, config ); in populate()
4537 …std::vector<Parser::Token> populateOptions( std::vector<Parser::Token> const& tokens, ConfigT& con… in populateOptions()
4538 std::vector<Parser::Token> unusedTokens; in populateOptions()
4541 Parser::Token const& token = tokens[i]; in populateOptions()
4547 … if( ( token.type == Parser::Token::ShortOpt && arg.hasShortName( token.data ) ) || in populateOptions()
4548 … ( token.type == Parser::Token::LongOpt && arg.hasLongName( token.data ) ) ) { in populateOptions()
4550 … if( i == tokens.size()-1 || tokens[i+1].type != Parser::Token::Positional ) in populateOptions()
4566 if( token.type == Parser::Token::Positional || !m_throwOnUnrecognisedTokens ) in populateOptions()
4585 …std::vector<Parser::Token> populateFixedArgs( std::vector<Parser::Token> const& tokens, ConfigT& c… in populateFixedArgs()
4586 std::vector<Parser::Token> unusedTokens; in populateFixedArgs()
4589 Parser::Token const& token = tokens[i]; in populateFixedArgs()
4595 if( token.type == Parser::Token::Positional ) in populateFixedArgs()
4600 …std::vector<Parser::Token> populateFloatingArgs( std::vector<Parser::Token> const& tokens, ConfigT… in populateFloatingArgs()
4603 std::vector<Parser::Token> unusedTokens; in populateFloatingArgs()
4605 Parser::Token const& token = tokens[i]; in populateFloatingArgs()
4606 if( token.type == Parser::Token::Positional ) in populateFloatingArgs()
6416 std::vector<Clara::Parser::Token> const& unusedTokens() const { in unusedTokens()
6429 std::vector<Clara::Parser::Token> m_unusedTokens;