Utf16Lexer Class Reference

This class is used to parse UTF16 input strings. More...

#include <lexer.h>

Inheritance diagram for Utf16Lexer:

Lexer BeUtf16Lexer LeUtf16Lexer List of all members.

Public Member Functions

 Utf16Lexer (const std::string &input)
 Construct a lexer with the string of bytes to be parsed.
virtual ~Utf16Lexer ()
 Destructor is declared virtual, as it always should be.

Protected Member Functions

virtual unsigned int GetChar ()
 Gets the next unicode character from the input.
virtual unsigned int GetInt16 ()=0
 Get the next 16 bit integer value from the input.

Detailed Description

This class is used to parse UTF16 input strings.

Author:
Matthew Welch


Constructor & Destructor Documentation

Utf16Lexer::Utf16Lexer ( const std::string &  input  )  [inline]

Construct a lexer with the string of bytes to be parsed.

Parameters:
input The string of input bytes to be parsed.

virtual Utf16Lexer::~Utf16Lexer (  )  [inline, virtual]

Destructor is declared virtual, as it always should be.


Member Function Documentation

virtual unsigned int Utf16Lexer::GetChar (  )  [protected, virtual]

Gets the next unicode character from the input.

Returns:
Unicode value as unsigned int.

Implements Lexer.

virtual unsigned int Utf16Lexer::GetInt16 (  )  [protected, pure virtual]

Get the next 16 bit integer value from the input.

Implemented in BeUtf16Lexer, and LeUtf16Lexer.


The documentation for this class was generated from the following file:
Generated on Wed Apr 18 15:50:12 2007 for JSON Parser by  doxygen 1.5.2