Lines Matching refs:tok
117 std::string tok; in Split() local
124 if (!tok.empty()) { in Split()
125 new_token_list.push_back(tok); in Split()
126 tok = ""; in Split()
131 tok += c; in Split()
136 if (!tok.empty()) { in Split()
137 new_token_list.push_back(tok); in Split()
231 return RemoveIf([&](const std::string& tok) { return tok == token; }); in RemoveToken()
290 const std::string& tok = *it; in MatchSubstrings() local
292 if (tok == wildcard) { in MatchSubstrings()
298 size_t next_token_idx = string.find(tok); in MatchSubstrings()
308 new_token_list.push_back(string.substr(next_token_idx, tok.size())); in MatchSubstrings()
310 string_idx += tok.size(); in MatchSubstrings()