mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Separate isLetter into isUpper and isLower
This commit is contained in:
10
src/util.cpp
10
src/util.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user