| 41 | } |
| 42 | |
| 43 | std::string optionsToString(const OptionsMap& options) |
| 44 | { |
| 45 | std::stringstream ss; |
| 46 | for (auto& it : options) |
| 47 | { |
| 48 | if (ss.rdbuf()->in_avail()) |
| 49 | ss << " "; |
| 50 | ss << it.first; |
| 51 | if (!it.second.empty()) |
| 52 | ss << "=" << it.second; |
| 53 | } |
| 54 | return ss.str(); |
| 55 | } |