Falcon::TranscoderUTF8 Class Reference

UTF-8 encoding transcoder. More...

#include <transcoding.h>

Inheritance diagram for Falcon::TranscoderUTF8:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual FalconDataclone () 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)


Detailed Description

UTF-8 encoding transcoder.


Constructor & Destructor Documentation

Falcon::TranscoderUTF8::TranscoderUTF8 ( Stream s,
bool  bOwn = false 
) [inline]

Falcon::TranscoderUTF8::TranscoderUTF8 ( const TranscoderUTF8 other  ) 


Member Function Documentation

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.

Returns:
true if the character is available, false on stream end or error.

Implements Falcon::Stream.

virtual bool Falcon::TranscoderUTF8::put ( uint32  chr  )  [virtual]

Writes a character on the stream.

Parameters:
chr the character to write.
Returns:
true success, false on stream error.

Reimplemented from Falcon::Stream.


The documentation for this class was generated from the following file:

Generated on Mon Oct 19 10:11:48 2009 for Falcon_Core by  doxygen 1.5.8