php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
token.h File Reference

Go to the source code of this file.

Data Structures

struct  lxb_html_token_t
 

Typedefs

typedef int lxb_html_token_type_t
 

Enumerations

enum  lxb_html_token_type {
  LXB_HTML_TOKEN_TYPE_OPEN = 0x0000 , LXB_HTML_TOKEN_TYPE_CLOSE = 0x0001 , LXB_HTML_TOKEN_TYPE_CLOSE_SELF = 0x0002 , LXB_HTML_TOKEN_TYPE_FORCE_QUIRKS = 0x0004 ,
  LXB_HTML_TOKEN_TYPE_DONE = 0x0008
}
 

Functions

LXB_API lxb_html_token_tlxb_html_token_create (lexbor_dobject_t *dobj)
 
LXB_API lxb_html_token_tlxb_html_token_destroy (lxb_html_token_t *token, lexbor_dobject_t *dobj)
 
LXB_API lxb_html_token_attr_tlxb_html_token_attr_append (lxb_html_token_t *token, lexbor_dobject_t *dobj)
 
LXB_API void lxb_html_token_attr_remove (lxb_html_token_t *token, lxb_html_token_attr_t *attr)
 
LXB_API void lxb_html_token_attr_delete (lxb_html_token_t *token, lxb_html_token_attr_t *attr, lexbor_dobject_t *dobj)
 
LXB_API lxb_status_t lxb_html_token_make_text (lxb_html_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
LXB_API lxb_status_t lxb_html_token_make_text_drop_null (lxb_html_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
LXB_API lxb_status_t lxb_html_token_make_text_replace_null (lxb_html_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
LXB_API lxb_status_t lxb_html_token_data_skip_ws_begin (lxb_html_token_t *token)
 
LXB_API lxb_status_t lxb_html_token_data_skip_one_newline_begin (lxb_html_token_t *token)
 
LXB_API lxb_status_t lxb_html_token_data_split_ws_begin (lxb_html_token_t *token, lxb_html_token_t *ws_token)
 
LXB_API lxb_status_t lxb_html_token_doctype_parse (lxb_html_token_t *token, lxb_dom_document_type_t *doc_type)
 
LXB_API lxb_html_token_attr_tlxb_html_token_find_attr (lxb_html_tokenizer_t *tkz, lxb_html_token_t *token, const lxb_char_t *name, size_t name_len)
 
lxb_inline void lxb_html_token_clean (lxb_html_token_t *token)
 
lxb_inline lxb_html_token_tlxb_html_token_create_eof (lexbor_dobject_t *dobj)
 
LXB_API void lxb_html_token_clean_noi (lxb_html_token_t *token)
 
LXB_API lxb_html_token_tlxb_html_token_create_eof_noi (lexbor_dobject_t *dobj)
 

Typedef Documentation

◆ lxb_html_token_type_t

typedef int lxb_html_token_type_t

Definition at line 22 of file token.h.

Enumeration Type Documentation

◆ lxb_html_token_type

Enumerator
LXB_HTML_TOKEN_TYPE_OPEN 
LXB_HTML_TOKEN_TYPE_CLOSE 
LXB_HTML_TOKEN_TYPE_CLOSE_SELF 
LXB_HTML_TOKEN_TYPE_FORCE_QUIRKS 
LXB_HTML_TOKEN_TYPE_DONE 

Definition at line 25 of file token.h.

Function Documentation

◆ lxb_html_token_attr_append()

LXB_API lxb_html_token_attr_t * lxb_html_token_attr_append ( lxb_html_token_t * token,
lexbor_dobject_t * dobj )

Definition at line 37 of file token.c.

◆ lxb_html_token_attr_delete()

LXB_API void lxb_html_token_attr_delete ( lxb_html_token_t * token,
lxb_html_token_attr_t * attr,
lexbor_dobject_t * dobj )

Definition at line 83 of file token.c.

◆ lxb_html_token_attr_remove()

LXB_API void lxb_html_token_attr_remove ( lxb_html_token_t * token,
lxb_html_token_attr_t * attr )

Definition at line 60 of file token.c.

◆ lxb_html_token_clean()

lxb_inline void lxb_html_token_clean ( lxb_html_token_t * token)

Definition at line 106 of file token.h.

◆ lxb_html_token_clean_noi()

LXB_API void lxb_html_token_clean_noi ( lxb_html_token_t * token)

Definition at line 377 of file token.c.

◆ lxb_html_token_create()

LXB_API lxb_html_token_t * lxb_html_token_create ( lexbor_dobject_t * dobj)

Definition at line 25 of file token.c.

◆ lxb_html_token_create_eof()

lxb_inline lxb_html_token_t * lxb_html_token_create_eof ( lexbor_dobject_t * dobj)

Definition at line 112 of file token.h.

◆ lxb_html_token_create_eof_noi()

LXB_API lxb_html_token_t * lxb_html_token_create_eof_noi ( lexbor_dobject_t * dobj)

Definition at line 383 of file token.c.

◆ lxb_html_token_data_skip_one_newline_begin()

LXB_API lxb_status_t lxb_html_token_data_skip_one_newline_begin ( lxb_html_token_t * token)

Definition at line 215 of file token.c.

◆ lxb_html_token_data_skip_ws_begin()

LXB_API lxb_status_t lxb_html_token_data_skip_ws_begin ( lxb_html_token_t * token)

Definition at line 179 of file token.c.

◆ lxb_html_token_data_split_ws_begin()

LXB_API lxb_status_t lxb_html_token_data_split_ws_begin ( lxb_html_token_t * token,
lxb_html_token_t * ws_token )

Definition at line 232 of file token.c.

◆ lxb_html_token_destroy()

LXB_API lxb_html_token_t * lxb_html_token_destroy ( lxb_html_token_t * token,
lexbor_dobject_t * dobj )

Definition at line 31 of file token.c.

◆ lxb_html_token_doctype_parse()

LXB_API lxb_status_t lxb_html_token_doctype_parse ( lxb_html_token_t * token,
lxb_dom_document_type_t * doc_type )

Definition at line 259 of file token.c.

◆ lxb_html_token_find_attr()

LXB_API lxb_html_token_attr_t * lxb_html_token_find_attr ( lxb_html_tokenizer_t * tkz,
lxb_html_token_t * token,
const lxb_char_t * name,
size_t name_len )

Definition at line 351 of file token.c.

◆ lxb_html_token_make_text()

LXB_API lxb_status_t lxb_html_token_make_text ( lxb_html_token_t * token,
lexbor_str_t * str,
lexbor_mraw_t * mraw )

Definition at line 91 of file token.c.

◆ lxb_html_token_make_text_drop_null()

LXB_API lxb_status_t lxb_html_token_make_text_drop_null ( lxb_html_token_t * token,
lexbor_str_t * str,
lexbor_mraw_t * mraw )

Definition at line 110 of file token.c.

◆ lxb_html_token_make_text_replace_null()

LXB_API lxb_status_t lxb_html_token_make_text_replace_null ( lxb_html_token_t * token,
lexbor_str_t * str,
lexbor_mraw_t * mraw )

Definition at line 141 of file token.c.