ELinks 0.16.1.1
dom_scanner_info Struct Reference

DOM scanner info. More...

#include <scanner.h>

Collaboration diagram for dom_scanner_info:

Data Fields

const struct dom_scanner_string_mappingmappings
 Table containing how to map strings to token types.
const struct dom_scan_table_infoscan_table_info
 Information for how to initialize the scanner table.
struct dom_scanner_token *(* scan )(struct dom_scanner *scanner)
 Fills the scanner with tokens.
int scan_table [DOM_SCAN_TABLE_SIZE]
 The scanner table.
unsigned int initialized:1
 Has the scanner info been initialized?

Detailed Description

DOM scanner info.

Backend-specific information used during the actual scanning and by the front end to fill the token table on-demand, etc.

Field Documentation

◆ initialized

unsigned int dom_scanner_info::initialized

Has the scanner info been initialized?

◆ mappings

const struct dom_scanner_string_mapping* dom_scanner_info::mappings

Table containing how to map strings to token types.

◆ scan

struct dom_scanner_token *(* dom_scanner_info::scan) (struct dom_scanner *scanner)

Fills the scanner with tokens.

Already scanned tokens which have not been requested remain and are moved to the start of the scanners token table. Returns the current token or NULL if there are none.

◆ scan_table

int dom_scanner_info::scan_table[DOM_SCAN_TABLE_SIZE]

The scanner table.

Contains bitmaps for the various characters groups. Idea sync'ed from mozilla browser.

◆ scan_table_info

const struct dom_scan_table_info* dom_scanner_info::scan_table_info

Information for how to initialize the scanner table.


The documentation for this struct was generated from the following file: