#include <transcoding.h>
Public Member Functions | |
virtual FalconData * | clone () const |
Clones the stream. | |
virtual const String | encoding () const |
Returns the character encoding which is managed by this transcoder. | |
virtual bool | get (uint32 &chr) |
Gets next character from the stream. | |
virtual bool | put (uint32 chr) |
Writes a character on the stream. | |
TranscoderUTF8 (const TranscoderUTF8 &other) | |
TranscoderUTF8 (Stream *s, bool bOwn=false) |
Falcon::TranscoderUTF8::TranscoderUTF8 | ( | Stream * | s, | |
bool | bOwn = false | |||
) | [inline] |
Falcon::TranscoderUTF8::TranscoderUTF8 | ( | const TranscoderUTF8 & | other | ) |
virtual FalconData* Falcon::TranscoderUTF8::clone | ( | ) | const [virtual] |
Clones the stream.
This version returns 0 and sets error to unsupported; subclasses must properly clone the stream.
Reimplemented from Falcon::Stream.
virtual const String Falcon::TranscoderUTF8::encoding | ( | ) | const [inline, virtual] |
Returns the character encoding which is managed by this transcoder.
Subclasses must reimplement this to return the name of the supported encoding.
Implements Falcon::Transcoder.
virtual bool Falcon::TranscoderUTF8::get | ( | uint32 & | chr | ) | [virtual] |
Gets next character from the stream.
Subclasses must manage both stateful transcoding and properly popping readahead characters from the buffer.
Implements Falcon::Stream.
virtual bool Falcon::TranscoderUTF8::put | ( | uint32 | chr | ) | [virtual] |
Writes a character on the stream.
chr | the character to write. |
Reimplemented from Falcon::Stream.