SplitString overloads
Declared in <util/string.h>
Split a string on a single separator character, returning strings.
[[nodiscard]]
std::vector<std::string>
SplitString(
std::string_view str,
char sep);
» more...
Split a string on any of the given separator characters, returning strings.
[[nodiscard]]
std::vector<std::string>
SplitString(
std::string_view str,
std::string_view separators);
» more...
The return value should not be discarded.
| Name | Description |
|---|---|
| str | Input string to split. |
| sep | Separator character. |
| separators | Set of characters, any of which splits the input. |