Boost logo

Boost :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-08-21 14:00:16


Drazen DOTLIC <Drazen.Dotlic_at_[hidden]> wrote:
>> 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...

Because 1) people often simplify their question to make things clear.
2) often, the grammar gets a lot more complicated.

Cheers,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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