📄 mbcnvutf.tex
字号:
\section{\class{wxMBConvUTF16}}\label{wxmbconvutf16}This class is used to convert between multibyte encodings and UTF-16 Unicodeencoding (also known as UCS-2). Unlike \helpref{UTF-8}{wxmbconvutf8} 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 typedeffor one of them (native for the given platform, e.g. LE under Windows and BEunder Mac).\wxheading{Derived from}\helpref{wxMBConv}{wxmbconv}\wxheading{Include files}<wx/strconv.h>\wxheading{See also}\helpref{wxMBConvUTF8}{wxmbconvutf8}, \helpref{wxMBConvUTF32}{wxmbconvutf32}, \helpref{wxMBConv classes overview}{mbconvclasses}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxMBConvUTF16::MB2WC}\label{wxmbconvutf16mb2wc}\constfunc{size\_t}{MB2WC}{\param{wchar\_t* }{buf}, \param{const char* }{psz}, \param{size\_t }{n}}Converts from UTF-16 encoding to Unicode. Returns the size of the destinationbuffer.\membersection{wxMBConvUTF16::WC2MB}\label{wxmbconvutf16wc2mb}\constfunc{size\_t}{WC2MB}{\param{char* }{buf}, \param{const wchar\_t* }{psz}, \param{size\_t }{n}}Converts from Unicode to UTF-16 encoding. Returns the size of the destinationbuffer.\section{\class{wxMBConvUTF32}}\label{wxmbconvutf32}This class is used to convert between multibyte encodings and UTF-32 Unicodeencoding (also known as UCS-4). Unlike \helpref{UTF-8}{wxmbconvutf8} 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 typedeffor one of them (native for the given platform, e.g. LE under Windows and BEunder Mac).\wxheading{Derived from}\helpref{wxMBConv}{wxmbconv}\wxheading{Include files}<wx/strconv.h>\wxheading{See also}\helpref{wxMBConvUTF8}{wxmbconvutf8}, \helpref{wxMBConvUTF16}{wxmbconvutf16}, \helpref{wxMBConv classes overview}{mbconvclasses}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxMBConvUTF32::MB2WC}\label{wxmbconvutf32mb2wc}\constfunc{size\_t}{MB2WC}{\param{wchar\_t* }{buf}, \param{const char* }{psz}, \param{size\_t }{n}}Converts from UTF-32 encoding to Unicode. Returns the size of the destinationbuffer.\membersection{wxMBConvUTF32::WC2MB}\label{wxmbconvutf32wc2mb}\constfunc{size\_t}{WC2MB}{\param{char* }{buf}, \param{const wchar\_t* }{psz}, \param{size\_t }{n}}Converts from Unicode to UTF-32 encoding. Returns the size of the destinationbuffer.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -