std::vector
{
std::string::size_type pos,size,i;
std::vector
str += pattern;
size = str.size();
for(i=0; i
pos = str.find( pattern, i);
if (pos < size)
{
std::string s =str.substr(i, pos-i);
result.push_back(s);
i = pos+pattern.size()-1;
}
}
return result;
}