8 #ifndef hubbub_tokeniser_tokeniser_h_
9 #define hubbub_tokeniser_tokeniser_h_
18 #include <parserutils/input/inputstream.h>
69 const uint8_t *data,
size_t len);
hubbub_token_handler handler
struct hubbub_tokeniser_optparams::@11 content_model
Current content model.
hubbub_content_model model
struct hubbub_tokeniser_optparams::@10 error_handler
Error handling callback.
hubbub_error hubbub_tokeniser_setopt(hubbub_tokeniser *tokeniser, hubbub_tokeniser_opttype type, hubbub_tokeniser_optparams *params)
Configure a hubbub tokeniser.
hubbub_error hubbub_tokeniser_run(hubbub_tokeniser *tokeniser)
Process remaining data in the input stream.
Tokeniser data structure.
hubbub_error_handler handler
Hubbub tokeniser option parameters.
struct hubbub_tokeniser_optparams::@9 token_handler
Token handling callback.
hubbub_error(* hubbub_token_handler)(const hubbub_token *token, void *pw)
Type of token handling function.
hubbub_error hubbub_tokeniser_insert_chunk(hubbub_tokeniser *tokeniser, const uint8_t *data, size_t len)
Insert a chunk of data into the input stream.
bool pause_parse
Pause parsing.
bool process_cdata
Whether to process CDATA sections.
void(* hubbub_error_handler)(uint32_t line, uint32_t col, const char *message, void *pw)
Type of parse error handling function.
hubbub_content_model
Content model flag.
hubbub_error hubbub_tokeniser_destroy(hubbub_tokeniser *tokeniser)
Destroy a hubbub tokeniser.
union hubbub_tokeniser_optparams hubbub_tokeniser_optparams
Hubbub tokeniser option parameters.
hubbub_tokeniser_opttype
Hubbub tokeniser option types.
hubbub_error hubbub_tokeniser_create(parserutils_inputstream *input, hubbub_tokeniser **tokeniser)
Create a hubbub tokeniser.