Searched refs:TokenRange (Results 1 – 3 of 3) sorted by relevance
/art/cmdline/ |
D | token_range.h | 35 struct TokenRange { struct 40 explicit TokenRange(const TokenList& token_list) in TokenRange() argument 48 explicit TokenRange(ForwardIterator it_begin, ForwardIterator it_end) in TokenRange() argument 56 TokenRange(const TokenList& token_list ATTRIBUTE_UNUSED, 68 TokenRange(const char* token_list[], size_t length) in TokenRange() argument 75 explicit TokenRange(TokenList&& token_list) in TokenRange() argument 82 TokenRange(std::shared_ptr<TokenList> token_list, in TokenRange() argument 93 TokenRange(const TokenRange&) = default; 96 TokenRange(TokenRange&&) = default; 99 explicit TokenRange(std::shared_ptr<TokenList> token_list) in TokenRange() argument [all …]
|
D | cmdline_parser.h | 450 return Parse(TokenRange(std::move(tokenized))); in Parse() 461 return Parse(TokenRange(argv.begin(), argv.end())); in Parse() 467 return Parse(TokenRange(argv.begin(), argv.end())); in Parse() 473 return Parse(TokenRange(&argv[1], argc - 1)); // ignore argv[0] because it's the program name in Parse() 518 CmdlineResult Parse(TokenRange&& arguments_list) { in Parse() 522 TokenRange possible_name = arguments_list.Slice(i); in Parse() 587 TokenRange exact_range = possible_name.Slice(0, max_tokens); in Parse()
|
/art/cmdline/detail/ |
D | cmdline_parse_argument_detail.h | 57 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) = 0; 77 virtual size_t MaybeMatches(const TokenRange& tokens) = 0; 111 size_t MaybeMatches(TokenRange token_list) const { in MaybeMatches() 121 std::pair<const TokenRange*, size_t> FindClosestMatch(TokenRange token_list) const { in FindClosestMatch() 122 const TokenRange* best_match_ptr = nullptr; in FindClosestMatch() 186 TokenRange::Split(name1, {' '}).RemoveToken(" ")); in CompleteArgument() 214 [](size_t min, const TokenRange& cur) { in CompleteArgument() 219 [](size_t max, const TokenRange& cur) { in CompleteArgument() 258 std::vector<TokenRange> tokenized_names_; 261 std::vector<TokenRange> simple_names_; [all …]
|