X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3e9a6f3bfcc5e2f017eaa90dd0e45ea87dd459d..6d8978f030996c834fcd29d85d95ebe261b8defc:/include/wx/datstrm.h diff --git a/include/wx/datstrm.h b/include/wx/datstrm.h index ef049c9f2a..d83aa66993 100644 --- a/include/wx/datstrm.h +++ b/include/wx/datstrm.h @@ -22,7 +22,7 @@ class WXDLLIMPEXP_BASE wxDataInputStream { public: #if wxUSE_UNICODE - wxDataInputStream(wxInputStream& s, const wxMBConv& conv = wxConvAuto()); + wxDataInputStream(wxInputStream& s, const wxMBConv& conv = wxConvUTF8 ); #else wxDataInputStream(wxInputStream& s); #endif @@ -78,6 +78,11 @@ public: wxDataInputStream& operator>>(float& f); void BigEndianOrdered(bool be_order) { m_be_order = be_order; } + +#if wxUSE_UNICODE + void SetConv( const wxMBConv &conv ); + wxMBConv *GetConv() const { return m_conv; } +#endif protected: wxInputStream *m_input; @@ -93,7 +98,7 @@ class WXDLLIMPEXP_BASE wxDataOutputStream { public: #if wxUSE_UNICODE - wxDataOutputStream(wxOutputStream& s, const wxMBConv& conv = wxConvAuto()); + wxDataOutputStream(wxOutputStream& s, const wxMBConv& conv = wxConvUTF8 ); #else wxDataOutputStream(wxOutputStream& s); #endif @@ -152,6 +157,11 @@ public: void BigEndianOrdered(bool be_order) { m_be_order = be_order; } +#if wxUSE_UNICODE + void SetConv( const wxMBConv &conv ); + wxMBConv *GetConv() const { return m_conv; } +#endif + protected: wxOutputStream *m_output; bool m_be_order;