Horizon Official Technical Documentation
StrUtils Class Reference

#include <StrUtils.hpp>

Static Public Member Functions

static std::vector< std::string > explode (std::string const &s, char delim)
 

Member Function Documentation

◆ 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().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: