Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-02-23 13:41:33


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Todd Day
> Sent: Thursday, February 23, 2006 9:35 AM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] [spirit] should be a very simple problem,but
I'm
> stumped
>
> I have to look for strings of the form (including the
> quotes)
> "ParmName: ParmValue"
> I'm looking for certain ParmNames, and I have to grab the associated
> ParmValue.

[Nat] Maybe the Spirit parser is the wrong place to get specific about
the ParmNames you're seeking? Maybe what you should do is parse *every*
item of that form, stuffing the pairs into a std::map. Then you can
extract from that map the specific items you want.


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