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