absl::ascii_isdigit

Determines whether the given character can be represented as a decimal digit character (i.e. {0-9}).

Synopsis

Declared in <absl/strings/ascii.h>

constexpr
bool
ascii_isdigit(unsigned char c);

Return Value

true if c is a decimal digit, false otherwise.

Parameters

NameDescription
cThe character to test.