|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2006-03-25 21:55:34
I've used the boost::algorithm::split successfully in the past with the
is_any_of predicate as shown in the docs. Something like:
using namespace boost_algorithm;
std::vector<std::string> split_result;
split( split_result, some_string, is_any_of("=+") );
But now I want to match a multi char string exactly on the split. Effectively
something like:
std::string some_data("1===2);
split( split_result, some_data, is_equal("===") ); //result gets strings "1","2"
I'm not finding a predicate or easy way to do this. Is this not supported or
am I just missing something?
Thx,
Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net