aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/SString.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-02-06 01:01:40 +0000
committernyamatongwe <unknown>2001-02-06 01:01:40 +0000
commita90a236a6fe722717bdecb89d98dde6e961a5ddb (patch)
tree2c71cbade9643079714fac4fd5ca60b222bb3ee4 /include/SString.h
parentfbbe7838d1b60233e5ed6acb29272c5812260ff4 (diff)
downloadscintilla-mirror-a90a236a6fe722717bdecb89d98dde6e961a5ddb.tar.gz
Removed macro substitution of case insensitive string comparison functions
and declared new functions CompareCaseInsensitive and CompareNCaseInsensitive implemented in Scintilla.
Diffstat (limited to 'include/SString.h')
-rw-r--r--include/SString.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/SString.h b/include/SString.h
index 29fed5fee..df9c88c83 100644
--- a/include/SString.h
+++ b/include/SString.h
@@ -7,13 +7,11 @@
#ifndef SSTRING_H
#define SSTRING_H
+// 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, int len);
bool EqualCaseInsensitive(const char *a, const char *b);
-#if PLAT_WIN
-#define strcasecmp stricmp
-#define strncasecmp strnicmp
-#endif
-
// Define another string class.
// While it would be 'better' to use std::string, that doubles the executable size.
// An SString may contain embedded nul characters.