Lines Matching refs:TokenRange

35 struct TokenRange {  struct
40 explicit TokenRange(const TokenList& token_list) in TokenRange() argument
48 TokenRange(ForwardIterator it_begin, ForwardIterator it_end) in TokenRange() argument
56 TokenRange(const TokenList& token_list ATTRIBUTE_UNUSED,
68 TokenRange(const char* token_list[], size_t length) in TokenRange() function
75 explicit TokenRange(TokenList&& token_list) in TokenRange() argument
82 TokenRange(std::shared_ptr<TokenList> token_list, in TokenRange() argument
93 TokenRange(const TokenRange&) = default;
96 TokenRange(TokenRange&&) = default;
99 explicit TokenRange(std::shared_ptr<TokenList> token_list) in TokenRange() argument
114 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { in Split() argument
140 return TokenRange(std::move(new_token_list)); in Split()
172 bool operator==(const TokenRange& other) const { argument
191 bool StartsWith(const TokenRange& other) const { in StartsWith() argument
207 TokenRange RemoveCharacter(char c) const { in RemoveCharacter() argument
226 return TokenRange(std::move(new_token_list)); in RemoveCharacter()
230 TokenRange RemoveToken(const std::string& token) { in RemoveToken() argument
235 TokenRange DiscardEmpty() const { in DiscardEmpty() argument
241 TokenRange Slice(size_t offset, size_t length = std::string::npos) const {
255 return TokenRange(token_list_, begin() + offset, it_end); argument
269 std::unique_ptr<TokenRange> MatchSubstrings(const std::string& string, in MatchSubstrings() argument
326 return std::unique_ptr<TokenRange>(new TokenRange(std::move(new_token_list))); in MatchSubstrings()
337 size_t MaybeMatches(const TokenRange& token_list, const std::string& wildcard) const { in MaybeMatches() argument
391 TokenRange RemoveIf(const TPredicate& predicate) const { in RemoveIf() argument
413 return TokenRange(token_list); in RemoveIf()