aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/ctype.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-11-13 09:13:32 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-11-13 09:13:32 -0500
commitaf51fb5bdfd9c338b7cf8b75b792e04a2667af5e (patch)
tree0d6baf72acf05d263dcd8ed0b13888fb6265df81 /libalee/ctype.hpp
parent5162349f925dfc48f7269538b9cdb1c06df8d5ff (diff)
add LIBALEE_SECTION; minor fixes
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');
}