Split a string on a single separator character, returning strings.
Declared in <util/string.h>
[[nodiscard]]
std::vector<std::string>
SplitString(
std::string_view str,
char sep);
The pieces of str between occurrences of sep.
The return value should not be discarded.
| Name | Description |
|---|---|
| str | Input string to split. |
| sep | Separator character. |