12 Feb
2010
12 Feb
'10
3:17 a.m.
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