Boost logo

Boost Users :

Subject: Re: [Boost-users] tokenize string delimiter
From: Rob Riggs (rob_at_[hidden])
Date: 2010-02-11 22:17:33


On 02/11/2010 03:22 PM, OvermindDL1 wrote:
> You can do that off the bat using Boost.Spirit2.1+ like this:
> Or case insensitive:
>
> parse(str.begin(),str.end(),
> nocase[raw[+~char_(delim)]%lit(delim)], result);
>
> And there is *SO*MUCH* more you can do with spirit too, and it
> executes faster then the tokanizer and such as well, while working on
> input iterators, etc...
>
Spirit seems to have the same operator-overloaded "write-only code"
quality that Perl suffers from. The implementation may be the greatest
thing ever, but the end result is a bit worrisome. The string algorithm
library's syntax is far more reasonable IMO.

Rob


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