php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "lexbor/selectors/base.h"
#include "lexbor/dom/dom.h"
#include "lexbor/css/selectors/selectors.h"
#include "lexbor/core/array_obj.h"
#include <libxml/tree.h>
Go to the source code of this file.
Data Structures | |
struct | lxb_selectors_adapted_id |
struct | lxb_selectors_entry |
struct | lxb_selectors_nested |
struct | lxb_selectors |
Typedefs | |
typedef struct lxb_selectors | lxb_selectors_t |
typedef struct lxb_selectors_entry | lxb_selectors_entry_t |
typedef struct lxb_selectors_nested | lxb_selectors_nested_t |
typedef lxb_status_t(* | lxb_selectors_cb_f) (const xmlNode *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 , LXB_SELECTORS_OPT_QUIRKS_MODE = 1 << 3 } |
Functions | |
LXB_API lxb_status_t | lxb_selectors_init (lxb_selectors_t *selectors) |
LXB_API void | lxb_selectors_clean (lxb_selectors_t *selectors) |
LXB_API void | lxb_selectors_destroy (lxb_selectors_t *selectors) |
LXB_API 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_API 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) |
lxb_inline void | lxb_selectors_opt_set (lxb_selectors_t *selectors, lxb_selectors_opt_t opt) |
lxb_inline const lxb_css_selector_list_t * | lxb_selectors_selector (const lxb_selectors_t *selectors) |
typedef lxb_status_t(* lxb_selectors_cb_f) (const xmlNode *node, lxb_css_selector_specificity_t spec, void *ctx) |
Definition at line 70 of file selectors.h.
typedef struct lxb_selectors_entry lxb_selectors_entry_t |
Definition at line 67 of file selectors.h.
typedef struct lxb_selectors_nested lxb_selectors_nested_t |
Definition at line 68 of file selectors.h.
typedef lxb_selectors_entry_t *(* lxb_selectors_state_cb_f) (lxb_selectors_t *selectors, lxb_selectors_entry_t *entry) |
Definition at line 74 of file selectors.h.
typedef struct lxb_selectors lxb_selectors_t |
Definition at line 66 of file selectors.h.
enum lxb_selectors_opt_t |
Enumerator | |
---|---|
LXB_SELECTORS_OPT_DEFAULT | |
LXB_SELECTORS_OPT_MATCH_ROOT | |
LXB_SELECTORS_OPT_MATCH_FIRST | |
LXB_SELECTORS_OPT_QUIRKS_MODE |
Definition at line 23 of file selectors.h.
LXB_API void lxb_selectors_clean | ( | lxb_selectors_t * | selectors | ) |
Definition at line 309 of file selectors.c.
LXB_API void lxb_selectors_destroy | ( | lxb_selectors_t * | selectors | ) |
Definition at line 316 of file selectors.c.
LXB_API 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_API lxb_status_t lxb_selectors_init | ( | lxb_selectors_t * | selectors | ) |
Definition at line 285 of file selectors.c.
LXB_API 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_inline void lxb_selectors_opt_set | ( | lxb_selectors_t * | selectors, |
lxb_selectors_opt_t | opt ) |
Definition at line 230 of file selectors.h.
lxb_inline const lxb_css_selector_list_t * lxb_selectors_selector | ( | const lxb_selectors_t * | selectors | ) |
Definition at line 246 of file selectors.h.