aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CharClassify.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-07-13 21:38:26 +1000
committernyamatongwe <devnull@localhost>2010-07-13 21:38:26 +1000
commitd4d3f82cc71c64c05ce6efdcb61164092da51c2b (patch)
tree6c40f786e5ebf67016364b2dcdb1c15ee67ee1da /src/CharClassify.cxx
parentc6f21af4f42c480d20729ce0d285cee6e94ffcbb (diff)
downloadscintilla-mirror-d4d3f82cc71c64c05ce6efdcb61164092da51c2b.tar.gz
Files changed for new lexer design.
Diffstat (limited to 'src/CharClassify.cxx')
-rw-r--r--src/CharClassify.cxx38
1 files changed, 4 insertions, 34 deletions
diff --git a/src/CharClassify.cxx b/src/CharClassify.cxx
index bbd25a0f8..c16af4547 100644
--- a/src/CharClassify.cxx
+++ b/src/CharClassify.cxx
@@ -10,6 +10,10 @@
#include "CharClassify.h"
+#ifdef SCI_NAMESPACE
+using namespace Scintilla;
+#endif
+
// Shut up annoying Visual C++ warnings:
#ifdef _MSC_VER
#pragma warning(disable: 4514)
@@ -42,37 +46,3 @@ void CharClassify::SetCharClasses(const unsigned char *chars, cc newCharClass) {
}
}
}
-
-int CompareCaseInsensitive(const char *a, const char *b) {
- while (*a && *b) {
- if (*a != *b) {
- char upperA = MakeUpperCase(*a);
- char upperB = MakeUpperCase(*b);
- if (upperA != upperB)
- return upperA - upperB;
- }
- a++;
- b++;
- }
- // Either *a or *b is nul
- return *a - *b;
-}
-
-int CompareNCaseInsensitive(const char *a, const char *b, size_t len) {
- while (*a && *b && len) {
- if (*a != *b) {
- char upperA = MakeUpperCase(*a);
- char upperB = MakeUpperCase(*b);
- if (upperA != upperB)
- return upperA - upperB;
- }
- a++;
- b++;
- len--;
- }
- if (len == 0)
- return 0;
- else
- // Either *a or *b is nul
- return *a - *b;
-}