$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Jeff Garland (jeff_at_[hidden])
Date: 2006-03-26 11:12:09
On Sun, 26 Mar 2006 12:16:37 +0200, Pavol Droba wrote
> Hi Jeff,
> 
> You can do this, but split is not to right function. It is a simple
> wrapper over the find/split_iterator.
> 
> So I suggest you to use split_iterator directly:
> 
>    std::string some_data("1===2);
>    typedef split_iterator<string::iterator> string_split_iterator;
>    for(string_split_iterator It=
>        make_split_iterator(some_data, first_finder("===", is_iequal()
> ));       It!=string_split_iterator();       ++It)    {        cout 
> << copy_range<std::string>(*It) << endl;    }
> 
> Alternatively you can use iter_split, it has similar interface as split:
> 
>    iter_split( split_result, some_data, first_finder("===",
>  is_iequal()));
iter_split is exactly what I wanted -- had a feeling it was in there somewhere
:-)  I will note that iter_split doesn't seem to be in the docs anywhere.
Thx again for the very useful library!
Jeff