6std::vector<std::string>
Tokenize(std::string_view text)
8 std::vector<std::string> tokens;
13 for (
size_t i = 0; i < text.size(); ++i)
15 const char c = text[i];
16 if (c ==
'\\' && i + 1 < text.size() && text[i + 1] ==
'"')
29 if (c ==
' ' && !quoted)
31 if (started || !current.empty())
33 tokens.push_back(current);
42 if (started || !current.empty())
44 tokens.push_back(current);