Note: negative values will be converted too. For ex.: "-1" converts to std::numeric_limits ::max(); "-2" converts to std::numeric_limits ::max() - 1; "-3" converts to std::numeric_limits ::max() - 2; ... negative std::numeric_limits ::max() converts to 1. Values lower than negative std::numeric_limits ::max() are not convertible (method returns false).
| 514 | // Values lower than negative std::numeric_limits<uint64_t>::max() |
| 515 | // are not convertible (method returns false). |
| 516 | [[nodiscard]] inline bool to_uint64(char const * s, uint64_t & i, int base = 10) |
| 517 | { |
| 518 | return internal::ToInteger(s, i, base); |
| 519 | } |
| 520 | |
| 521 | [[nodiscard]] inline bool to_int64(char const * s, int64_t & i) |
| 522 | { |