Separate isLetter into isUpper and isLower

This commit is contained in:
Rangi42 committed 2025-09-24 19:19:50 -04:00
1 parent b0727e9779
commit d5bb462f25
3 files changed
+16 -6

No files matched your search

+9 -1
View File
@@ -26,8 +26,16 @@ bool isPrintable(int c) {
return c >= ' ' && c <= '~';
}
bool isUpper(int c) {
return c >= 'A' && c <= 'Z';
}
bool isLower(int c) {
return c >= 'a' && c <= 'z';
}
bool isLetter(int c) {
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
return isUpper(c) || isLower(c);
}
bool isDigit(int c) {