summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 20:25:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 20:25:58 +0000
commitce2d4f19e3f810b282eb7d47d470d426ff459e1f (patch)
treea49f3e9dd42399756b2ce33a3d91caec535b77ab /include
parent1bb83288c063ce1864e46f6f675751c8c631b530 (diff)
mir_strcmp, mir_strcmpi, mir_wstrcmp, mir_wstrcmpi
git-svn-id: http://svn.miranda-ng.org/main/trunk@11179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_core.inc8
-rw-r--r--include/m_core.h10
2 files changed, 18 insertions, 0 deletions
diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc
index 622c7caf6c..de9b8dea23 100644
--- a/include/delphi/m_core.inc
+++ b/include/delphi/m_core.inc
@@ -650,6 +650,14 @@ function mir_strncat(dst:PAnsiChar; const src:PAnsiChar; len:size_t):PAnsiChar;
external CoreDLL name 'mir_strncat';
function mir_wstrncat(dst:PWideChar; const src:PWideChar; len:size_t):PWideChar; stdcall;
external CoreDLL name 'mir_wstrncat';
+function mir_strcmp(const p1,p2:PAnsiChar):int; stdcall;
+ external CoreDLL name 'mir_strcmp';
+function mir_wstrcmp(const p1,p2:PWideChar):int; stdcall;
+ external CoreDLL name 'mir_wstrcmp';
+function mir_strcmpi(const p1,p2:PAnsiChar):int; stdcall;
+ external CoreDLL name 'mir_strcmpi';
+function mir_wstrcmpi(const p1,p2:PWideChar):int; stdcall;
+ external CoreDLL name 'mir_wstrcmpi';
///////////////////////////////////////////////////////////////////////////////
// modules
diff --git a/include/m_core.h b/include/m_core.h
index 57bffb68ff..407a00580b 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -588,6 +588,12 @@ MIR_CORE_DLL(wchar_t*) mir_wstrcat(wchar_t *dest, const wchar_t *src);
MIR_CORE_DLL(char*) mir_strncat(char *dest, const char *src, size_t len);
MIR_CORE_DLL(wchar_t*) mir_wstrncat(wchar_t *dest, const wchar_t *src, size_t len);
+MIR_CORE_DLL(int) mir_strcmp(const char *p1, const char *p2);
+MIR_CORE_DLL(int) mir_wstrcmp(const wchar_t *p1, const wchar_t *p2);
+
+MIR_CORE_DLL(int) mir_strcmpi(const char *p1, const char *p2);
+MIR_CORE_DLL(int) mir_wstrcmpi(const wchar_t *p1, const wchar_t *p2);
+
MIR_CORE_DLL(char*) mir_strdup(const char* str);
MIR_CORE_DLL(wchar_t*) mir_wstrdup(const wchar_t* str);
@@ -771,6 +777,8 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); };
#define mir_tstrncpy mir_wstrncpy
#define mir_tstrcat mir_wstrcat
#define mir_tstrncat mir_wstrncat
+ #define mir_tstrcmp mir_wstrcmp
+ #define mir_tstrcmpi mir_wstrcmpi
#define mir_tstrdup mir_wstrdup
#define mir_tstrndup mir_wstrndup
@@ -805,6 +813,8 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); };
#define mir_tstrncpy mir_strncpy
#define mir_tstrcat mir_strcat
#define mir_tstrncat mir_strncat
+ #define mir_tstrcmp mir_strcmp
+ #define mir_tstrcmpi mir_strcmpi
#define mir_tstrdup mir_strdup
#define mir_tstrndup mir_strndup