5 : m_Encoding(wxT(
"UTF-8"))
32 return wxSafeConvertWX2MB(inputString.wc_str());
37 wxString str(inputString.wc_str(*wxConvCurrent), wxConvUTF8);
44 if(inputString == _T(
""))
47 size_t length = wxConvUTF8.WC2MB(NULL, inputString.wc_str(), (
unsigned int)0);
49 wxString str(inputString.wc_str(*wxConvCurrent), wxConvUTF8);
50 size_t length = str.Length();
55 length = wxStrlen((wxChar*)(
const char*)tempCharBuffer);
63 wxString strReturn(wxConvUTF8.cMB2WC(inputBuffer), *wxConvCurrent);
65 if (strReturn == wxEmptyString)
66 strReturn << wxString(inputBuffer, *wxConvCurrent);
73 wxString strReturn( wxConvUTF8.cWC2WX(inputBuffer),*wxConvCurrent);
75 if(strReturn==wxEmptyString)
76 strReturn<<wxString(inputBuffer,*wxConvCurrent);
88 return wxSafeConvertWX2MB(inputString.wc_str());
93 wxString str(inputString.wc_str(*wxConvCurrent), wxConvUTF8);
100 if(inputString == _T(
""))
103 size_t length = wxConvUTF8.WC2MB(NULL, inputString.wc_str(), (
unsigned int)0);
105 const wchar_t* str = inputString.wc_str(*wxConvCurrent);
106 size_t length = wxConvUTF8.WC2MB(NULL, str, (
unsigned int)0);
111 length = wxStrlen((wxChar*)(
const char*)tempCharBuffer);
119 wxString strReturn(wxConvUTF8.cMB2WC(inputBuffer), *wxConvCurrent);
121 if (strReturn == wxEmptyString)
122 strReturn << wxString(inputBuffer, *wxConvCurrent);
129 wxString strReturn( wxConvUTF8.cWC2WX(inputBuffer),*wxConvCurrent);
131 if(strReturn==wxEmptyString)
132 strReturn<<wxString(inputBuffer,*wxConvCurrent);
wxDatabaseStringConverter()
void SetEncoding(wxFontEncoding encoding)
virtual size_t GetEncodedStreamLength(const wxString &inputString)
virtual wxString ConvertFromUnicodeStream(const char *inputBuffer)
virtual const wxCharBuffer ConvertToUnicodeStream(const wxString &inputString)