diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-13 07:37:36 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-13 07:37:36 +0000 |
commit | ccb4003b6178f4c195350ae29896fdd442412af4 (patch) | |
tree | e46dafbdceb8a971e660fe9698ac1a92e716e245 /plugins/Clist_modern/hdr/modern_tstring.h | |
parent | be027a850d9b9b560eeca3827a14da51d466ebdc (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/hdr/modern_tstring.h')
-rw-r--r-- | plugins/Clist_modern/hdr/modern_tstring.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/plugins/Clist_modern/hdr/modern_tstring.h b/plugins/Clist_modern/hdr/modern_tstring.h deleted file mode 100644 index 17fc9cf50c..0000000000 --- a/plugins/Clist_modern/hdr/modern_tstring.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef UNICODE //FIXME Build without UNICODE flag
-#define _AtlGetConversionACP() CP_THREAD_ACP
-#endif
-
-#include "MString.h"
-
-#ifdef UNICODE
-typedef CMStringA astring;
-typedef CMStringW wstring;
-
-class mbstring : public astring
-{
- // It is prohibited to initialize by char* outside, use L"xxx"
-private:
- mbstring( const char * pChar ) : astring( pChar ) {};
- mbstring& operator=( const char * pChar ) { this->operator =( pChar ); return *this; }
-
-public:
- mbstring() : astring() {};
- mbstring( const mbstring& uStr ) : astring( uStr ) {};
-
-
- mbstring( const wstring& tStr ) { *this = tStr.c_str(); }
- mbstring& operator=( const wstring& tStr ) { this->operator =( tStr.c_str()); return *this; }
-
- mbstring( const wchar_t * wChar );
- mbstring& operator=( const astring& aStr );
- mbstring& operator=( const wchar_t * wChar );
- operator wstring();
- operator astring();
-};
-
-
-class tstring : public wstring
-{
-public:
- tstring() : wstring() {};
- tstring(const wchar_t * pwChar) : wstring( pwChar ) {};
-
-
- tstring(const astring& aStr) { *this = aStr.c_str(); }
- tstring(const mbstring& utfStr) { *this = utfStr; }
-
- tstring(const char * pChar);
- tstring& operator=( const char * pChar );
- tstring& operator=( const astring& aStr );
- tstring& operator=( const mbstring& uStr );
- operator astring();
- operator mbstring() { return mbstring( this->c_str()); }
-};
-
-#else
-typedef CMStringA astring;
-typedef CMStringA wstring;
-typedef CMStringA tstring;
-typedef CMStringA mbstring;
-
-#endif
|