Contents Up Previous Next

wxMBConvUTF32

This class is used to convert between multibyte encodings and UTF-32 Unicode encoding (also known as UCS-4). Unlike UTF-8 encoding, UTF-32 uses (double) words and not bytes and hence depends on the byte ordering: big or little endian. Hence this class is provided in two versions: wxMBConvUTF32LE and wxMBConvUTF32BE and wxMBConvUTF32 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

wxMBConv

Include files

<wx/strconv.h>

See also

wxMBConvUTF8, wxMBConvUTF16, wxMBConv classes overview

Members

wxMBConvUTF32::MB2WC
wxMBConvUTF32::WC2MB


wxMBConvUTF32::MB2WC

size_t MB2WC(wchar_t* buf, const char* psz, size_t n) const

Converts from UTF-32 encoding to Unicode. Returns the size of the destination buffer.


wxMBConvUTF32::WC2MB

size_t WC2MB(char* buf, const wchar_t* psz, size_t n) const

Converts from Unicode to UTF-32 encoding. Returns the size of the destination buffer.