| 449 | } |
| 450 | |
| 451 | static inline int string_to_int(const std::string s, int default_ = 0) { |
| 452 | try { |
| 453 | return std::stoi(s); |
| 454 | } |
| 455 | catch (std::exception&) { |
| 456 | return default_; |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | // trim from start |
| 461 | static inline std::string <rim(std::string &s) { |
no outgoing calls
no test coverage detected