| 82 | } |
| 83 | |
| 84 | int parse_positive_int(const std::string &value, int fallback) { |
| 85 | if (value.empty()) { |
| 86 | return fallback; |
| 87 | } |
| 88 | const int parsed = atoi(value.c_str()); |
| 89 | return parsed > 0 ? parsed : fallback; |
| 90 | } |
| 91 | |
| 92 | // --- URL utilities --- |
| 93 |
no test coverage detected