8 const std::string & separators,
9 std::vector<std::string> & result )
11 std::string::size_type start_p, end_p;
15 end_p = text.find_first_of(separators,start_p);
16 if (end_p == std::string::npos)
18 end_p = text.length();
20 result.push_back( text.substr( start_p, end_p - start_p ) );
21 start_p = text.find_first_not_of( separators, end_p );
23 while( start_p != std::string::npos );