Preparing wxString for UTF-8 representation:

1) split into wxStringImpl class that has std::string-like API and operates on char* or wchar_t* data and wxString class that provides Unicode iterators and indexes
2) added both char* and wchar_t* versions of many wxString methods to avoid having to use _T()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-03-26 20:28:04 +00:00
parent d9485f89b8
commit 8f93a29f8e
5 changed files with 1568 additions and 806 deletions

View File

@@ -32,14 +32,14 @@
// implementation
// ============================================================================
const wxArgNativeCharType *wxArgNormalizer<const wxCStrData&>::get() const
const wxStringCharType *wxArgNormalizer<const wxCStrData&>::get() const
{
return m_value;
}
const wxArgNativeCharType *wxArgNormalizer<const wxString&>::get() const
const wxStringCharType *wxArgNormalizer<const wxString&>::get() const
{
return m_value.c_str();
return m_value.wx_str();
}
#if wxUSE_UNICODE_WCHAR