- boost::iter_split(split, input_, boost::algorithm::first_finder(delimiter_)); //TODO: check if this splits on all instances of delimiter_ in the input_\r
+ //boost::iter_split(split, input_, boost::algorithm::first_finder(delimiter_)) was painfully slow in debug-build\r
\r
- input_ = std::move(split.back());\r
- split.pop_back();\r
-\r
- BOOST_FOREACH(auto cmd, split)\r
+ auto delim_pos = input_.find_first_of(delimiter_);\r
+ while(delim_pos != std::string::npos)\r
{\r
- // TODO: perhaps it would be better to not append the delimiter.\r