Lines Matching refs:token_list
40 explicit TokenRange(const TokenList& token_list) in TokenRange()
41 : token_list_(new TokenList(token_list)), in TokenRange()
56 TokenRange(const TokenList& token_list ATTRIBUTE_UNUSED,
62 assert(it_begin >= token_list.begin());
63 assert(it_end <= token_list.end());
68 TokenRange(const char* token_list[], size_t length) in TokenRange()
69 : token_list_(new TokenList(&token_list[0], &token_list[length])), in TokenRange()
75 explicit TokenRange(TokenList&& token_list) in TokenRange()
76 : token_list_(new TokenList(std::forward<TokenList>(token_list))), in TokenRange()
82 TokenRange(std::shared_ptr<TokenList> token_list, in TokenRange()
85 : token_list_(token_list), in TokenRange()
88 assert(it_begin >= token_list->begin()); in TokenRange()
89 assert(it_end <= token_list->end()); in TokenRange()
99 explicit TokenRange(std::shared_ptr<TokenList> token_list) in TokenRange()
100 : token_list_(token_list), in TokenRange()
337 size_t MaybeMatches(const TokenRange& token_list, const std::string& wildcard) const { in MaybeMatches()
338 auto token_it = token_list.begin(); in MaybeMatches()
339 auto token_end = token_list.end(); in MaybeMatches()
406 auto token_list = std::make_shared<TokenList>(begin(), end()); in RemoveIf() local
408 std::remove_if(token_list->begin(), token_list->end(), predicate); in RemoveIf()
409 token_list->erase(new_end, token_list->end()); in RemoveIf()
411 assert(token_list_->size() > token_list->size() && "Nothing was actually removed!"); in RemoveIf()
413 return TokenRange(token_list); in RemoveIf()