folly::hex_decode_digit_raw

hex_decode_digit_raw

Synopsis

Declared in <folly/codec/hex.h>

constexpr
uint8_t
hex_decode_digit_raw(char const h);

Description

For characters which are in the lower or upper hex alphabets, returns the decoded value. For other characters, the behavior is unspecified and any value may be returned. This function cannot be used to distinguish between characters in and outside of the alphabets.

Return Value

The decoded value of h.

Parameters

NameDescription
hThe character to decode.