diff options
author | nyamatongwe <devnull@localhost> | 2009-07-21 09:05:43 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-21 09:05:43 +0000 |
commit | d6c7ef2346d60ad934231d6b4bf6d342b278a0d4 (patch) | |
tree | 6039e12ca6c8f447ca34fbe3c3b0195d4c3a2372 /src/CharClassify.h | |
parent | 276e578482a2c83e16ac51d06058afa4213fccbc (diff) | |
download | scintilla-mirror-d6c7ef2346d60ad934231d6b4bf6d342b278a0d4.tar.gz |
Using a much simpler property set implementation.
Accessor objects use the PropertyGet interface to access just the property
set methods they need.
Removed SString.
Diffstat (limited to 'src/CharClassify.h')
-rw-r--r-- | src/CharClassify.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/CharClassify.h b/src/CharClassify.h index 881d3a114..d746fe02d 100644 --- a/src/CharClassify.h +++ b/src/CharClassify.h @@ -2,7 +2,7 @@ /** @file CharClassify.h ** Character classifications used by Document and RESearch. **/ -// Copyright 2006 by Neil Hodgson <neilh@scintilla.org> +// Copyright 2006-2009 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #ifndef CHARCLASSIFY_H @@ -22,4 +22,16 @@ private: enum { maxChar=256 }; unsigned char charClass[maxChar]; // not type cc to save space }; + +// These functions are implemented because each platform calls them something different. +int CompareCaseInsensitive(const char *a, const char *b); +int CompareNCaseInsensitive(const char *a, const char *b, size_t len); + +inline char MakeUpperCase(char ch) { + if (ch < 'a' || ch > 'z') + return ch; + else + return static_cast<char>(ch - 'a' + 'A'); +} + #endif |