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

Go to the source code of this file.

Data Structures

struct  lxb_css_syntax_list_rules_offset_t
 
struct  lxb_css_syntax_at_rule_offset_t
 
struct  lxb_css_syntax_qualified_offset_t
 
struct  lxb_css_syntax_declarations_offset_t
 
struct  lxb_css_syntax_cb_base_t
 
struct  lxb_css_syntax_cb_declarations_t
 
struct  lxb_css_syntax_cb_list_rules_t
 
struct  lxb_css_syntax_rule
 

Typedefs

typedef struct lxb_css_syntax_rule lxb_css_syntax_rule_t
 
typedef const lxb_css_syntax_token_t *(* lxb_css_syntax_state_f) (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, lxb_css_syntax_rule_t *rule)
 
typedef lxb_status_t(* lxb_css_syntax_declaration_end_f) (lxb_css_parser_t *parser, void *ctx, bool important, bool failed)
 
typedef lxb_status_t(* lxb_css_syntax_cb_done_f) (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx, bool failed)
 
typedef lxb_css_syntax_cb_base_t lxb_css_syntax_cb_pipe_t
 
typedef lxb_css_syntax_cb_base_t lxb_css_syntax_cb_block_t
 
typedef lxb_css_syntax_cb_base_t lxb_css_syntax_cb_function_t
 
typedef lxb_css_syntax_cb_base_t lxb_css_syntax_cb_components_t
 
typedef lxb_css_syntax_cb_base_t lxb_css_syntax_cb_at_rule_t
 
typedef lxb_css_syntax_cb_base_t lxb_css_syntax_cb_qualified_rule_t
 

Functions

LXB_API lxb_status_t lxb_css_syntax_parse_list_rules (lxb_css_parser_t *parser, const lxb_css_syntax_cb_list_rules_t *cb, const lxb_char_t *data, size_t length, void *ctx, bool top_level)
 
LXB_API lxb_status_t lxb_css_syntax_stack_expand (lxb_css_parser_t *parser, size_t count)
 
LXB_API void lxb_css_syntax_codepoint_to_ascii (lxb_css_syntax_tokenizer_t *tkz, lxb_codepoint_t cp)
 
LXB_API lxb_status_t lxb_css_syntax_ident_serialize (const lxb_char_t *data, size_t length, lexbor_serialize_cb_f cb, void *ctx)
 
LXB_API lxb_status_t lxb_css_syntax_string_serialize (const lxb_char_t *data, size_t length, lexbor_serialize_cb_f cb, void *ctx)
 
LXB_API lxb_status_t lxb_css_syntax_ident_or_string_serialize (const lxb_char_t *data, size_t length, lexbor_serialize_cb_f cb, void *ctx)
 

Typedef Documentation

◆ lxb_css_syntax_cb_at_rule_t

Definition at line 79 of file syntax.h.

◆ lxb_css_syntax_cb_block_t

Definition at line 76 of file syntax.h.

◆ lxb_css_syntax_cb_components_t

◆ lxb_css_syntax_cb_done_f

typedef lxb_status_t(* lxb_css_syntax_cb_done_f) (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx, bool failed)

Definition at line 28 of file syntax.h.

◆ lxb_css_syntax_cb_function_t

◆ lxb_css_syntax_cb_pipe_t

Definition at line 75 of file syntax.h.

◆ lxb_css_syntax_cb_qualified_rule_t

◆ lxb_css_syntax_declaration_end_f

typedef lxb_status_t(* lxb_css_syntax_declaration_end_f) (lxb_css_parser_t *parser, void *ctx, bool important, bool failed)

Definition at line 24 of file syntax.h.

◆ lxb_css_syntax_rule_t

Definition at line 17 of file syntax.h.

◆ lxb_css_syntax_state_f

typedef const lxb_css_syntax_token_t *(* lxb_css_syntax_state_f) (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, lxb_css_syntax_rule_t *rule)

Definition at line 19 of file syntax.h.

Function Documentation

◆ lxb_css_syntax_codepoint_to_ascii()

LXB_API void lxb_css_syntax_codepoint_to_ascii ( lxb_css_syntax_tokenizer_t * tkz,
lxb_codepoint_t cp )

Definition at line 92 of file syntax.c.

◆ lxb_css_syntax_ident_or_string_serialize()

LXB_API lxb_status_t lxb_css_syntax_ident_or_string_serialize ( const lxb_char_t * data,
size_t length,
lexbor_serialize_cb_f cb,
void * ctx )

Definition at line 263 of file syntax.c.

◆ lxb_css_syntax_ident_serialize()

LXB_API lxb_status_t lxb_css_syntax_ident_serialize ( const lxb_char_t * data,
size_t length,
lexbor_serialize_cb_f cb,
void * ctx )

Definition at line 145 of file syntax.c.

◆ lxb_css_syntax_parse_list_rules()

LXB_API lxb_status_t lxb_css_syntax_parse_list_rules ( lxb_css_parser_t * parser,
const lxb_css_syntax_cb_list_rules_t * cb,
const lxb_char_t * data,
size_t length,
void * ctx,
bool top_level )

Definition at line 26 of file syntax.c.

◆ lxb_css_syntax_stack_expand()

LXB_API lxb_status_t lxb_css_syntax_stack_expand ( lxb_css_parser_t * parser,
size_t count )

Definition at line 67 of file syntax.c.

◆ lxb_css_syntax_string_serialize()

LXB_API lxb_status_t lxb_css_syntax_string_serialize ( const lxb_char_t * data,
size_t length,
lexbor_serialize_cb_f cb,
void * ctx )

Definition at line 187 of file syntax.c.