isCapitalizedSimple

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

@safe
bool
isCapitalizedSimple
(
S
)
(
S s
)
if (
isSomeString!S
)

Examples

ditto

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

Meta