Hubbub
|
Go to the source code of this file.
Data Structures | |
struct | hubbub_entity_node |
Node in our entity tree. More... | |
Typedefs | |
typedef struct hubbub_entity_node | hubbub_entity_node |
Node in our entity tree. More... | |
Functions | |
static hubbub_error | hubbub_entity_tree_search_step (uint8_t c, uint32_t *result, int32_t *context) |
Step-wise search for a key in our entity tree. More... | |
hubbub_error | hubbub_entities_search_step (uint8_t c, uint32_t *result, int32_t *context) |
Step-wise search for an entity in the dictionary. More... | |
typedef struct hubbub_entity_node hubbub_entity_node |
Node in our entity tree.
hubbub_error hubbub_entities_search_step | ( | uint8_t | c, |
uint32_t * | result, | ||
int32_t * | context | ||
) |
Step-wise search for an entity in the dictionary.
c | Character to look for |
result | Pointer to location for result |
context | Pointer to location for search context |
The value pointed to by ::context should be -1 for the first call. Thereafter, pass in the same value as returned by the previous call. The context is opaque to the caller and should not be inspected.
The location pointed to by ::result will be set to U+FFFD unless a match is found.
Definition at line 103 of file entities.c.
References HUBBUB_BADPARM, and hubbub_entity_tree_search_step().
Referenced by hubbub_tokeniser_handle_named_entity().
|
static |
Step-wise search for a key in our entity tree.
c | Character to look for |
result | Pointer to location for result |
context | Pointer to location for search context |
The value pointed to by ::context must be NULL for the first call. Thereafter, pass in the same value as returned by the previous call. The context is opaque to the caller and should not be inspected.
The location pointed to by ::result will be set to NULL unless a match is found.
Definition at line 40 of file entities.c.
References hubbub_entity_node::eq, HUBBUB_BADPARM, HUBBUB_INVALID, HUBBUB_NEEDDATA, HUBBUB_OK, hubbub_entity_node::split, and hubbub_entity_node::value.
Referenced by hubbub_entities_search_step().