I'd like to split a string into smaller parts using delimiters that are longer than one character. I'm curious if boost::algorithm::split can be used for that. I can not figure out what predicate I should give it to compare strings
#include <vector> #include <string> #include <boost/algorithm/string/split.hpp> std::vector< std::string > Result; std::string Str("This->is->a->string"); boost::algorithm::split(Result, Str, comare_with("->")); // ???
What this comare_with should be?
Thanks a lot.