php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
selectors.c File Reference
#include "lexbor/selectors/selectors.h"
#include <math.h>

Go to the source code of this file.

Functions

lxb_selectors_tlxb_selectors_create (void)
 
lxb_status_t lxb_selectors_init (lxb_selectors_t *selectors)
 
void lxb_selectors_clean (lxb_selectors_t *selectors)
 
lxb_selectors_tlxb_selectors_destroy (lxb_selectors_t *selectors, bool self_destroy)
 
lxb_inline lxb_dom_node_tlxb_selectors_descendant (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_selectors_close (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_selectors_child (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, lxb_dom_node_t *root)
 
lxb_inline lxb_dom_node_tlxb_selectors_sibling (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_selectors_following (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, lxb_dom_node_t *node)
 
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_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_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)
 
void lxb_selectors_opt_set_noi (lxb_selectors_t *selectors, lxb_selectors_opt_t opt)
 
const lxb_css_selector_list_tlxb_selectors_selector_noi (const lxb_selectors_t *selectors)
 

Function Documentation

◆ lxb_selectors_child()

lxb_inline lxb_dom_node_t * lxb_selectors_child ( lxb_selectors_t * selectors,
lxb_selectors_entry_t * entry,
const lxb_css_selector_t * selector,
lxb_dom_node_t * root )

Definition at line 204 of file selectors.c.

◆ lxb_selectors_clean()

void lxb_selectors_clean ( lxb_selectors_t * selectors)

Definition at line 148 of file selectors.c.

◆ lxb_selectors_close()

lxb_inline lxb_dom_node_t * lxb_selectors_close ( lxb_selectors_t * selectors,
lxb_selectors_entry_t * entry,
const lxb_css_selector_t * selector,
lxb_dom_node_t * node )

Definition at line 193 of file selectors.c.

◆ lxb_selectors_create()

lxb_selectors_t * lxb_selectors_create ( void )

Definition at line 114 of file selectors.c.

◆ lxb_selectors_descendant()

lxb_inline lxb_dom_node_t * lxb_selectors_descendant ( lxb_selectors_t * selectors,
lxb_selectors_entry_t * entry,
const lxb_css_selector_t * selector,
lxb_dom_node_t * node )

Definition at line 172 of file selectors.c.

◆ lxb_selectors_destroy()

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

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 )

Definition at line 322 of file selectors.c.

◆ lxb_selectors_following()

lxb_inline lxb_dom_node_t * lxb_selectors_following ( lxb_selectors_t * selectors,
lxb_selectors_entry_t * entry,
const lxb_css_selector_t * selector,
lxb_dom_node_t * node )

Definition at line 240 of file selectors.c.

◆ lxb_selectors_init()

lxb_status_t lxb_selectors_init ( lxb_selectors_t * selectors)

Definition at line 120 of file selectors.c.

◆ lxb_selectors_match_node()

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

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

const lxb_css_selector_list_t * lxb_selectors_selector_noi ( const lxb_selectors_t * selectors)

Definition at line 1922 of file selectors.c.

◆ lxb_selectors_sibling()

lxb_inline lxb_dom_node_t * lxb_selectors_sibling ( lxb_selectors_t * selectors,
lxb_selectors_entry_t * entry,
const lxb_css_selector_t * selector,
lxb_dom_node_t * node )

Definition at line 219 of file selectors.c.