8 std::vector<std::string>
tokens;
13 for (
size_t i = 0;
i <
text.size(); ++
i)
16 if (
c ==
'\\' &&
i + 1 <
text.size() &&
text[
i + 1] ==
'"')
How a chat line is spelled: the prefix, and splitting one into tokens.
std::optional< std::string_view > StripPrefix(std::string_view message)
constexpr std::string_view ChatPrefix
std::vector< std::string > Tokenize(std::string_view text)
static std::string ReadFile(const std::filesystem::path &path)