Lines Matching refs:tok
119 std::string tok; in Split() local
126 if (!tok.empty()) { in Split()
127 new_token_list.push_back(tok); in Split()
128 tok = ""; in Split()
133 tok += c; in Split()
138 if (!tok.empty()) { in Split()
139 new_token_list.push_back(tok); in Split()
233 return RemoveIf([&](const std::string& tok) { return tok == token; }); in RemoveToken()
292 const std::string& tok = *it; in MatchSubstrings() local
294 if (tok == wildcard) { in MatchSubstrings()
300 size_t next_token_idx = string.find(tok); in MatchSubstrings()
310 new_token_list.push_back(string.substr(next_token_idx, tok.size())); in MatchSubstrings()
312 string_idx += tok.size(); in MatchSubstrings()