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

Name

Description

c

The character to test.

Created with MrDocs