std::vector<std::string> StringSplit(const std::string &strSrc, const std::string &strSpliter)
{
std::vector<std::string> resultVec;
resultVec.reserve(10);
std::basic_string<char>::size_type lastPos = std::string::npos;
std::basic_string<char>::size_type pos = strSrc.find(strSpliter.c_str(), 0);
while (pos != std::string::npos)
{
if (lastPos != std::string::npos)
resultVec.push_back(strSrc.substr(lastPos + strSpliter.length(), pos - lastPos - strSpliter.length()));
else
resultVec.push_back(strSrc.substr(0, pos));
lastPos = pos;
pos = strSrc.find(strSpliter.c_str(), pos + strSpliter.length());
}
resultVec.push_back(strSrc.substr(lastPos + strSpliter.length()));
return resultVec;
}