From 7b30a5520cfb56e651f0eb4da85a3e07747da7dc Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 23 Jun 2007 22:40:25 +0000 Subject: Import hubbub -- an HTML parsing library. Plenty of work still to do (like tree generation ;) svn path=/trunk/hubbub/; revision=3359 --- src/tokeniser/entities.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/tokeniser/entities.h (limited to 'src/tokeniser/entities.h') diff --git a/src/tokeniser/entities.h b/src/tokeniser/entities.h new file mode 100644 index 0000000..efd1987 --- /dev/null +++ b/src/tokeniser/entities.h @@ -0,0 +1,25 @@ +/* + * This file is part of Hubbub. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell + */ + +#ifndef hubbub_tokeniser_entities_h_ +#define hubbub_tokeniser_entities_h_ + +#include + +#include +#include + +/* Create the entities dictionary */ +hubbub_error hubbub_entities_create(hubbub_alloc alloc, void *pw); +/* Destroy the entities dictionary */ +void hubbub_entities_destroy(hubbub_alloc alloc, void *pw); + +/* Step-wise search for an entity in the dictionary */ +hubbub_error hubbub_entities_search_step(uint8_t c, uint32_t *result, + void **context); + +#endif -- cgit v1.2.3