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.

Data Structures

struct  lxb_css_syntax_token_ctx_t
 

Macros

#define LXB_CSS_SYNTAX_TOKEN_RES_NAME_SHS_MAP
 
#define LEXBOR_STR_RES_MAP_HEX
 
#define LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER
 

Functions

lxb_css_syntax_token_tlxb_css_syntax_tokenizer_token (lxb_css_syntax_tokenizer_t *tkz)
 
lxb_status_t lxb_css_syntax_tokenizer_cache_push (lxb_css_syntax_tokenizer_cache_t *cache, lxb_css_syntax_token_t *value)
 
lxb_css_syntax_token_tlxb_css_syntax_token (lxb_css_syntax_tokenizer_t *tkz)
 
lxb_css_syntax_token_tlxb_css_syntax_token_next (lxb_css_syntax_tokenizer_t *tkz)
 
void lxb_css_syntax_token_consume (lxb_css_syntax_tokenizer_t *tkz)
 
void lxb_css_syntax_token_consume_n (lxb_css_syntax_tokenizer_t *tkz, unsigned count)
 
lxb_status_t lxb_css_syntax_token_string_dup (lxb_css_syntax_token_string_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
lxb_status_t lxb_css_syntax_token_string_make (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_token_t *token)
 
lxb_css_syntax_token_tlxb_css_syntax_token_cached_create (lxb_css_syntax_tokenizer_t *tkz)
 
void lxb_css_syntax_token_string_free (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_token_t *token)
 
const lxb_char_tlxb_css_syntax_token_type_name_by_id (lxb_css_syntax_token_type_t type)
 
lxb_css_syntax_token_type_t lxb_css_syntax_token_type_id_by_name (const lxb_char_t *type_name, size_t len)
 
lxb_status_t lxb_css_syntax_token_serialize (const lxb_css_syntax_token_t *token, lxb_css_syntax_token_cb_f cb, void *ctx)
 
lxb_status_t lxb_css_syntax_token_serialize_str (const lxb_css_syntax_token_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
 
lxb_char_tlxb_css_syntax_token_serialize_char (const lxb_css_syntax_token_t *token, size_t *out_length)
 
lxb_css_log_message_tlxb_css_syntax_token_error (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, const char *module_name)
 
lxb_css_syntax_token_tlxb_css_syntax_token_create_noi (lexbor_dobject_t *dobj)
 
void lxb_css_syntax_token_clean_noi (lxb_css_syntax_token_t *token)
 
lxb_css_syntax_token_tlxb_css_syntax_token_destroy_noi (lxb_css_syntax_token_t *token, lexbor_dobject_t *dobj)
 
const lxb_char_tlxb_css_syntax_token_type_name_noi (lxb_css_syntax_token_t *token)
 
lxb_css_syntax_token_type_t lxb_css_syntax_token_type_noi (lxb_css_syntax_token_t *token)
 

Macro Definition Documentation

◆ LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER

#define LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER

Definition at line 21 of file token.c.

◆ LEXBOR_STR_RES_MAP_HEX

#define LEXBOR_STR_RES_MAP_HEX

Definition at line 20 of file token.c.

◆ LXB_CSS_SYNTAX_TOKEN_RES_NAME_SHS_MAP

#define LXB_CSS_SYNTAX_TOKEN_RES_NAME_SHS_MAP

Definition at line 17 of file token.c.

Function Documentation

◆ lxb_css_syntax_token()

lxb_css_syntax_token_t * lxb_css_syntax_token ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 45 of file token.c.

◆ lxb_css_syntax_token_cached_create()

lxb_css_syntax_token_t * lxb_css_syntax_token_cached_create ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 165 of file token.c.

◆ lxb_css_syntax_token_clean_noi()

void lxb_css_syntax_token_clean_noi ( lxb_css_syntax_token_t * token)

Definition at line 626 of file token.c.

◆ lxb_css_syntax_token_consume()

void lxb_css_syntax_token_consume ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 63 of file token.c.

◆ lxb_css_syntax_token_consume_n()

void lxb_css_syntax_token_consume_n ( lxb_css_syntax_tokenizer_t * tkz,
unsigned count )

Definition at line 87 of file token.c.

◆ lxb_css_syntax_token_create_noi()

lxb_css_syntax_token_t * lxb_css_syntax_token_create_noi ( lexbor_dobject_t * dobj)

Definition at line 620 of file token.c.

◆ lxb_css_syntax_token_destroy_noi()

lxb_css_syntax_token_t * lxb_css_syntax_token_destroy_noi ( lxb_css_syntax_token_t * token,
lexbor_dobject_t * dobj )

Definition at line 632 of file token.c.

◆ lxb_css_syntax_token_error()

lxb_css_log_message_t * lxb_css_syntax_token_error ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
const char * module_name )

Definition at line 594 of file token.c.

◆ lxb_css_syntax_token_next()

lxb_css_syntax_token_t * lxb_css_syntax_token_next ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 57 of file token.c.

◆ lxb_css_syntax_token_serialize()

lxb_status_t lxb_css_syntax_token_serialize ( const lxb_css_syntax_token_t * token,
lxb_css_syntax_token_cb_f cb,
void * ctx )

Definition at line 285 of file token.c.

◆ lxb_css_syntax_token_serialize_char()

lxb_char_t * lxb_css_syntax_token_serialize_char ( const lxb_css_syntax_token_t * token,
size_t * out_length )

Definition at line 548 of file token.c.

◆ lxb_css_syntax_token_serialize_str()

lxb_status_t lxb_css_syntax_token_serialize_str ( const lxb_css_syntax_token_t * token,
lexbor_str_t * str,
lexbor_mraw_t * mraw )

Definition at line 513 of file token.c.

◆ lxb_css_syntax_token_string_dup()

lxb_status_t lxb_css_syntax_token_string_dup ( lxb_css_syntax_token_string_t * token,
lexbor_str_t * str,
lexbor_mraw_t * mraw )

Definition at line 96 of file token.c.

◆ lxb_css_syntax_token_string_free()

void lxb_css_syntax_token_string_free ( lxb_css_syntax_tokenizer_t * tkz,
lxb_css_syntax_token_t * token )

Definition at line 189 of file token.c.

◆ lxb_css_syntax_token_string_make()

lxb_status_t lxb_css_syntax_token_string_make ( lxb_css_syntax_tokenizer_t * tkz,
lxb_css_syntax_token_t * token )

Definition at line 128 of file token.c.

◆ lxb_css_syntax_token_type_id_by_name()

lxb_css_syntax_token_type_t lxb_css_syntax_token_type_id_by_name ( const lxb_char_t * type_name,
size_t len )

Definition at line 270 of file token.c.

◆ lxb_css_syntax_token_type_name_by_id()

const lxb_char_t * lxb_css_syntax_token_type_name_by_id ( lxb_css_syntax_token_type_t type)

Definition at line 207 of file token.c.

◆ lxb_css_syntax_token_type_name_noi()

const lxb_char_t * lxb_css_syntax_token_type_name_noi ( lxb_css_syntax_token_t * token)

Definition at line 639 of file token.c.

◆ lxb_css_syntax_token_type_noi()

lxb_css_syntax_token_type_t lxb_css_syntax_token_type_noi ( lxb_css_syntax_token_t * token)

Definition at line 645 of file token.c.

◆ lxb_css_syntax_tokenizer_cache_push()

lxb_status_t lxb_css_syntax_tokenizer_cache_push ( lxb_css_syntax_tokenizer_cache_t * cache,
lxb_css_syntax_token_t * value )

Definition at line 246 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_token()

lxb_css_syntax_token_t * lxb_css_syntax_tokenizer_token ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 278 of file tokenizer.c.