1 \section{\class{wxMBConvUTF16
}}\label{wxmbconvutf16
}
3 This class is used to convert between multibyte encodings and UTF-
16 Unicode
4 encoding (also known as UCS-
2). Unlike
\helpref{UTF-
8}{wxmbconvutf8
} encoding,
5 UTF-
16 uses words and not bytes and hence depends on the byte ordering:
6 big or little endian. Hence this class is provided in two versions:
7 wxMBConvUTF16LE and wxMBConvUTF16BE and wxMBConvUTF16 itself is just a typedef
8 for one of them (native for the given platform, e.g. LE under Windows and BE
11 \wxheading{Derived from
}
13 \helpref{wxMBConv
}{wxmbconv
}
15 \wxheading{Include files
}
21 \helpref{wxBase
}{librarieslist
}
25 \helpref{wxMBConvUTF8
}{wxmbconvutf8
},
26 \helpref{wxMBConvUTF32
}{wxmbconvutf32
},
27 \helpref{wxMBConv classes overview
}{mbconvclasses
}
29 \latexignore{\rtfignore{\wxheading{Members
}}}
31 \membersection{wxMBConvUTF16::MB2WC
}\label{wxmbconvutf16mb2wc
}
33 \constfunc{size
\_t}{MB2WC
}{\param{wchar
\_t*
}{buf
},
\param{const char*
}{psz
},
\param{size
\_t }{n
}}
35 Converts from UTF-
16 encoding to Unicode. Returns the size of the destination
38 \membersection{wxMBConvUTF16::WC2MB
}\label{wxmbconvutf16wc2mb
}
40 \constfunc{size
\_t}{WC2MB
}{\param{char*
}{buf
},
\param{const wchar
\_t*
}{psz
},
\param{size
\_t }{n
}}
42 Converts from Unicode to UTF-
16 encoding. Returns the size of the destination
46 \section{\class{wxMBConvUTF32
}}\label{wxmbconvutf32
}
48 This class is used to convert between multibyte encodings and UTF-
32 Unicode
49 encoding (also known as UCS-
4). Unlike
\helpref{UTF-
8}{wxmbconvutf8
} encoding,
50 UTF-
32 uses (double) words and not bytes and hence depends on the byte ordering:
51 big or little endian. Hence this class is provided in two versions:
52 wxMBConvUTF32LE and wxMBConvUTF32BE and wxMBConvUTF32 itself is just a typedef
53 for one of them (native for the given platform, e.g. LE under Windows and BE
56 \wxheading{Derived from
}
58 \helpref{wxMBConv
}{wxmbconv
}
60 \wxheading{Include files
}
66 \helpref{wxBase
}{librarieslist
}
70 \helpref{wxMBConvUTF8
}{wxmbconvutf8
},
71 \helpref{wxMBConvUTF16
}{wxmbconvutf16
},
72 \helpref{wxMBConv classes overview
}{mbconvclasses
}
74 \latexignore{\rtfignore{\wxheading{Members
}}}
76 \membersection{wxMBConvUTF32::MB2WC
}\label{wxmbconvutf32mb2wc
}
78 \constfunc{size
\_t}{MB2WC
}{\param{wchar
\_t*
}{buf
},
\param{const char*
}{psz
},
\param{size
\_t }{n
}}
80 Converts from UTF-
32 encoding to Unicode. Returns the size of the destination
83 \membersection{wxMBConvUTF32::WC2MB
}\label{wxmbconvutf32wc2mb
}
85 \constfunc{size
\_t}{WC2MB
}{\param{char*
}{buf
},
\param{const wchar
\_t*
}{psz
},
\param{size
\_t }{n
}}
87 Converts from Unicode to UTF-
32 encoding. Returns the size of the destination