isOctalDigit

bool
isOctalDigit
@safe pure nothrow @nogc
(
dchar c
)

Return Value

Type: bool

Whether c is a digit in base 8 (0 .. 7).

Examples

1 assert( isOctalDigit('0'));
2 assert( isOctalDigit('7'));
3 assert(!isOctalDigit('8'));
4 assert(!isOctalDigit('A'));
5 assert(!isOctalDigit('#'));

Meta