@brief Check if the given character is a digit. @note This function is needed to avoid assertion failures in `std::isdigit()` especially when compiled with MSVC. @param c A character to be checked. @return true if the given character is a digit, false otherwise.
| 6032 | /// @param c A character to be checked. |
| 6033 | /// @return true if the given character is a digit, false otherwise. |
| 6034 | static bool is_digit(char c) { |
| 6035 | return ('0' <= c && c <= '9'); |
| 6036 | } |
| 6037 | |
| 6038 | /// @brief Check if the given character is a hex-digit. |
| 6039 | /// @note This function is needed to avoid assertion failures in `std::isxdigit()` especially when compiled with |
no outgoing calls
no test coverage detected