1.10.2 and less mbtowc and wctomb HAVE THE COOTIEScd .. (they are just stubs and return 0 - we need our own, even in ANSIcd ..!)\n2.Finalize the null character changes in wxString - change mb_str and wc_str to not stop at null characters\n3.Add unit tests for the above
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -819,8 +819,7 @@ public:
|
||||
// type differs because a function may either return pointer to the buffer
|
||||
// directly or have to use intermediate buffer for translation.
|
||||
#if wxUSE_UNICODE
|
||||
const wxCharBuffer mb_str(wxMBConv& conv = wxConvLibc) const
|
||||
{ return conv.cWC2MB(c_str()); }
|
||||
const wxCharBuffer mb_str(wxMBConv& conv = wxConvLibc) const;
|
||||
|
||||
const wxWX2MBbuf mbc_str() const { return mb_str(*wxConvCurrent); }
|
||||
|
||||
@@ -843,8 +842,7 @@ public:
|
||||
const wxWX2MBbuf mbc_str() const { return mb_str(); }
|
||||
|
||||
#if wxUSE_WCHAR_T
|
||||
const wxWCharBuffer wc_str(wxMBConv& conv) const
|
||||
{ return conv.cMB2WC(c_str()); }
|
||||
const wxWCharBuffer wc_str(wxMBConv& conv) const;
|
||||
#endif // wxUSE_WCHAR_T
|
||||
|
||||
const wxChar* fn_str() const { return c_str(); }
|
||||
|
Reference in New Issue
Block a user