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

Function is_xdigit

example/cacheHierarchy/fkYAML/node.hpp:6043–6045  ·  view source on GitHub ↗

@brief Check if the given character is a hex-digit. @note This function is needed to avoid assertion failures in `std::isxdigit()` especially when compiled with MSVC. @param c A character to be checked. @return true if the given character is a hex-digit, false otherwise.

Source from the content-addressed store, hash-verified

6041 /// @param c A character to be checked.
6042 /// @return true if the given character is a hex-digit, false otherwise.
6043 static bool is_xdigit(char c) {
6044 return (('0' <= c && c <= '9') || ('A' <= c && c <= 'F') || ('a' <= c && c <= 'f'));
6045 }
6046};
6047
6048FK_YAML_DETAIL_NAMESPACE_END

Callers 1

scan_hexadecimal_numberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected