Convert between charsets. More...


Public Member Functions | |
| charsetConverter (const charset &source, const charset &dest) | |
| ~charsetConverter () | |
| void | convert (const string &in, string &out) |
| void | convert (utility::inputStream &in, utility::outputStream &out) |
Convert between charsets.
| charsetConverter | ( | const charset & | source, | |
| const charset & | dest | |||
| ) |
Construct and initialize a charset converter.
| source | input charset | |
| dest | output charset |
References charset::getName().
| ~charsetConverter | ( | ) |
| void convert | ( | utility::inputStream & | in, | |
| utility::outputStream & | out | |||
| ) |
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 |
| exceptions::charset_conv_error | if an error occured during the conversion |
References inputStream::eof(), outputInvalidChar(), inputStream::read(), and outputStream::write().
Convert a string buffer from one charset to another charset (in-memory conversion).
| in | input buffer | |
| out | output buffer |
| exceptions::charset_conv_error | if an error occured during the conversion |
References outputStreamStringAdapter::flush().
Referenced by wordEncoder::getNextChunk().
1.6.2