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

Go to the source code of this file.

Data Structures

struct  lxb_selectors_entry
 
struct  lxb_selectors_nested
 
struct  lxb_selectors
 

Typedefs

typedef lxb_status_t(* lxb_selectors_cb_f) (lxb_dom_node_t *node, lxb_css_selector_specificity_t spec, void *ctx)
 
typedef lxb_selectors_entry_t *(* lxb_selectors_state_cb_f) (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry)
 

Enumerations

enum  lxb_selectors_opt_t { LXB_SELECTORS_OPT_DEFAULT = 0x00 , LXB_SELECTORS_OPT_MATCH_ROOT = 1 << 1 , LXB_SELECTORS_OPT_MATCH_FIRST = 1 << 2 }
 

Functions

LXB_API lxb_selectors_tlxb_selectors_create (void)
 
LXB_API lxb_status_t lxb_selectors_init (lxb_selectors_t *selectors)
 
LXB_API void lxb_selectors_clean (lxb_selectors_t *selectors)
 
LXB_API lxb_selectors_tlxb_selectors_destroy (lxb_selectors_t *selectors, bool self_destroy)
 
LXB_API lxb_status_t lxb_selectors_find (lxb_selectors_t *selectors, lxb_dom_node_t *root, const lxb_css_selector_list_t *list, lxb_selectors_cb_f cb, void *ctx)
 
LXB_API lxb_status_t lxb_selectors_match_node (lxb_selectors_t *selectors, lxb_dom_node_t *node, const lxb_css_selector_list_t *list, lxb_selectors_cb_f cb, void *ctx)
 
LXB_API LXB_DEPRECATED (lxb_status_t lxb_selectors_find_reverse(lxb_selectors_t *selectors, lxb_dom_node_t *root, lxb_css_selector_list_t *list, lxb_selectors_cb_f cb, void *ctx))
 
lxb_inline void lxb_selectors_opt_set (lxb_selectors_t *selectors, lxb_selectors_opt_t opt)
 
lxb_inline const lxb_css_selector_list_tlxb_selectors_selector (const lxb_selectors_t *selectors)
 
LXB_API void lxb_selectors_opt_set_noi (lxb_selectors_t *selectors, lxb_selectors_opt_t opt)
 
LXB_API const lxb_css_selector_list_tlxb_selectors_selector_noi (const lxb_selectors_t *selectors)
 

Typedef Documentation

◆ lxb_selectors_cb_f

typedef lxb_status_t(* lxb_selectors_cb_f) (lxb_dom_node_t *node, lxb_css_selector_specificity_t spec, void *ctx)

Definition at line 65 of file selectors.h.

◆ lxb_selectors_state_cb_f

typedef lxb_selectors_entry_t *(* lxb_selectors_state_cb_f) (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry)

Definition at line 69 of file selectors.h.

Enumeration Type Documentation

◆ lxb_selectors_opt_t

Enumerator
LXB_SELECTORS_OPT_DEFAULT 
LXB_SELECTORS_OPT_MATCH_ROOT 
LXB_SELECTORS_OPT_MATCH_FIRST 

Definition at line 21 of file selectors.h.

Function Documentation

◆ LXB_DEPRECATED()

LXB_API LXB_DEPRECATED ( lxb_status_t lxb_selectors_find_reverselxb_selectors_t *selectors, lxb_dom_node_t *root, lxb_css_selector_list_t *list, lxb_selectors_cb_f cb, void *ctx)

◆ lxb_selectors_clean()

LXB_API void lxb_selectors_clean ( lxb_selectors_t * selectors)

Definition at line 309 of file selectors.c.

◆ lxb_selectors_create()

LXB_API lxb_selectors_t * lxb_selectors_create ( void )

Definition at line 114 of file selectors.c.

◆ lxb_selectors_destroy()

LXB_API lxb_selectors_t * lxb_selectors_destroy ( lxb_selectors_t * selectors,
bool self_destroy )

Definition at line 155 of file selectors.c.

◆ lxb_selectors_find()

LXB_API lxb_status_t lxb_selectors_find ( lxb_selectors_t * selectors,
lxb_dom_node_t * root,
const lxb_css_selector_list_t * list,
lxb_selectors_cb_f cb,
void * ctx )

Definition at line 259 of file selectors.c.

◆ lxb_selectors_init()

LXB_API lxb_status_t lxb_selectors_init ( lxb_selectors_t * selectors)

Definition at line 285 of file selectors.c.

◆ lxb_selectors_match_node()

LXB_API lxb_status_t lxb_selectors_match_node ( lxb_selectors_t * selectors,
lxb_dom_node_t * node,
const lxb_css_selector_list_t * list,
lxb_selectors_cb_f cb,
void * ctx )

Definition at line 286 of file selectors.c.

◆ lxb_selectors_opt_set()

lxb_inline void lxb_selectors_opt_set ( lxb_selectors_t * selectors,
lxb_selectors_opt_t opt )

Definition at line 239 of file selectors.h.

◆ lxb_selectors_opt_set_noi()

LXB_API void lxb_selectors_opt_set_noi ( lxb_selectors_t * selectors,
lxb_selectors_opt_t opt )

Definition at line 1916 of file selectors.c.

◆ lxb_selectors_selector()

lxb_inline const lxb_css_selector_list_t * lxb_selectors_selector ( const lxb_selectors_t * selectors)

Definition at line 255 of file selectors.h.

◆ lxb_selectors_selector_noi()

LXB_API const lxb_css_selector_list_t * lxb_selectors_selector_noi ( const lxb_selectors_t * selectors)

Definition at line 1922 of file selectors.c.