summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/HistoryStats/_strfunc.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-04 23:23:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-04 23:23:45 +0000
commit15855fa84a09fd1fd486d357c38db0f2bd181e74 (patch)
treec98d1ae74abca41c776522059343eda13a7e0a31 /plugins/!NotAdopted/HistoryStats/_strfunc.h
parent819f8efabea6b0d7d971f9e6e4b21bbc18838874 (diff)
HistoryStats compiles ok now
git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/HistoryStats/_strfunc.h')
-rw-r--r--plugins/!NotAdopted/HistoryStats/_strfunc.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/plugins/!NotAdopted/HistoryStats/_strfunc.h b/plugins/!NotAdopted/HistoryStats/_strfunc.h
deleted file mode 100644
index 2b54948572..0000000000
--- a/plugins/!NotAdopted/HistoryStats/_strfunc.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#if !defined(HISTORYSTATS_GUARD__STRFUNC_H)
-#define HISTORYSTATS_GUARD__STRFUNC_H
-
-namespace ext
-{
- template<typename T_>
- class basic_strfunc
- {
- };
-
- template<>
- class basic_strfunc<mu_ansi>
- {
- public:
- static mu_ansi* chr(const mu_ansi* string, mu_ansi c) { return strchr(string, c); }
- static int cmp(const mu_ansi* string1, const mu_ansi* string2) { return strcmp(string1, string2); }
- static int icmp(const mu_ansi* string1, const mu_ansi* string2) { return _stricmp(string1, string2); }
- static int coll(const mu_ansi* string1, const mu_ansi* string2) { return strcoll(string1, string2); }
- static int icoll(const mu_ansi* string1, const mu_ansi* string2) { return _stricoll(string1, string2); }
- static mu_ansi* str(const mu_ansi* string, const mu_ansi* strSearch) { return strstr(string, strSearch); }
- static size_t len(const mu_ansi* string) { return strlen(string); }
- static size_t ftime(mu_ansi* strDest, size_t maxsize, const mu_ansi* format, const struct tm* timeptr) { return strftime(strDest, maxsize, format, timeptr); }
- static int sprintf(mu_ansi* buffer, const mu_ansi* format, ...) { va_list args; va_start(args, format); return vsprintf(buffer, format, args); }
- };
-
- template<>
- class basic_strfunc<mu_wide>
- {
- public:
- static mu_wide* chr(const mu_wide* string, mu_wide c) { return wcschr(string, c); }
- static int cmp(const mu_wide* string1, const mu_wide* string2) { return wcscmp(string1, string2); }
- static int icmp(const mu_wide* string1, const mu_wide* string2) { return _wcsicmp(string1, string2); }
- static int coll(const mu_wide* string1, const mu_wide* string2) { return wcscoll(string1, string2); }
- static int icoll(const mu_wide* string1, const mu_wide* string2) { return _wcsicoll(string1, string2); }
- static mu_wide* str(const mu_wide* string, const mu_wide* strSearch) { return wcsstr(string, strSearch); }
- static size_t len(const mu_wide* string) { return wcslen(string); }
- static size_t ftime(mu_wide* strDest, size_t maxsize, const mu_wide* format, const struct tm* timeptr) { return wcsftime(strDest, maxsize, format, timeptr); }
- static int sprintf(mu_wide* buffer, const mu_wide* format, ...) { va_list args; va_start(args, format); return vswprintf(buffer, format, args); }
- };
-}
-
-#endif // HISTORYSTATS_GUARD__STRFUNC_H \ No newline at end of file