summaryrefslogtreecommitdiff
path: root/include/m_core.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-23 09:10:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-23 09:10:00 +0000
commit2b7c50a79e27cc49a94df298176c67a0b602dc57 (patch)
tree06be10abd19adf68493d1f1869b85ee7e76ed147 /include/m_core.h
parent5d9e715ec7957c0bb87eb9a858420ff8a6301fbb (diff)
also wrtrim renamed, according to the standard, to rtrimw
git-svn-id: http://svn.miranda-ng.org/main/trunk@4516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_core.h')
-rw-r--r--include/m_core.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/m_core.h b/include/m_core.h
index 0b4fdf7ca6..e44ebee070 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -454,18 +454,12 @@ MIR_CORE_DLL(void) mir_sha1_hash(mir_sha1_byte_t *dataIn, int len, mir_sha1_byte
// strings
MIR_CORE_DLL(char*) rtrim(char *str);
-MIR_CORE_DLL(WCHAR*) wrtrim(WCHAR *str);
+MIR_CORE_DLL(WCHAR*) rtrimw(WCHAR *str);
-#ifdef _UNICODE
- #define trtrim wrtrim
-#else
- #define trtrim rtrim
-#endif
-
-MIR_CORE_DLL(char*) ltrim(char *str); // returns pointer to the beginning of string
+MIR_CORE_DLL(char*) ltrim(char *str); // returns pointer to the beginning of string
MIR_CORE_DLL(WCHAR*) ltrimw(WCHAR *str);
-MIR_CORE_DLL(char*) ltrimp(char *str); // returns pointer to the trimmed portion of string
+MIR_CORE_DLL(char*) ltrimp(char *str); // returns pointer to the trimmed portion of string
MIR_CORE_DLL(WCHAR*) ltrimpw(WCHAR *str);
MIR_CORE_DLL(int) wildcmp(const char *name, const char *mask);
@@ -503,6 +497,7 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); };
#define mir_tstrndup mir_wstrndup
#define replaceStrT replaceStrW
+ #define rtrimt rtrimw
#define ltrimt ltrimw
#define ltrimpt ltrimpw
@@ -523,6 +518,7 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); };
#define mir_tstrndup mir_strndup
#define replaceStrT replaceStr
+ #define rtrimt rtrim
#define ltrimt ltrim
#define ltrimpt ltrimp