#include <stdbool.h>
#include <inttypes.h>
#include <hubbub/errors.h>
#include <hubbub/functypes.h>
#include <hubbub/types.h>
#include <parserutils/input/inputstream.h>
Go to the source code of this file.
◆ hubbub_tokeniser
◆ hubbub_tokeniser_optparams
Hubbub tokeniser option parameters.
◆ hubbub_tokeniser_opttype
Hubbub tokeniser option types.
◆ hubbub_tokeniser_opttype
Hubbub tokeniser option types.
Enumerator |
---|
HUBBUB_TOKENISER_TOKEN_HANDLER | |
HUBBUB_TOKENISER_ERROR_HANDLER | |
HUBBUB_TOKENISER_CONTENT_MODEL | |
HUBBUB_TOKENISER_PROCESS_CDATA | |
HUBBUB_TOKENISER_PAUSE | |
◆ hubbub_tokeniser_create()
Create a hubbub tokeniser.
- Parameters
-
input | Input stream instance |
tokeniser | Pointer to location to receive tokeniser instance |
- Returns
- HUBBUB_OK on success, HUBBUB_BADPARM on bad parameters, HUBBUB_NOMEM on memory exhaustion
◆ hubbub_tokeniser_destroy()
Destroy a hubbub tokeniser.
- Parameters
-
tokeniser | The tokeniser instance to destroy |
- Returns
- HUBBUB_OK on success, appropriate error otherwise
◆ hubbub_tokeniser_insert_chunk()
Insert a chunk of data into the input stream.
Inserts the given data into the input stream ready for parsing but does not cause any additional processing of the input.
- Parameters
-
tokeniser | Tokeniser instance |
data | Data to insert (UTF-8 encoded) |
len | Length, in bytes, of data |
- Returns
- HUBBUB_OK on success, appropriate error otherwise
◆ hubbub_tokeniser_run()
Process remaining data in the input stream.
- Parameters
-
tokeniser | The tokeniser instance to invoke |
- Returns
- HUBBUB_OK on success, appropriate error otherwise
◆ hubbub_tokeniser_setopt()
Configure a hubbub tokeniser.
- Parameters
-
tokeniser | The tokeniser instance to configure |
type | The option type to set |
params | Option-specific parameters |
- Returns
- HUBBUB_OK on success, appropriate error otherwise