$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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