git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60108
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
const wxScopedCharBuffer utf8_str() const
}
const wxScopedCharBuffer utf8_str() const
- { return wxCharBuffer::CreateNonOwned(wx_str()); }
- const wxScopedCharBuffer ToUTF8() const
- { return wxCharBuffer::CreateNonOwned(wx_str()); }
+ { return wxCharBuffer::CreateNonOwned(m_impl.c_str(), m_impl.length()); }
// this function exists in UTF-8 build only and returns the length of the
// internal UTF-8 representation
// this function exists in UTF-8 build only and returns the length of the
// internal UTF-8 representation
return s;
}
const wxScopedCharBuffer utf8_str() const { return mb_str(wxMBConvUTF8()); }
return s;
}
const wxScopedCharBuffer utf8_str() const { return mb_str(wxMBConvUTF8()); }
- const wxScopedCharBuffer ToUTF8() const { return utf8_str(); }
#else // ANSI
static wxString FromUTF8(const char *utf8)
{ return wxString(wxMBConvUTF8().cMB2WC(utf8)); }
#else // ANSI
static wxString FromUTF8(const char *utf8)
{ return wxString(wxMBConvUTF8().cMB2WC(utf8)); }
}
const wxScopedCharBuffer utf8_str() const
{ return wxMBConvUTF8().cWC2MB(wc_str()); }
}
const wxScopedCharBuffer utf8_str() const
{ return wxMBConvUTF8().cWC2MB(wc_str()); }
- const wxScopedCharBuffer ToUTF8() const { return utf8_str(); }
+ const wxScopedCharBuffer ToUTF8() const { return utf8_str(); }
+
// functions for storing binary data in wxString:
#if wxUSE_UNICODE
static wxString From8BitData(const char *data, size_t len)
// functions for storing binary data in wxString:
#if wxUSE_UNICODE
static wxString From8BitData(const char *data, size_t len)