ELinks 0.16.1.1
|
DOM scanner. More...
#include <scanner.h>
Data Fields | |
char * | string |
The start of the scanned string. | |
char * | end |
The end of the scanned string. | |
char * | position |
The current position in the sstring being scanned. | |
struct dom_scanner_token * | current |
The current token. | |
int | tokens |
The number of scanned tokens left in the table. | |
struct dom_scanner_info * | info |
The 'meta' scanner information. | |
unsigned int | check_complete:1 |
Only generate complete tokens. | |
unsigned int | incomplete:1 |
The scanned string is incomplete. | |
unsigned int | detect_errors:1 |
Check for markup errors. | |
unsigned int | found_error |
Did we already report this error? | |
unsigned int | count_lines:1 |
Is line counting enbaled? | |
unsigned int | lineno |
Line # of the last scanned token. | |
int | state |
Some state indicator only meaningful to the scanner internals. | |
struct dom_scanner_token | table [DOM_SCANNER_TOKENS] |
Token table. |
DOM scanner.
Holds the current state of the scanner.
unsigned int dom_scanner::check_complete |
Only generate complete tokens.
unsigned int dom_scanner::count_lines |
Is line counting enbaled?
struct dom_scanner_token* dom_scanner::current |
The current token.
If the number of scanned tokens is less than DOM_SCANNER_TOKENS it is because there are no more tokens in the string.
unsigned int dom_scanner::detect_errors |
Check for markup errors.
char* dom_scanner::end |
The end of the scanned string.
unsigned int dom_scanner::found_error |
Did we already report this error?
unsigned int dom_scanner::incomplete |
The scanned string is incomplete.
struct dom_scanner_info* dom_scanner::info |
The 'meta' scanner information.
unsigned int dom_scanner::lineno |
Line # of the last scanned token.
char* dom_scanner::position |
The current position in the sstring being scanned.
The position in the string where to scan next and the end of the string. If position is NULL it means that no more tokens can be retrieved from the string.
int dom_scanner::state |
Some state indicator only meaningful to the scanner internals.
char* dom_scanner::string |
The start of the scanned string.
struct dom_scanner_token dom_scanner::table[DOM_SCANNER_TOKENS] |
Token table.
The table contain already scanned tokens. It is maintained in order to optimize the scanning a bit and make it possible to look ahead at the next token. You should always use the accessors (defined below) for getting tokens from the scanner.
int dom_scanner::tokens |
The number of scanned tokens left in the table.