Boost logo

Boost Users :

Subject: Re: [Boost-users] tokenize string delimiter
From: Lloyd (lloyd_at_[hidden])
Date: 2010-02-09 23:58:20


Thanks, it worked...
----- Original Message -----
From: "Matthias Vallentin" <vallentin_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Wednesday, February 10, 2010 7:28 AM
Subject: Re: [Boost-users] tokenize string delimiter

> On Tue, Feb 09, 2010 at 02:00:10PM +0530, Lloyd wrote:
>> Is it possibleto tokenize a string based on a string delimiter?
>
> Let str be the string to split and delim your delimiter. Then,
>
> std::vector<std::string> result;
> boost::iter_split(result, str, boost::first_finder(delim));
>
> Or case insensitive:
>
> std::vector<std::string> result;
> boost::iter_split(result, str,
> boost::first_finder(delim, boost::is_iequal()));
>
> HTH,
>
> Matthias
> --
> Matthias Vallentin
> vallentin_at_[hidden]
> http://www.icir.org/matthias
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

______________________________________
Scanned and protected by Email scanner


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