Boost logo

Boost :

From: Paul Hamilton (paul_at_[hidden])
Date: 2003-08-21 19:36:10


>
>> I want to parse "," separated lists of strings.
>>
>> I have:
>>
>> char const* plist_wo_item = "x, y, z";
>> [rest snipped]
>
> With the risk of stating the obvious, why don't you use
> boost::tokenizer? Unless you want to do something else with the values
> separated by ',', spirit looks like a major overkill...

Well,

I actually want to parse something like:

char const* plist_wo_item = "[x, \"y\", z]";

But I was building up to it...

Paul.

---------------------1
Paul Hamilton
pHamtec P/L - Software Makers
http://www.phamtec.com/
mailto:paul_at_[hidden]

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.
-----------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk