absl::ascii_isxdigit

Determines whether the given character can be represented as a hexadecimal digit character (i.e. {0-9} or {A-F} or {a-f}).

Synopsis

Declared in <absl/strings/ascii.h>

bool
ascii_isxdigit(unsigned char c);

Return Value

true if c is a hexadecimal digit, false otherwise.

Parameters

NameDescription
cThe character to test.