isDigit

Checks if a character is a digit.

static pure @nogc
bool
isDigit
(
T
)
(
T c
,
uint base = 10
)
if (
isSomeChar!T
)

Parameters

c T

The character to check.

base uint

The numeric base to consider when checking for digitness.

Return Value

Type: bool

true if the character is a digit.

Meta