MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / is_digit

Function is_digit

example/cacheHierarchy/fkYAML/node.hpp:6034–6036  ·  view source on GitHub ↗

@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.

Source from the content-addressed store, hash-verified

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

Callers 5

scan_negative_numberFunction · 0.85
scan_after_zero_at_firstFunction · 0.85
scan_decimal_numberFunction · 0.85
scan_after_decimal_pointFunction · 0.85
scan_after_exponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected