Boost logo

Boost Users :

From: Oliver Schoenborn (oliver.schoenborn_at_[hidden])
Date: 2006-01-10 10:19:45


> -----Original Message-----
> i.e. given a string like "filename_v%02d.%s", I'd like to be
> able to parse it and see that there are two arguments, and
> then retrieve their type.
>
> It seems that all the parsing in boost::format is hidden away
> internally. It would be a shame to have to write my own
> printf format string parser when I know there is a good one
> already in there somewhere.
>
> AC.

AC, I don't know how hard it would be to do this in boost::format, but it
would be straightforward to use the functions in the iof library
(http://iof.sourceforge.net/api_doxy/files.html). This is not a boost
library, so let me know off-list if you want more info. Cheers,

Oliver


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