Skip to content
StringHelpers

SplitString

Internal helper function
static std::vector<std::string> SplitString(const std::string str, const char delimiter);
static std::vector<std::string> SplitString(const std::string str, const std::string delimiter);

A static helper function.

Will split str at every occurance of delimiter and return all segments in an std::vector.
The delimiters will not be included!


Example:

C++:
StringHelpers::SplitString("my/fake/path", '/');
Returns:

{ "my", "fake", "path" }