#include <tokenlist.h>
Inheritance diagram for TinyXPath::token_list:
Public Member Functions | |
token_list () | |
constructor | |
virtual | ~token_list () |
destructor | |
void | v_add_token (lexico l_in_enum, const _byte_ *bp_in_value, unsigned u_in_size) |
Adds a lexical token. | |
void | v_set_current_top () |
Set current to first real element. | |
void | v_set_current (lex_token *ltp_cur) |
Set current. | |
lex_token * | ltp_freeze () |
Return the current token. | |
lex_token * | ltp_get (int i_offset) |
Get next X linear token. | |
void | v_inc_current (int i_rel) |
Increments the linear counter. | |
void | v_replace_current (lexico lex_in, const char *cp_rep) |
Replaces the current element. | |
void | v_delete_current () |
Deletes the current element. | |
void | v_delete_next () |
Deletes the next element. | |
void | v_tokenize_expression () |
Decodes an XPath expression, further manipulating a token list On input, we have a list of basic lexical tokens. | |
Protected Attributes | |
lex_token * | ltp_first |
Pointer to first element. | |
lex_token * | ltp_last |
Pointer to last element. | |
lex_token * | ltp_current |
Pointer to current element. |
This is the output of the lexical analysis
Note that the empty list consist of a single null element in order to speed up later insertions
|
constructor
|
|
destructor
|
|
Return the current token.
|
|
Get next X linear token.
|
|
Adds a lexical token.
|
|
Deletes the current element.
|
|
Deletes the next element.
|
|
Increments the linear counter.
|
|
Replaces the current element.
|
|
Set current.
|
|
Set current to first real element.
|
|
Decodes an XPath expression, further manipulating a token list We only merge here the multiple tokens : like '::' or '!='. We also delete whitespace tokens |
|
Pointer to current element. This is for external usage : we keep track of where it is, but it's not needed to manage the list structure |
|
Pointer to first element.
|
|
Pointer to last element.
|