isUpper

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

Return Value

Type: bool

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

Examples

1 assert( isUpper('A'));
2 assert(!isUpper('a'));
3 assert(!isUpper('#'));
4 
5 // N.B.: does not return true for non-ASCII Unicode uppercase letters
6 assert(!isUpper('á'));
7 assert(!isUpper('Á'));

Meta