| 316 | } |
| 317 | |
| 318 | int WktParser::ValueSubInt(const std::string& key, const std::string sub, const int def) { |
| 319 | std::string res = ValueSubStr(key, sub); |
| 320 | if (res.empty()) { |
| 321 | return def; |
| 322 | } else { |
| 323 | return stoidefault(res, def); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | double WktParser::ValueSubDouble(const std::string& key, const std::string sub, const double def) { |
| 328 | std::string res = ValueSubStr(key, sub); |
nothing calls this directly
no test coverage detected