2000-07-15 15:51:35 -04:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% ../include/wx/strconv.h at 25/Mar/00 10:20:56
|
|
|
|
%
|
|
|
|
|
|
|
|
\section{\class{wxCSConv}}\label{wxcsconv}
|
|
|
|
|
|
|
|
This class converts between any character sets and Unicode.
|
|
|
|
It has one predefined instance, {\bf wxConvLocal}, for the
|
|
|
|
default user character set.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxMBConv}{wxmbconv}
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/strconv.h>
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxMBConv}{wxmbconv},
|
|
|
|
\helpref{wxEncodingConverter}{wxencodingconverter},
|
|
|
|
\helpref{wxMBConv classes overview}{mbconvclasses}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxCSConv::wxCSConv}\label{wxcsconvwxcsconv}
|
|
|
|
|
|
|
|
\func{}{wxCSConv}{\param{const wxChar* }{charset}}
|
|
|
|
|
2004-09-03 22:44:43 -04:00
|
|
|
\func{}{wxCSConv}{\param{wxFontEncoding }{encoding}}
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2003-09-22 13:09:08 -04:00
|
|
|
Constructor. You may specify either the name of the character set you want to
|
2007-01-18 15:39:10 -05:00
|
|
|
convert from/to or an encoding constant. If the character set name (or the
|
|
|
|
encoding) is not recognized, ISO 8859-1 is used as fall back.
|
2000-07-15 15:51:35 -04:00
|
|
|
|
|
|
|
|
2003-09-22 13:09:08 -04:00
|
|
|
\membersection{wxCSConv::\destruct{wxCSConv}}\label{wxcsconvdtor}
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2003-09-22 13:09:08 -04:00
|
|
|
\func{}{\destruct{wxCSConv}}{\void}
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2003-09-22 13:09:08 -04:00
|
|
|
Destructor frees any resources needed to perform the conversion.
|
2000-07-15 15:51:35 -04:00
|
|
|
|
|
|
|
|
2007-01-18 15:39:10 -05:00
|
|
|
\membersection{wxCSConv::IsOk}\label{wxcsconvisok}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsOk}{\void}
|
|
|
|
|
|
|
|
Returns \true if the charset (or the encoding) given at constructor is really
|
|
|
|
available to use. Returns \false if ISO 8859-1 will be used instead.
|
|
|
|
|
|
|
|
Note this does \emph{not} mean that a given string will be correctly converted.
|
|
|
|
A malformed string may still make conversion functions return \texttt{wxCONV\_FAILED}.
|
|
|
|
|
|
|
|
\newsince{2.8.2}
|
|
|
|
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\membersection{wxCSConv::MB2WC}\label{wxcsconvmb2wc}
|
|
|
|
|
|
|
|
\constfunc{size\_t}{MB2WC}{\param{wchar\_t* }{buf}, \param{const char* }{psz}, \param{size\_t }{n}}
|
|
|
|
|
2004-09-03 22:44:43 -04:00
|
|
|
Converts from the selected character set to Unicode. Returns length of string written to destination buffer.
|
2003-09-22 13:09:08 -04:00
|
|
|
|
2007-01-18 15:39:10 -05:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\membersection{wxCSConv::WC2MB}\label{wxcsconvwc2mb}
|
|
|
|
|
|
|
|
\constfunc{size\_t}{WC2MB}{\param{char* }{buf}, \param{const wchar\_t* }{psz}, \param{size\_t }{n}}
|
|
|
|
|
2004-09-03 22:44:43 -04:00
|
|
|
Converts from Unicode to the selected character set. Returns length of string written to destination buffer.
|
2004-09-26 12:37:44 -04:00
|
|
|
|