Lines Matching refs:TokenRange
37 struct TokenRange { struct
42 explicit TokenRange(const TokenList& token_list) in TokenRange() function
50 TokenRange(ForwardIterator it_begin, ForwardIterator it_end) in TokenRange() argument
58 TokenRange(const TokenList& token_list ATTRIBUTE_UNUSED,
70 TokenRange(const char* token_list[], size_t length) in TokenRange() function
77 explicit TokenRange(TokenList&& token_list) in TokenRange() function
84 TokenRange(std::shared_ptr<TokenList> token_list, in TokenRange() argument
95 TokenRange(const TokenRange&) = default;
98 TokenRange(TokenRange&&) = default;
101 explicit TokenRange(std::shared_ptr<TokenList> token_list) in TokenRange() argument
116 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { in Split() argument
142 return TokenRange(std::move(new_token_list)); in Split()
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
228 return TokenRange(std::move(new_token_list)); in RemoveCharacter()
232 TokenRange RemoveToken(const std::string& token) { in RemoveToken() argument
237 TokenRange DiscardEmpty() const { in DiscardEmpty() argument
243 TokenRange Slice(size_t offset, size_t length = std::string::npos) const {
257 return TokenRange(token_list_, begin() + offset, it_end); argument
271 std::unique_ptr<TokenRange> MatchSubstrings(const std::string& string, in MatchSubstrings() argument
328 return std::make_unique<TokenRange>(std::move(new_token_list)); in MatchSubstrings()
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
415 return TokenRange(token_list); in RemoveIf()