File string_utils.hpp
File List > illixr > string_utils.hpp
Go to the documentation of this file
#pragma once
#include
#include
#include
namespace ILLIXR {
inline std::vector<std::string> split(const std::string& s, char delimiter) {
std::vector<std::string> tokens;
std::string token;
std::istringstream token_stream{s};
while (std::getline(token_stream, token, delimiter)) {
tokens.push_back(token);
}
return tokens;
}
} // namespace ILLIXR