|
VoltMod
C++23 framework for CS2 server plugins
|
How a chat line is spelled: the prefix, and splitting one into tokens. More...
#include <optional>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | VoltMod |
| namespace | VoltMod::CommandSyntax |
Functions | |
| std::vector< std::string > | VoltMod::CommandSyntax::Tokenize (std::string_view text) |
| std::optional< std::string_view > | VoltMod::CommandSyntax::StripPrefix (std::string_view message) |
Variables | |
| constexpr std::string_view | VoltMod::CommandSyntax::ChatPrefix = "!" |
How a chat line is spelled: the prefix, and splitting one into tokens.
Pure text, no registrations and no engine, which is what keeps the whole dispatch path unit-testable. Separate from CommandRouter because none of it depends on which commands happen to be registered.
Definition in file CommandSyntax.hpp.