Boost logo

Boost Users :

From: Bryan Green (bgreen_at_[hidden])
Date: 2007-07-20 03:37:45


Bryan Green writes:
>
> pair<string, string> parse_opt(const string& s)
> {
> if (s.find("--proxy=") == 0) {
> return make_pair(string("proxy"), s.substr(8));
> } else {
> return make_pair(string(), string());
> }
> }
>

This function could of course be made general-purpose, by detecting
the '--.*=' pattern.

-Bryan


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