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() function
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(const std::shared_ptr<TokenList>& token_list, in TokenRange() argument
95 TokenRange(const TokenRange&) = default;
98 TokenRange(TokenRange&&) = default;
101 explicit TokenRange(const std::shared_ptr<TokenList>& token_list) in TokenRange() argument
[all …]
Dcmdline_parser.h551 return Parse(TokenRange(std::move(tokenized))); in Parse()
562 return Parse(TokenRange(argv.begin(), argv.end())); in Parse()
568 return Parse(TokenRange(argv.begin(), argv.end())); in Parse()
574 return Parse(TokenRange(&argv[1], argc - 1)); // ignore argv[0] because it's the program name in Parse()
620 CmdlineResult Parse(TokenRange&& arguments_list) { in Parse()
624 TokenRange possible_name = arguments_list.Slice(i); in Parse()
689 TokenRange exact_range = possible_name.Slice(0, max_tokens); in Parse()
/art/cmdline/detail/
Dcmdline_parse_argument_detail.h62 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()
237 TokenRange::Split(name1, {' '}).RemoveToken(" ")); in CompleteArgument()
265 [](size_t min, const TokenRange& cur) { in CompleteArgument()
270 [](size_t max, const TokenRange& cur) { in CompleteArgument()
309 std::vector<TokenRange> tokenized_names_;
312 std::vector<TokenRange> simple_names_;
[all …]