diff options
| author | nyamatongwe <devnull@localhost> | 2001-12-06 00:01:24 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-12-06 00:01:24 +0000 | 
| commit | b7fa6cca42f72fe79ce3771dbfb45e7e49cddbd2 (patch) | |
| tree | 3b763d1ddafa47531bbb250611001a592bb3888b /src/StyleContext.h | |
| parent | 5cc348bc906aa378309cf9174a93dd999b39eb52 (diff) | |
| download | scintilla-mirror-b7fa6cca42f72fe79ce3771dbfb45e7e49cddbd2.tar.gz | |
Vamsi & Praveen contributed MatchIgnoreCase.
Diffstat (limited to 'src/StyleContext.h')
| -rw-r--r-- | src/StyleContext.h | 14 | 
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); | 
