aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib
diff options
context:
space:
mode:
Diffstat (limited to 'lexlib')
-rw-r--r--lexlib/CharacterSet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lexlib/CharacterSet.h b/lexlib/CharacterSet.h
index 358f6bed3..0470e446c 100644
--- a/lexlib/CharacterSet.h
+++ b/lexlib/CharacterSet.h
@@ -135,6 +135,10 @@ inline bool IsUpperCase(int ch) {
return (ch >= 'A') && (ch <= 'Z');
}
+inline bool IsUpperOrLowerCase(int ch) {
+ return IsUpperCase(ch) || IsLowerCase(ch);
+}
+
inline bool IsAlphaNumeric(int ch) {
return
((ch >= '0') && (ch <= '9')) ||