php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
selectors.c File Reference
#include <libxml/xmlstring.h>
#include <libxml/dict.h>
#include <Zend/zend.h>
#include <Zend/zend_operators.h>
#include <Zend/zend_API.h>
#include <php.h>
#include "lexbor/selectors-adapted/selectors.h"
#include "../../../namespace_compat.h"
#include "../../../domexception.h"
#include "../../../php_dom.h"
#include <math.h>

Go to the source code of this file.

Data Structures

struct  dom_lxb_str_wrapper
 

Macros

#define CMP_NODE_TYPE(node, ty)
 

Typedefs

typedef struct dom_lxb_str_wrapper dom_lxb_str_wrapper
 

Functions

lxb_status_t lxb_selectors_init (lxb_selectors_t *selectors)
 
void lxb_selectors_clean (lxb_selectors_t *selectors)
 
void lxb_selectors_destroy (lxb_selectors_t *selectors)
 
lxb_inline const xmlNode * lxb_selectors_descendant (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, const xmlNode *node)
 
lxb_inline const xmlNode * lxb_selectors_close (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, const xmlNode *node)
 
lxb_inline const xmlNode * lxb_selectors_child (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, const xmlNode *root)
 
lxb_inline const xmlNode * lxb_selectors_sibling (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, const xmlNode *node)
 
lxb_inline const xmlNode * lxb_selectors_following (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry, const lxb_css_selector_t *selector, const xmlNode *node)
 
lxb_status_t lxb_selectors_find (lxb_selectors_t *selectors, const xmlNode *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, const xmlNode *node, const lxb_css_selector_list_t *list, lxb_selectors_cb_f cb, void *ctx)
 

Macro Definition Documentation

◆ CMP_NODE_TYPE

#define CMP_NODE_TYPE ( node,
ty )
Value:
((unsigned char) (node)->type == ty)

Definition at line 24 of file selectors.c.

Typedef Documentation

◆ dom_lxb_str_wrapper

typedef struct dom_lxb_str_wrapper dom_lxb_str_wrapper

Function Documentation

◆ lxb_selectors_child()

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

Definition at line 355 of file selectors.c.

◆ lxb_selectors_clean()

void lxb_selectors_clean ( lxb_selectors_t * selectors)

Definition at line 309 of file selectors.c.

◆ lxb_selectors_close()

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

Definition at line 344 of file selectors.c.

◆ lxb_selectors_descendant()

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

Definition at line 323 of file selectors.c.

◆ lxb_selectors_destroy()

void lxb_selectors_destroy ( lxb_selectors_t * selectors)

Definition at line 316 of file selectors.c.

◆ lxb_selectors_find()

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

Definition at line 410 of file selectors.c.

◆ lxb_selectors_following()

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

Definition at line 391 of file selectors.c.

◆ lxb_selectors_init()

lxb_status_t lxb_selectors_init ( lxb_selectors_t * selectors)

Definition at line 285 of file selectors.c.

◆ lxb_selectors_match_node()

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

Definition at line 434 of file selectors.c.

◆ lxb_selectors_sibling()

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

Definition at line 370 of file selectors.c.