Regina Calculation Engine
An output stream buffer that translates between character encodings. More...
|Creates a new stream buffer. |
|Destroys this stream buffer. |
|IConvStreamBuffer *||open (std::ostream &dest, const char *srcCode, const char *destCode)|
|Opens a new stream buffer that wraps around the given output stream. |
|IConvStreamBuffer *||close () throw ()|
|Closes this stream buffer. |
|int_type||overflow (int_type c)|
|Sends buffered data to the destination output stream, converting between character sets en route. |
|Simply returns EOF (since this is not an input stream). |
|Flushes all output buffers. |
An output stream buffer that translates between character encodings.
The iconv library is used to do the real work.
Users should not normally instantiate this class directly; instead see IConvStream for a higher-level interface to character conversion.
This class will still work if iconv is not supported on the build machine, though in this case it will simply pass data through without performing any translations.