Hubbub $Id$
Classes | Typedefs | Enumerations
types.h File Reference
#include <stdbool.h>
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  hubbub_string
 Tokeniser string type. More...
 
struct  hubbub_attribute
 Tag attribute data. More...
 
struct  hubbub_doctype
 Data for doctype token. More...
 
struct  hubbub_tag
 Data for a tag. More...
 
struct  hubbub_token
 Token data. More...
 

Typedefs

typedef enum hubbub_charset_source hubbub_charset_source
 Source of charset information, in order of importance A client-dictated charset will override all others. More...
 
typedef enum hubbub_content_model hubbub_content_model
 Content model flag. More...
 
typedef enum hubbub_quirks_mode hubbub_quirks_mode
 Quirks mode flag. More...
 
typedef enum hubbub_token_type hubbub_token_type
 Type of an emitted token. More...
 
typedef enum hubbub_ns hubbub_ns
 Possible namespaces. More...
 
typedef struct hubbub_string hubbub_string
 Tokeniser string type. More...
 
typedef struct hubbub_attribute hubbub_attribute
 Tag attribute data. More...
 
typedef struct hubbub_doctype hubbub_doctype
 Data for doctype token. More...
 
typedef struct hubbub_tag hubbub_tag
 Data for a tag. More...
 
typedef struct hubbub_token hubbub_token
 Token data. More...
 

Enumerations

enum  hubbub_charset_source { HUBBUB_CHARSET_UNKNOWN = 0 , HUBBUB_CHARSET_TENTATIVE = 1 , HUBBUB_CHARSET_CONFIDENT = 2 }
 Source of charset information, in order of importance A client-dictated charset will override all others. More...
 
enum  hubbub_content_model { HUBBUB_CONTENT_MODEL_PCDATA , HUBBUB_CONTENT_MODEL_RCDATA , HUBBUB_CONTENT_MODEL_CDATA , HUBBUB_CONTENT_MODEL_PLAINTEXT }
 Content model flag. More...
 
enum  hubbub_quirks_mode { HUBBUB_QUIRKS_MODE_NONE , HUBBUB_QUIRKS_MODE_LIMITED , HUBBUB_QUIRKS_MODE_FULL }
 Quirks mode flag. More...
 
enum  hubbub_token_type {
  HUBBUB_TOKEN_DOCTYPE , HUBBUB_TOKEN_START_TAG , HUBBUB_TOKEN_END_TAG , HUBBUB_TOKEN_COMMENT ,
  HUBBUB_TOKEN_CHARACTER , HUBBUB_TOKEN_EOF
}
 Type of an emitted token. More...
 
enum  hubbub_ns {
  HUBBUB_NS_NULL , HUBBUB_NS_HTML , HUBBUB_NS_MATHML , HUBBUB_NS_SVG ,
  HUBBUB_NS_XLINK , HUBBUB_NS_XML , HUBBUB_NS_XMLNS
}
 Possible namespaces. More...
 

Typedef Documentation

◆ hubbub_attribute

Tag attribute data.

◆ hubbub_charset_source

Source of charset information, in order of importance A client-dictated charset will override all others.

A document-specified charset will override autodetection or the default

◆ hubbub_content_model

Content model flag.

◆ hubbub_doctype

Data for doctype token.

◆ hubbub_ns

typedef enum hubbub_ns hubbub_ns

Possible namespaces.

◆ hubbub_quirks_mode

Quirks mode flag.

◆ hubbub_string

typedef struct hubbub_string hubbub_string

Tokeniser string type.

◆ hubbub_tag

typedef struct hubbub_tag hubbub_tag

Data for a tag.

◆ hubbub_token

typedef struct hubbub_token hubbub_token

Token data.

◆ hubbub_token_type

Type of an emitted token.

Enumeration Type Documentation

◆ hubbub_charset_source

Source of charset information, in order of importance A client-dictated charset will override all others.

A document-specified charset will override autodetection or the default

Enumerator
HUBBUB_CHARSET_UNKNOWN 

Unknown.

HUBBUB_CHARSET_TENTATIVE 

Charset may be changed with further data.

HUBBUB_CHARSET_CONFIDENT 

Charset definite.

◆ hubbub_content_model

Content model flag.

Enumerator
HUBBUB_CONTENT_MODEL_PCDATA 
HUBBUB_CONTENT_MODEL_RCDATA 
HUBBUB_CONTENT_MODEL_CDATA 
HUBBUB_CONTENT_MODEL_PLAINTEXT 

◆ hubbub_ns

enum hubbub_ns

Possible namespaces.

Enumerator
HUBBUB_NS_NULL 
HUBBUB_NS_HTML 
HUBBUB_NS_MATHML 
HUBBUB_NS_SVG 
HUBBUB_NS_XLINK 
HUBBUB_NS_XML 
HUBBUB_NS_XMLNS 

◆ hubbub_quirks_mode

Quirks mode flag.

Enumerator
HUBBUB_QUIRKS_MODE_NONE 
HUBBUB_QUIRKS_MODE_LIMITED 
HUBBUB_QUIRKS_MODE_FULL 

◆ hubbub_token_type

Type of an emitted token.

Enumerator
HUBBUB_TOKEN_DOCTYPE 
HUBBUB_TOKEN_START_TAG 
HUBBUB_TOKEN_END_TAG 
HUBBUB_TOKEN_COMMENT 
HUBBUB_TOKEN_CHARACTER 
HUBBUB_TOKEN_EOF