diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-07-08 11:45:06 +0000 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-07-08 11:45:06 +0000 |
commit | dadd6de6811ea87689bfb28dd53896ff8c346111 (patch) | |
tree | 331e0146719cc49b467a22426ab77cd2a871e620 /scintilla/lexlib | |
parent | 3a6ce3d423cb5825c7ee4f6a8e5dac67f18afbef (diff) | |
download | notepad2-mod-dadd6de6811ea87689bfb28dd53896ff8c346111.zip notepad2-mod-dadd6de6811ea87689bfb28dd53896ff8c346111.tar.gz notepad2-mod-dadd6de6811ea87689bfb28dd53896ff8c346111.tar.bz2 |
update scintilla (HG 3cb9bb515df2)
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@750 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/lexlib')
-rw-r--r-- | scintilla/lexlib/CharacterSet.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/scintilla/lexlib/CharacterSet.h b/scintilla/lexlib/CharacterSet.h index 9ce6c10..643359d 100644 --- a/scintilla/lexlib/CharacterSet.h +++ b/scintilla/lexlib/CharacterSet.h @@ -90,7 +90,15 @@ inline bool IsADigit(int ch, int base) { }
inline bool IsASCII(int ch) {
- return ch < 0x80;
+ return (ch >= 0) && (ch < 0x80);
+}
+
+inline bool IsLowerCase(int ch) {
+ return (ch >= 'a') && (ch <= 'z');
+}
+
+inline bool IsUpperCase(int ch) {
+ return (ch >= 'A') && (ch <= 'Z');
}
inline bool IsAlphaNumeric(int ch) {
@@ -109,15 +117,15 @@ inline bool isspacechar(int ch) { }
inline bool iswordchar(int ch) {
- return IsASCII(ch) && (IsAlphaNumeric(ch) || ch == '.' || ch == '_');
+ return IsAlphaNumeric(ch) || ch == '.' || ch == '_';
}
inline bool iswordstart(int ch) {
- return IsASCII(ch) && (IsAlphaNumeric(ch) || ch == '_');
+ return IsAlphaNumeric(ch) || ch == '_';
}
inline bool isoperator(int ch) {
- if (IsASCII(ch) && IsAlphaNumeric(ch))
+ if (IsAlphaNumeric(ch))
return false;
if (ch == '%' || ch == '^' || ch == '&' || ch == '*' ||
ch == '(' || ch == ')' || ch == '-' || ch == '+' ||
|