isCapitalizedASCII

Check if s starts with a capital letter followed by a lower letter.

@safe pure @safe nothrow @nogc
bool
isCapitalizedASCII
(
in char[] s
)

Examples

ditto

assert(!`A`.isCapitalizedASCII);
assert(!`a`.isCapitalizedASCII);
assert(!`alpha`.isCapitalizedASCII);
assert(!`ALPHA`.isCapitalizedASCII);
assert(!`aThing`.isCapitalizedASCII);
assert(`Alpha`.isCapitalizedASCII);
assert(`Jack London`.isCapitalizedASCII);

Meta