| 5 | #include <map> |
| 6 | |
| 7 | bool IsNumber(std::string_view source) { |
| 8 | if (source.empty()) { |
| 9 | return false; |
| 10 | } |
| 11 | for (auto c: source) { |
| 12 | if (c > '9' || c < '0') { |
| 13 | return false; |
| 14 | } |
| 15 | } |
| 16 | return true; |
| 17 | } |
| 18 | |
| 19 | std::string GetOption(const std::map<std::string, std::string, std::less<>> &configMap, const std::string &key) { |
| 20 | auto it = configMap.find(key); |