152 std::vector<std::string> result_vector ;
153 std::string::size_type start_p, end_p ;
154 start_p = text.find_first_not_of(separators) ;
155 while(start_p != std::string::npos) {
156 end_p = text.find_first_of(separators,start_p) ;
157 if (end_p == std::string::npos) {
158 end_p = text.length();
160 const std::string sub_str = text.substr(start_p,end_p-start_p);
161 result_vector.push_back(sub_str) ;
162 start_p = text.find_first_not_of(separators,end_p) ;
164 return result_vector ;