MCPcopy Create free account
hub / github.com/apple/foundationdb / unhex

Function unhex

fdbclient/NativeAPI.actor.cpp:424–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424int unhex(char c) {
425 if (c >= '0' && c <= '9')
426 return c - '0';
427 if (c >= 'a' && c <= 'f')
428 return c - 'a' + 10;
429 if (c >= 'A' && c <= 'F')
430 return c - 'A' + 10;
431 UNREACHABLE();
432}
433
434std::string unprintable(std::string const& val) {
435 std::string s;

Callers 1

unprintableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected