lestes::lang::cplus::lex::encoder_utf8 Class Reference

UTF-8 encoder. More...

#include <encoder_utf8.hh>

Inheritance diagram for lestes::lang::cplus::lex::encoder_utf8:

Inheritance graph
List of all members.

Public Member Functions

ptr< ucn_tokenread (void)
 Reads next token.

Static Public Member Functions

static ptr< encoder_utf8create (void)
 Returns new instance.

Protected Member Functions

 encoder_utf8 (void)
 Creates the object.
virtual void gc_mark (void)
 Marks the object.

Private Member Functions

 encoder_utf8 (const encoder_utf8 &)
 Hides copy constructor.
encoder_utf8operator= (const encoder_utf8 &)
 Hides assignment operator.

Detailed Description

UTF-8 encoder.

Performs UTF8 character set encoding.

Constructor & Destructor Documentation

lestes::lang::cplus::lex::encoder_utf8::encoder_utf8 ( void   )  [protected]

Creates the object.

Creates the object.

bad == NULL

lestes::lang::cplus::lex::encoder_utf8::encoder_utf8 ( const encoder_utf8  )  [private]

Hides copy constructor.

Member Function Documentation

ptr< ucn_token > lestes::lang::cplus::lex::encoder_utf8::read ( void   )  [virtual]

Reads next token.

Reads next token. Performs encoding from UTF-8 character set. Checks whether the input contains valid characters. If error is encountered, it returns token with type ucn_token::TOK_ERROR.

Input into the filter is set.
The next token encoded from 7 bit ASCII.

Token with type ucn_token::TOK_ERROR if the source character is invalid.

Token with type ucn_token::TOK_EOF in case of previous error.

Implements lestes::lang::cplus::lex::ucn_filter.

ptr< encoder_utf8 > lestes::lang::cplus::lex::encoder_utf8::create ( void   )  [static]

Returns new instance.

Returns new instance of the encoder.

The new instance.

void lestes::lang::cplus::lex::encoder_utf8::gc_mark ( void   )  [protected, virtual]

Marks the object.

Marks the object.

Reimplemented from lestes::lang::cplus::lex::ucn_filter.

encoder_utf8& lestes::lang::cplus::lex::encoder_utf8::operator= ( const encoder_utf8  )  [private]

Hides assignment operator.

The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:43:41 2007 for lestes by doxygen 1.5.1-20070107