Lines Matching defs:token_list
42 explicit TokenRange(const TokenList& token_list)
43 : token_list_(new TokenList(token_list)),
58 TokenRange(const TokenList& token_list ATTRIBUTE_UNUSED,
64 assert(it_begin >= token_list.begin());
65 assert(it_end <= token_list.end());
70 TokenRange(const char* token_list[], size_t length)
71 : token_list_(new TokenList(&token_list[0], &token_list[length])),
77 explicit TokenRange(TokenList&& token_list)
78 : token_list_(new TokenList(std::forward<TokenList>(token_list))),
84 TokenRange(std::shared_ptr<TokenList> token_list,
87 : token_list_(token_list),
90 assert(it_begin >= token_list->begin());
91 assert(it_end <= token_list->end());
101 explicit TokenRange(std::shared_ptr<TokenList> token_list)
102 : token_list_(token_list),
339 size_t MaybeMatches(const TokenRange& token_list, const std::string& wildcard) const {
340 auto token_it = token_list.begin();
341 auto token_end = token_list.end();
408 auto token_list = std::make_shared<TokenList>(begin(), end());
410 std::remove_if(token_list->begin(), token_list->end(), predicate);
411 token_list->erase(new_end, token_list->end());
413 assert(token_list_->size() > token_list->size() && "Nothing was actually removed!");
415 return TokenRange(token_list);