VMime
|
Classes | |
struct | status |
Public Member Functions | |
virtual void | convert (const string &in, string &out, status *st=NULL)=0 |
virtual void | convert (utility::inputStream &in, utility::outputStream &out, status *st=NULL)=0 |
virtual shared_ptr < utility::charsetFilteredOutputStream > | getFilteredOutputStream (utility::outputStream &os, const charsetConverterOptions &opts=charsetConverterOptions())=0 |
Static Public Member Functions | |
static shared_ptr < charsetConverter > | create (const charset &source, const charset &dest, const charsetConverterOptions &opts=charsetConverterOptions()) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Convert between charsets.
Convert a string buffer from one charset to another charset (in-memory conversion)
in | input buffer |
out | output buffer |
st | will receive some extra infos when conversion is finished or stopped by an error (can be NULL) |
exceptions::illegal_byte_sequence_for_charset | if an illegal byte sequence was found in the input bytes, and the 'silentlyReplaceInvalidSequences' flag is set to false in the charsetConverterOptions |
exceptions::charset_conv_error | if an unexpected error occured during the conversion |
Implemented in charsetConverter_idna.
|
pure virtual |
Convert the contents of an input stream in a specified charset to another charset and write the result to an output stream.
in | input stream to read data from |
out | output stream to write the converted data |
st | will receive some extra infos when conversion is finished or stopped by an error (can be NULL) |
exceptions::illegal_byte_sequence_for_charset | if an illegal byte sequence was found in the input bytes, and the 'silentlyReplaceInvalidSequences' flag is set to false in the charsetConverterOptions |
exceptions::charset_conv_error | if an unexpected error occured during the conversion |
Implemented in charsetConverter_idna.
|
static |
Construct and initialize an iconv charset converter.
source | input charset |
dest | output charset |
opts | conversion options |
Referenced by charset::convert(), wordEncoder::getNextChunk(), and charset::isValidText().
|
pure virtual |
Returns a filtered output stream which applies a charset conversion to input bytes.
Please note that it may not be supported by the converter.
os | stream into which filtered data will be written |
opts | conversion options |
Implemented in charsetConverter_idna.