9 #ifndef WRAPPER_COMMON_UTILS_H_ 10 #define WRAPPER_COMMON_UTILS_H_ 15 inline std::vector<std::string>
split(
const std::string &str,
const std::string &pattern)
18 std::vector<std::string> resVec;
25 std::string strs = str + pattern;
27 size_t pos = strs.find(pattern);
28 size_t size = strs.size();
30 while (pos != std::string::npos)
32 std::string x = strs.substr(0, pos);
34 strs = strs.substr(pos + 1, size);
35 pos = strs.find(pattern);
std::vector< std::string > split(const std::string &str, const std::string &pattern)