#include <StrUtils.hpp>
|
static std::vector< std::string > | explode (std::string const &s, char delim) |
|
◆ explode()
static std::vector< std::string > StrUtils::explode |
( |
std::string const & |
s, |
|
|
char |
delim |
|
) |
| |
|
inlinestatic |
39 {
40 std::vector<std::string> result;
41 std::istringstream iss(s);
42
43 for (std::string token; std::getline(iss, token, delim); )
44 result.push_back(std::move(token));
45
46 return result;
47 }
Referenced by GRF::extractFile().
The documentation for this class was generated from the following file: