Hubbub $Id$
Classes | Typedefs | Functions
entities.c File Reference
#include "utils/utils.h"
#include "tokeniser/entities.h"
#include "entities.inc"

Classes

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

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 Documentation

◆ hubbub_entity_node

Node in our entity tree.

Function Documentation

◆ hubbub_entities_search_step()

hubbub_error hubbub_entities_search_step ( uint8_t  c,
uint32_t *  result,
int32_t *  context 
)

Step-wise search for an entity in the dictionary.

Parameters
cCharacter to look for
resultPointer to location for result
contextPointer to location for search context
Returns
HUBBUB_OK if key found, HUBBUB_NEEDDATA if more steps are required HUBBUB_INVALID if nothing matches

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.