1 #ifndef OSMIUM_UTIL_STRING_HPP
2 #define OSMIUM_UTIL_STRING_HPP
49 inline std::vector<std::string>
split_string(
const std::string& str,
const char sep) {
50 std::vector<std::string> tokens;
54 size_t nextpos = str.find_first_of(sep);
55 while (nextpos != std::string::npos) {
56 tokens.push_back(str.substr(pos, nextpos-pos));
58 nextpos = str.find_first_of(sep, pos);
60 tokens.push_back(str.substr(pos));
68 #endif // OSMIUM_UTIL_STRING_HPP
Namespace for everything in the Osmium library.
Definition: assembler.hpp:55
std::vector< std::string > split_string(const std::string &str, const char sep)
Definition: string.hpp:49