X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5576edf8d8abf87473eb6646346b8acd380d09a7..27ea6757f36b847e94fc9003c34d5768c341aa13:/include/wx/strconv.h diff --git a/include/wx/strconv.h b/include/wx/strconv.h index 2d82151481..d9e89d5e3c 100644 --- a/include/wx/strconv.h +++ b/include/wx/strconv.h @@ -12,10 +12,6 @@ #ifndef _WX_WXSTRCONVH__ #define _WX_WXSTRCONVH__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "strconv.h" -#endif - #include "wx/defs.h" #include "wx/wxchar.h" #include "wx/buffer.h" @@ -98,7 +94,7 @@ public: class WXDLLIMPEXP_BASE wxConvBrokenFileNames : public wxMBConv { public: - wxConvBrokenFileNames(); + wxConvBrokenFileNames(const wxChar *charset); virtual ~wxConvBrokenFileNames() { delete m_conv; } virtual size_t MB2WC(wchar_t *outputBuf, const char *psz, size_t outputSize) const; @@ -166,7 +162,7 @@ public: }; // ---------------------------------------------------------------------------- -// wxMBConvUCS4LE (for conversion using UTF32 Little Endian encoding) +// wxMBConvUTF32LE (for conversion using UTF32 Little Endian encoding) // ---------------------------------------------------------------------------- class WXDLLIMPEXP_BASE wxMBConvUTF32LE : public wxMBConv @@ -177,7 +173,7 @@ public: }; // ---------------------------------------------------------------------------- -// wxMBConvUCS4BE (for conversion using UTF32 Big Endian encoding) +// wxMBConvUTF32BE (for conversion using UTF32 Big Endian encoding) // ---------------------------------------------------------------------------- class WXDLLIMPEXP_BASE wxMBConvUTF32BE : public wxMBConv @@ -236,30 +232,6 @@ private: bool m_deferred; }; -#ifdef __UNIX__ - -// ---------------------------------------------------------------------------- -// wxConvBrokenFileNames is made for GTK2 in Unicode mode when -// files are accidentally written in an encoding which is not -// the system encoding. Typically, the system encoding will be -// UTF8 but there might be files stored in ISO8859-1 on disk. -// ---------------------------------------------------------------------------- - -class wxConvBrokenFileNames : public wxMBConv -{ -public: - wxConvBrokenFileNames(); - virtual ~wxConvBrokenFileNames() { delete m_conv; } - - virtual size_t MB2WC(wchar_t *outputBuf, const char *psz, size_t outputSize) const; - virtual size_t WC2MB(char *outputBuf, const wchar_t *psz, size_t outputSize) const; - -private: - // the conversion object we forward to - wxMBConv *m_conv; -}; -#endif -// __UNIX__ // ---------------------------------------------------------------------------- // declare predefined conversion objects