Lines Matching defs:TokenRange
37 struct TokenRange { struct
42 explicit TokenRange(const TokenList& token_list) in TokenRange() argument
50 TokenRange(ForwardIterator it_begin, ForwardIterator it_end) in TokenRange() function
70 TokenRange(const char* token_list[], size_t length) in TokenRange() argument
77 explicit TokenRange(TokenList&& token_list) in TokenRange() function
84 TokenRange(std::shared_ptr<TokenList> token_list, in TokenRange() argument
101 explicit TokenRange(std::shared_ptr<TokenList> token_list) in TokenRange() function
116 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { in Split() argument
146 iterator begin() const { in begin()
174 bool operator==(const TokenRange& other) const { argument
193 bool StartsWith(const TokenRange& other) const { in StartsWith() argument
209 TokenRange RemoveCharacter(char c) const { in RemoveCharacter() argument
232 TokenRange RemoveToken(const std::string& token) { in RemoveToken() argument
237 TokenRange DiscardEmpty() const { in DiscardEmpty() argument
257 return TokenRange(token_list_, begin() + offset, it_end); argument
271 std::unique_ptr<TokenRange> MatchSubstrings(const std::string& string, in MatchSubstrings() argument
339 size_t MaybeMatches(const TokenRange& token_list, const std::string& wildcard) const { in MaybeMatches() argument
393 TokenRange RemoveIf(const TPredicate& predicate) const { in RemoveIf() argument
421 const std::shared_ptr<std::vector<std::string>> token_list_;
422 const iterator begin_;
423 const iterator end_;