diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-07 12:10:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-07 12:10:19 +0000 |
commit | 52a0c6e6efb7014b87552097c13ceea6175ce377 (patch) | |
tree | dc4d3e62d27d6538672c9e80166ed945cf659a2f /plugins/Folders/src/utils.h | |
parent | 97ecd2b560357a1c7756d7b93d0b820f63071080 (diff) |
folders -> TCHAR
git-svn-id: http://svn.miranda-ng.org/main/trunk@1389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Folders/src/utils.h')
-rw-r--r-- | plugins/Folders/src/utils.h | 44 |
1 files changed, 10 insertions, 34 deletions
diff --git a/plugins/Folders/src/utils.h b/plugins/Folders/src/utils.h index 066c822900..987b422e08 100644 --- a/plugins/Folders/src/utils.h +++ b/plugins/Folders/src/utils.h @@ -24,39 +24,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <stdarg.h>
#include "commonheaders.h"
-int Log(char *format, ...);
-
-char *StrReplace(char *source, const char *what, const char *withWhat);
-char *StrCopy(char *source, size_t index, const char *what, size_t count);
-char *StrDelete(char *source, size_t index, size_t count);
-char *StrInsert(char *source, size_t index, const char *what);
-char *StrTrim(char *szText, const char *szTrimChars);
-
-wchar_t *StrReplace(wchar_t *source, const wchar_t *what, const wchar_t *withWhat);
-wchar_t *StrCopy(wchar_t *source, size_t index, const wchar_t *what, size_t count);
-wchar_t *StrDelete(wchar_t *source, size_t index, size_t count);
-wchar_t *StrInsert(wchar_t *source, size_t index, const wchar_t *what);
-wchar_t *StrTrim(wchar_t *szText, const wchar_t *szTrimChars);
-
-void CreateDirectories(char *szPath);
-void RemoveDirectories(char *szPath);
-int DirectoryExists(char *szPath);
-
-void CreateDirectories(wchar_t *szPath);
-void RemoveDirectories(wchar_t *szPath);
-int DirectoryExists(wchar_t *szPath);
-
-int GetStringFromDatabase(char *szSettingName, const char *szError, char *szResult, size_t size);
-int WriteStringToDatabase(char *szSettingName, const char *szValue);
-
-int GetStringFromDatabase(char *szSettingName, const wchar_t *szError, wchar_t *szResult, size_t size);
-int WriteStringToDatabase(char *szSettingName, const wchar_t *szValue);
-
-__inline static wchar_t *Utils_ReplaceVarsW(wchar_t *szData) {
- REPLACEVARSDATA dat = {0};
- dat.cbSize = sizeof(dat);
- dat.dwFlags = RVF_UNICODE;
- return (wchar_t *) CallService(MS_UTILS_REPLACEVARS, (WPARAM) szData, (LPARAM) &dat);
-}
+TCHAR *StrReplace(TCHAR *source, const TCHAR *what, const TCHAR *withWhat);
+TCHAR *StrCopy(TCHAR *source, size_t index, const TCHAR *what, size_t count);
+TCHAR *StrDelete(TCHAR *source, size_t index, size_t count);
+TCHAR *StrInsert(TCHAR *source, size_t index, const TCHAR *what);
+TCHAR *StrTrim(TCHAR *szText, const TCHAR *szTrimChars);
+
+void RemoveDirectories(TCHAR *szPath);
+int DirectoryExists(TCHAR *szPath);
+
+int GetStringFromDatabase(char *szSettingName, const TCHAR *szError, TCHAR *szResult, size_t size);
#endif
\ No newline at end of file |