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

Go to the source code of this file.

Macros

#define LEXBOR_STR_RES_MAP_LOWERCASE
 
#define LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER
 
#define LEXBOR_STR_RES_MAP_HEX
 
#define LEXBOR_STR_RES_MAP_NUM
 

Functions

const lxb_tag_data_tlxb_tag_append_lower (lexbor_hash_t *hash, const lxb_char_t *name, size_t length)
 
lxb_html_token_tlxb_html_token_create (lexbor_dobject_t *dobj)
 
lxb_html_token_tlxb_html_token_destroy (lxb_html_token_t *token, lexbor_dobject_t *dobj)
 
lxb_html_token_attr_tlxb_html_token_attr_append (lxb_html_token_t *token, lexbor_dobject_t *dobj)
 
void lxb_html_token_attr_remove (lxb_html_token_t *token, lxb_html_token_attr_t *attr)
 
void lxb_html_token_attr_delete (lxb_html_token_t *token, lxb_html_token_attr_t *attr, lexbor_dobject_t *dobj)
 
lxb_status_t lxb_html_token_make_text (lxb_html_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
lxb_status_t lxb_html_token_make_text_drop_null (lxb_html_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
lxb_status_t lxb_html_token_make_text_replace_null (lxb_html_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
lxb_status_t lxb_html_token_data_skip_ws_begin (lxb_html_token_t *token)
 
lxb_status_t lxb_html_token_data_skip_one_newline_begin (lxb_html_token_t *token)
 
lxb_status_t lxb_html_token_data_split_ws_begin (lxb_html_token_t *token, lxb_html_token_t *ws_token)
 
lxb_status_t lxb_html_token_doctype_parse (lxb_html_token_t *token, lxb_dom_document_type_t *doc_type)
 
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)
 
void lxb_html_token_clean_noi (lxb_html_token_t *token)
 
lxb_html_token_tlxb_html_token_create_eof_noi (lexbor_dobject_t *dobj)
 

Macro Definition Documentation

◆ LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER

#define LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER

Definition at line 11 of file token.c.

◆ LEXBOR_STR_RES_MAP_HEX

#define LEXBOR_STR_RES_MAP_HEX

Definition at line 12 of file token.c.

◆ LEXBOR_STR_RES_MAP_LOWERCASE

#define LEXBOR_STR_RES_MAP_LOWERCASE

Definition at line 10 of file token.c.

◆ LEXBOR_STR_RES_MAP_NUM

#define LEXBOR_STR_RES_MAP_NUM

Definition at line 13 of file token.c.

Function Documentation

◆ lxb_html_token_attr_append()

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()

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()

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_noi()

void lxb_html_token_clean_noi ( lxb_html_token_t * token)

Definition at line 377 of file token.c.

◆ lxb_html_token_create()

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_noi()

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_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_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_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_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_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_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_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_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_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.

◆ lxb_tag_append_lower()

const lxb_tag_data_t * lxb_tag_append_lower ( lexbor_hash_t * hash,
const lxb_char_t * name,
size_t length )

Definition at line 41 of file tag.c.