/////////////////////////////////////////////////////////////////////////// Perform strtol on a string and check if the extracted value matches.
| 259 | // Perform strtol on a string and check if the extracted value matches. |
| 260 | // |
| 261 | bool extractLongInteger(const std::string& input, long& output) { |
| 262 | output = strtol(input.c_str(), nullptr, 10); |
| 263 | return (format("{1}", output) == input); |
| 264 | } |