diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_core.inc | 8 | ||||
-rw-r--r-- | include/m_core.h | 10 |
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
|