Searched refs:TokenRange (Results 1 – 3 of 3) sorted by relevance
/art/cmdline/ |
D | token_range.h | 37 struct TokenRange { struct 42 explicit TokenRange(const TokenList& token_list) in TokenRange() argument 50 TokenRange(ForwardIterator it_begin, ForwardIterator it_end) in TokenRange() argument 58 TokenRange(const TokenList& token_list ATTRIBUTE_UNUSED, 70 TokenRange(const char* token_list[], size_t length) in TokenRange() argument 77 explicit TokenRange(TokenList&& token_list) in TokenRange() argument 84 TokenRange(std::shared_ptr<TokenList> token_list, in TokenRange() function 95 TokenRange(const TokenRange&) = default; 98 TokenRange(TokenRange&&) = default; 101 explicit TokenRange(std::shared_ptr<TokenList> token_list) in TokenRange() argument [all …]
|
D | cmdline_parser.h | 533 return Parse(TokenRange(std::move(tokenized))); in Parse() 544 return Parse(TokenRange(argv.begin(), argv.end())); in Parse() 550 return Parse(TokenRange(argv.begin(), argv.end())); in Parse() 556 return Parse(TokenRange(&argv[1], argc - 1)); // ignore argv[0] because it's the program name in Parse() 602 CmdlineResult Parse(TokenRange&& arguments_list) { in Parse() 606 TokenRange possible_name = arguments_list.Slice(i); in Parse() 671 TokenRange exact_range = possible_name.Slice(0, max_tokens); in Parse()
|
/art/cmdline/detail/ |
D | cmdline_parse_argument_detail.h | 62 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) = 0; 82 virtual size_t MaybeMatches(const TokenRange& tokens) = 0; 120 size_t MaybeMatches(const TokenRange& token_list) const { in MaybeMatches() 130 std::pair<const TokenRange*, size_t> FindClosestMatch(const TokenRange& token_list) const { in FindClosestMatch() 131 const TokenRange* best_match_ptr = nullptr; in FindClosestMatch() 238 TokenRange::Split(name1, {' '}).RemoveToken(" ")); in CompleteArgument() 266 [](size_t min, const TokenRange& cur) { in CompleteArgument() 271 [](size_t max, const TokenRange& cur) { in CompleteArgument() 310 std::vector<TokenRange> tokenized_names_; 313 std::vector<TokenRange> simple_names_; [all …]
|