Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

strmod::xml::utf8::Lexer Class Reference

Finds tokens and reports them, and their positions to a Builder. More...

#include <xml/utf8/Lexer.h>

List of all members.

Public Methods

 Lexer ()
 Constructs a Lexer in the between tag, not in a comment state.

bool getNonWSInElements () const
 Does the lexer consider non-whitespace inside of elements (between tags) to be an error?

void setNonWSInElements (bool nonwsok)
 Tell the lexer whether or not non-whitespace inside of elements (between tags) is an error.

bool lex (const char *buf, unsigned int len, Builder::BufHandle &lastbuf, Builder &builder)
 Process the UTF-8 encoded characters in buf, calling the builder at the appropriate points.


Detailed Description

Finds tokens and reports them, and their positions to a Builder.

Definition at line 25 of file Lexer.h.


Member Function Documentation

bool strmod::xml::utf8::Lexer::lex const char *    buf,
unsigned int    len,
Builder::BufHandle   lastbuf,
Builder   builder
 

Process the UTF-8 encoded characters in buf, calling the builder at the appropriate points.

Parameters:
buf A pointer to an array of characters to process.
len The number of characters in the array pointed to by buf.
lastbuf IN: A buffer handle to identify which call of lex a particular token started in / OUT: The earlist buffer handle still being used internally by the Lexer.
builder The builder to call when tokens are encountered.
Returns:
true if Lexer is storing no BufHandles, and lastbuf contains a valid BufHandle, false if it isn't.


The documentation for this class was generated from the following file:
Generated on Wed Jan 29 00:32:58 2003 for libNet by doxygen1.3-rc1