2 % automatically generated by HelpGen from
3 % ../include/wx/strconv.h at 25/Mar/00 10:20:56
6 \section{\class{wxCSConv
}}\label{wxcsconv
}
8 This class converts between any character sets and Unicode.
9 It has one predefined instance,
{\bf wxConvLocal
}, for the
10 default user character set.
12 \wxheading{Derived from
}
14 \helpref{wxMBConv
}{wxmbconv
}
16 \wxheading{Include files
}
22 \helpref{wxMBConv
}{wxmbconv
},
23 \helpref{wxEncodingConverter
}{wxencodingconverter
},
24 \helpref{wxMBConv classes overview
}{mbconvclasses
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxCSConv::wxCSConv
}\label{wxcsconvwxcsconv
}
30 \func{}{wxCSConv
}{\param{const wxChar*
}{charset
}}
32 \func{}{wxCSConv
}{\param{wxFontEncoding
}{encoding
}}
34 Constructor. You may specify either the name of the character set you want to
35 convert from/to or an encoding constant. If the character set name (or the
36 encoding) is not recognized, ISO
8859-
1 is used as fall back.
39 \membersection{wxCSConv::
\destruct{wxCSConv
}}\label{wxcsconvdtor
}
41 \func{}{\destruct{wxCSConv
}}{\void}
43 Destructor frees any resources needed to perform the conversion.
46 \membersection{wxCSConv::IsOk
}\label{wxcsconvisok
}
48 \constfunc{bool
}{IsOk
}{\void}
50 Returns
\true if the charset (or the encoding) given at constructor is really
51 available to use. Returns
\false if ISO
8859-
1 will be used instead.
53 Note this does
\emph{not
} mean that a given string will be correctly converted.
54 A malformed string may still make conversion functions return
\texttt{wxCONV
\_FAILED}.
59 \membersection{wxCSConv::MB2WC
}\label{wxcsconvmb2wc
}
61 \constfunc{size
\_t}{MB2WC
}{\param{wchar
\_t*
}{buf
},
\param{const char*
}{psz
},
\param{size
\_t }{n
}}
63 Converts from the selected character set to Unicode. Returns length of string written to destination buffer.
66 \membersection{wxCSConv::WC2MB
}\label{wxcsconvwc2mb
}
68 \constfunc{size
\_t}{WC2MB
}{\param{char*
}{buf
},
\param{const wchar
\_t*
}{psz
},
\param{size
\_t }{n
}}
70 Converts from Unicode to the selected character set. Returns length of string written to destination buffer.