|
Hubbub $Id$
|
Context for tokeniser. More...
Public Attributes | ||
| size_t | pending | |
| Count of pending chars. | ||
| hubbub_string | current_comment | |
| Current comment text. | ||
| hubbub_token_type | current_tag_type | |
| Type of current_tag. | ||
| hubbub_tag | current_tag | |
| Current tag. | ||
| hubbub_doctype | current_doctype | |
| Current doctype. | ||
| hubbub_tokeniser_state | prev_state | |
| Previous state. | ||
| uint8_t | last_start_tag_name [10] | |
| Name of the last start tag emitted. | ||
| size_t | last_start_tag_len | |
| Length of last start tag. | ||
| struct { | ||
| uint32_t count | ||
| bool match | ||
| } | close_tag_match | |
| State for matching close tags. | ||
| struct { | ||
| uint32_t count | ||
| Index into "DOCTYPE". More... | ||
| } | match_doctype | |
| State for matching doctype. | ||
| struct { | ||
| uint32_t count | ||
| Index into "[CDATA[". More... | ||
| uint32_t end | ||
| Index into "]]>". More... | ||
| } | match_cdata | |
| State for matching cdata. | ||
| struct { | ||
| size_t offset | ||
| Offset in buffer. More... | ||
| uint32_t length | ||
| Length of entity. More... | ||
| uint32_t codepoint | ||
| UCS4 codepoint. More... | ||
| bool complete | ||
| True if match complete. More... | ||
| uint32_t poss_length | ||
| Optimistic length when matching named character references. More... | ||
| uint8_t base | ||
| Base for numeric entities. More... | ||
| int32_t context | ||
| Context for named entity search. More... | ||
| size_t prev_len | ||
| Previous byte length of str. More... | ||
| bool had_data | ||
| Whether we read anything after &#(x)? More... | ||
| bool overflow | ||
| Whether this entity has has overflowed the maximum numeric entity value. More... | ||
| hubbub_tokeniser_state return_state | ||
| State we were called from. More... | ||
| } | match_entity | |
| Entity matching state. | ||
| struct { | ||
| uint32_t line | ||
| Current line of input. More... | ||
| uint32_t col | ||
| Current character in line. More... | ||
| } | position | |
| Position in source data. | ||
| uint32_t | allowed_char | |
| Used for quote matching. | ||
Context for tokeniser.
| uint32_t hubbub_tokeniser_context::allowed_char |
Used for quote matching.
| uint8_t hubbub_tokeniser_context::base |
Base for numeric entities.
| struct { ... } hubbub_tokeniser_context::close_tag_match |
State for matching close tags.
| uint32_t hubbub_tokeniser_context::codepoint |
UCS4 codepoint.
| uint32_t hubbub_tokeniser_context::col |
Current character in line.
| bool hubbub_tokeniser_context::complete |
True if match complete.
| int32_t hubbub_tokeniser_context::context |
Context for named entity search.
| uint32_t hubbub_tokeniser_context::count |
Index into "DOCTYPE".
Index into "[CDATA[".
| hubbub_string hubbub_tokeniser_context::current_comment |
Current comment text.
| hubbub_doctype hubbub_tokeniser_context::current_doctype |
Current doctype.
| hubbub_tag hubbub_tokeniser_context::current_tag |
Current tag.
| hubbub_token_type hubbub_tokeniser_context::current_tag_type |
Type of current_tag.
| uint32_t hubbub_tokeniser_context::end |
Index into "]]>".
| bool hubbub_tokeniser_context::had_data |
Whether we read anything after &#(x)?
| size_t hubbub_tokeniser_context::last_start_tag_len |
Length of last start tag.
| uint8_t hubbub_tokeniser_context::last_start_tag_name[10] |
Name of the last start tag emitted.
| uint32_t hubbub_tokeniser_context::length |
Length of entity.
| uint32_t hubbub_tokeniser_context::line |
Current line of input.
| bool hubbub_tokeniser_context::match |
| struct { ... } hubbub_tokeniser_context::match_cdata |
State for matching cdata.
| struct { ... } hubbub_tokeniser_context::match_doctype |
State for matching doctype.
| struct { ... } hubbub_tokeniser_context::match_entity |
Entity matching state.
| size_t hubbub_tokeniser_context::offset |
Offset in buffer.
| bool hubbub_tokeniser_context::overflow |
Whether this entity has has overflowed the maximum numeric entity value.
| size_t hubbub_tokeniser_context::pending |
Count of pending chars.
| struct { ... } hubbub_tokeniser_context::position |
Position in source data.
| uint32_t hubbub_tokeniser_context::poss_length |
Optimistic length when matching named character references.
| size_t hubbub_tokeniser_context::prev_len |
Previous byte length of str.
| hubbub_tokeniser_state hubbub_tokeniser_context::prev_state |
Previous state.
| hubbub_tokeniser_state hubbub_tokeniser_context::return_state |
State we were called from.