aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-12-06 00:01:24 +0000
committernyamatongwe <devnull@localhost>2001-12-06 00:01:24 +0000
commitb7fa6cca42f72fe79ce3771dbfb45e7e49cddbd2 (patch)
tree3b763d1ddafa47531bbb250611001a592bb3888b /src
parent5cc348bc906aa378309cf9174a93dd999b39eb52 (diff)
downloadscintilla-mirror-b7fa6cca42f72fe79ce3771dbfb45e7e49cddbd2.tar.gz
Vamsi & Praveen contributed MatchIgnoreCase.
Diffstat (limited to 'src')
-rw-r--r--src/StyleContext.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index 5bc6371fd..343c81972 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -113,6 +113,20 @@ public:
}
return true;
}
+ bool MatchIgnoreCase(const char *s) {
+ if (tolower(ch) != *s)
+ return false;
+ s++;
+ if (tolower(chNext) != *s)
+ return false;
+ s++;
+ for (int n=2; *s; n++) {
+ if (*s != tolower((styler.SafeGetCharAt(currentPos+n))))
+ return false;
+ s++;
+ }
+ return true;
+ }
// Non-inline
void GetCurrent(char *s, int len);
void GetCurrentLowered(char *s, int len);