25 #if wxCHECK_VERSION(3, 0, 0) 37 "abcdefghijklmnopqrstuvwxyz" 52 ret.
Alloc(len * 4 / 3 + len * 2);
54 for (
size_t i = 0; i < len; ++i)
56 c = (pData[i] >> 2) & 0x3f;
58 c = (pData[i] << 4) & 0x3f;
60 c |= (pData[i] >> 4) & 0x0f;
65 c = (pData[i] << 2) & 0x3f;
67 c |= (pData[i] >> 6) & 0x03;
95 size_t len = data.
Length();
99 for (
size_t i = 0; i < len; ++i)
102 c = cvt.
Find(data[i]);
105 c1 = cvt.
Find(data[i]);
107 c = (c << 2) | ((c1 >> 4) & 0x3);
108 #if wxCHECK_VERSION(3, 0, 0) 109 ret.
Append(static_cast<wxUniChar>(c), 1);
119 #if wxCHECK_VERSION(3, 0, 0) 120 c = cvt.
Find(static_cast<wxUniChar>(c));
125 c1 = ((c1 << 4) & 0xf0) | ((c >> 2) & 0xf);
126 #if wxCHECK_VERSION(3, 0, 0) 127 ret.
Append(static_cast<wxUniChar>(c1), 1);
139 #if wxCHECK_VERSION(3, 0, 0) 140 c1 = cvt.
Find(static_cast<wxUniChar>(c1));
145 c = ((c << 6) & 0xc0) | c1;
146 #if wxCHECK_VERSION(3, 0, 0) 147 ret.
Append(static_cast<wxUniChar>(c), 1);
#define wxASSERT_MSG(condition, message)
wxUSE_UNICODE_dependent wxChar
DLLIMPORT wxString Encode(const wxUint8 *pData, size_t len)
wxString & Append(const char *psz)
DLLIMPORT wxString Decode(const wxString &data)
int Find(wxUniChar ch, bool fromEnd=false) const