diff options
author | nyamatongwe <devnull@localhost> | 2001-02-06 01:01:40 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-02-06 01:01:40 +0000 |
commit | c4a930a94d853bcf4e6eb5dc16c7335d4ef9bde7 (patch) | |
tree | 2c71cbade9643079714fac4fd5ca60b222bb3ee4 /include/SString.h | |
parent | 58a0a3c3400d034ff1f549671edd315bad1da618 (diff) | |
download | scintilla-mirror-c4a930a94d853bcf4e6eb5dc16c7335d4ef9bde7.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.h | 8 |
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. |