aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/ctype.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libalee/ctype.hpp')
-rw-r--r--libalee/ctype.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libalee/ctype.hpp b/libalee/ctype.hpp
index 499a90f..b0df174 100644
--- a/libalee/ctype.hpp
+++ b/libalee/ctype.hpp
@@ -43,6 +43,10 @@ constexpr inline bool isupper(uint8_t c) {
return c >= 'A' && c <= 'Z';
}
+constexpr inline bool islower(uint8_t c) {
+ return c >= 'a' && c <= 'z';
+}
+
constexpr inline bool isalpha(uint8_t c) {
return isupper(c) || (c >= 'a' && c <= 'z');
}