Home
last modified time | relevance | path

Searched refs:TokenRange (Results 1 – 3 of 3) sorted by relevance

/art/cmdline/
Dtoken_range.h37 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() function
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 …]
Dcmdline_parser.h450 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()
517 CmdlineResult Parse(TokenRange&& arguments_list) { in Parse()
521 TokenRange possible_name = arguments_list.Slice(i); in Parse()
586 TokenRange exact_range = possible_name.Slice(0, max_tokens); in Parse()
/art/cmdline/detail/
Dcmdline_parse_argument_detail.h59 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) = 0;
79 virtual size_t MaybeMatches(const TokenRange& tokens) = 0;
113 size_t MaybeMatches(const TokenRange& token_list) const { in MaybeMatches()
123 std::pair<const TokenRange*, size_t> FindClosestMatch(const TokenRange& token_list) const { in FindClosestMatch()
124 const TokenRange* best_match_ptr = nullptr; in FindClosestMatch()
188 TokenRange::Split(name1, {' '}).RemoveToken(" ")); in CompleteArgument()
216 [](size_t min, const TokenRange& cur) { in CompleteArgument()
221 [](size_t max, const TokenRange& cur) { in CompleteArgument()
260 std::vector<TokenRange> tokenized_names_;
263 std::vector<TokenRange> simple_names_;
[all …]