wxmbconvutf16this class is used to convert between multibyte encodings and utf-16 unicode encoding (also known as ucs-2). unlike utf-8 encoding, utf-16 uses words and not bytes and hence depends on the byte ordering: big or little endian. hence this class is provided in two versions: wxmbconvutf16le and wxmbconvutf16be and wxmbconvutf16 itself is just a typedef for one of them (native for the given platform, e.g. le under windows and be under mac). derived from include files <wx/strconv.h> see also wxmbconvutf8, wxmbconvutf32, wxmbconv classes overview members
wxmbconvutf16::mb2wc
wxmbconvutf16::mb2wcsize_t mb2wc(wchar_t* buf, const char* psz, size_t n) const converts from utf-16 encoding to unicode. returns the size of the destination buffer.
wxmbconvutf16::wc2mbsize_t wc2mb(char* buf, const wchar_t* psz, size_t n) const converts from unicode to utf-16 encoding. returns the size of the destination buffer.
|