|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-06-12 08:05:07
On Wednesday 12 June 2002 07:37 am, James Curran wrote:
> Out of personal need I've written a TokenizerFunction which might be
> worth sharing.
>
> It's designed to parse a collection of name/value pairs (with the key
> feature for me being that everything after the first delimiter is the
> second field, regardless of delimiters it migth contain). It will always
> return an even number of tokens. For example, given the input:
[snip code]
I could use that. One question: why is each name/value pair returned as two
separate tokens? I would expect to receive a std::pair<std::string,
std::string> when dereferencing the tokenizing iterator.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk