From c4a930a94d853bcf4e6eb5dc16c7335d4ef9bde7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 6 Feb 2001 01:01:40 +0000 Subject: Removed macro substitution of case insensitive string comparison functions and declared new functions CompareCaseInsensitive and CompareNCaseInsensitive implemented in Scintilla. --- include/SString.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include/SString.h') 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. -- cgit v1.2.3