isUpper

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

Return Value

Type: bool

Whether c is an uppercase ASCII letter (A .. Z).

Examples

assert( isUpper('A'));
assert(!isUpper('a'));
assert(!isUpper('#'));

// N.B.: does not return true for non-ASCII Unicode uppercase letters
assert(!isUpper('á'));
assert(!isUpper('Á'));

Meta