| 61 | } |
| 62 | |
| 63 | static map<string,string> ParseParams (const vector<string> & tok) |
| 64 | { |
| 65 | map<string,string> params; |
| 66 | for (size_t i = 1; i < tok.size(); i++) |
| 67 | { |
| 68 | const string & t = tok[i]; |
| 69 | if (t.empty()) continue; |
| 70 | auto eq = t.find('='); |
| 71 | if (eq == string::npos) |
| 72 | params[Upper(Trim(t))] = ""; |
| 73 | else |
| 74 | params[Upper(Trim(t.substr(0,eq)))] = Trim(t.substr(eq+1)); |
| 75 | } |
| 76 | return params; |
| 77 | } |
| 78 | |
| 79 | static string GetParam (const map<string,string> & p, const string & key) |
| 80 | { |
no test coverage detected