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

Go to the source code of this file.

Data Structures

struct  lxb_dom_node_cb_ctx
 

Typedefs

typedef struct lxb_dom_node_cb_ctx lxb_dom_node_cb_ctx_t
 
typedef bool(* lxb_dom_node_attr_cmp_f) (lxb_dom_node_cb_ctx_t *ctx, lxb_dom_attr_t *attr)
 

Functions

LXB_API lxb_dom_attr_data_tlxb_dom_attr_local_name_append (lexbor_hash_t *hash, const lxb_char_t *name, size_t length)
 
LXB_API const lxb_tag_data_tlxb_tag_append (lexbor_hash_t *hash, lxb_tag_id_t tag_id, const lxb_char_t *name, size_t length)
 
LXB_API const lxb_ns_data_tlxb_ns_append (lexbor_hash_t *hash, const lxb_char_t *link, size_t length)
 
lxb_dom_node_tlxb_dom_node_interface_create (lxb_dom_document_t *document)
 
lxb_dom_node_tlxb_dom_node_interface_clone (lxb_dom_document_t *document, const lxb_dom_node_t *node, bool is_attr)
 
lxb_dom_node_tlxb_dom_node_interface_destroy (lxb_dom_node_t *node)
 
lxb_status_t lxb_dom_node_interface_copy (lxb_dom_node_t *dst, const lxb_dom_node_t *src, bool is_attr)
 
lxb_dom_node_tlxb_dom_node_destroy (lxb_dom_node_t *node)
 
lxb_dom_node_tlxb_dom_node_destroy_deep (lxb_dom_node_t *root)
 
lxb_dom_node_tlxb_dom_node_clone (lxb_dom_node_t *node, bool deep)
 
const lxb_char_tlxb_dom_node_name (lxb_dom_node_t *node, size_t *len)
 
void lxb_dom_node_insert_child_wo_events (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
void lxb_dom_node_insert_child (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
void lxb_dom_node_insert_before_wo_events (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
void lxb_dom_node_insert_before (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
void lxb_dom_node_insert_after_wo_events (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
void lxb_dom_node_insert_after (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
void lxb_dom_node_remove_wo_events (lxb_dom_node_t *node)
 
void lxb_dom_node_remove (lxb_dom_node_t *node)
 
lxb_status_t lxb_dom_node_replace_all (lxb_dom_node_t *parent, lxb_dom_node_t *node)
 
void lxb_dom_node_simple_walk (lxb_dom_node_t *root, lxb_dom_node_simple_walker_f walker_cb, void *ctx)
 
lxb_inline lxb_status_t lxb_dom_node_prepare_by_attr (lxb_dom_document_t *document, lxb_dom_node_cb_ctx_t *cb_ctx, const lxb_char_t *qname, size_t qlen)
 
lxb_inline lxb_status_t lxb_dom_node_prepare_by (lxb_dom_document_t *document, lxb_dom_node_cb_ctx_t *cb_ctx, const lxb_char_t *qname, size_t qlen)
 
lxb_status_t lxb_dom_node_by_tag_name (lxb_dom_node_t *root, lxb_dom_collection_t *collection, const lxb_char_t *qualified_name, size_t len)
 
lxb_status_t lxb_dom_node_by_class_name (lxb_dom_node_t *root, lxb_dom_collection_t *collection, const lxb_char_t *class_name, size_t len)
 
lxb_status_t lxb_dom_node_by_attr (lxb_dom_node_t *root, lxb_dom_collection_t *collection, const lxb_char_t *qualified_name, size_t qname_len, const lxb_char_t *value, size_t value_len, bool case_insensitive)
 
lxb_status_t lxb_dom_node_by_attr_begin (lxb_dom_node_t *root, lxb_dom_collection_t *collection, const lxb_char_t *qualified_name, size_t qname_len, const lxb_char_t *value, size_t value_len, bool case_insensitive)
 
lxb_status_t lxb_dom_node_by_attr_end (lxb_dom_node_t *root, lxb_dom_collection_t *collection, const lxb_char_t *qualified_name, size_t qname_len, const lxb_char_t *value, size_t value_len, bool case_insensitive)
 
lxb_status_t lxb_dom_node_by_attr_contain (lxb_dom_node_t *root, lxb_dom_collection_t *collection, const lxb_char_t *qualified_name, size_t qname_len, const lxb_char_t *value, size_t value_len, bool case_insensitive)
 
lxb_char_tlxb_dom_node_text_content (lxb_dom_node_t *node, size_t *len)
 
lxb_status_t lxb_dom_node_text_content_set (lxb_dom_node_t *node, const lxb_char_t *content, size_t len)
 
bool lxb_dom_node_is_empty (const lxb_dom_node_t *root)
 
lxb_tag_id_t lxb_dom_node_tag_id_noi (lxb_dom_node_t *node)
 
lxb_dom_node_tlxb_dom_node_next_noi (lxb_dom_node_t *node)
 
lxb_dom_node_tlxb_dom_node_prev_noi (lxb_dom_node_t *node)
 
lxb_dom_node_tlxb_dom_node_parent_noi (lxb_dom_node_t *node)
 
lxb_dom_node_tlxb_dom_node_first_child_noi (lxb_dom_node_t *node)
 
lxb_dom_node_tlxb_dom_node_last_child_noi (lxb_dom_node_t *node)
 

Typedef Documentation

◆ lxb_dom_node_attr_cmp_f

typedef bool(* lxb_dom_node_attr_cmp_f) (lxb_dom_node_cb_ctx_t *ctx, lxb_dom_attr_t *attr)

Definition at line 17 of file node.c.

◆ lxb_dom_node_cb_ctx_t

Definition at line 15 of file node.c.

Function Documentation

◆ lxb_dom_attr_local_name_append()

LXB_API lxb_dom_attr_data_t * lxb_dom_attr_local_name_append ( lexbor_hash_t * hash,
const lxb_char_t * name,
size_t length )

Definition at line 358 of file attr.c.

◆ lxb_dom_node_by_attr()

lxb_status_t lxb_dom_node_by_attr ( lxb_dom_node_t * root,
lxb_dom_collection_t * collection,
const lxb_char_t * qualified_name,
size_t qname_len,
const lxb_char_t * value,
size_t value_len,
bool case_insensitive )

Definition at line 797 of file node.c.

◆ lxb_dom_node_by_attr_begin()

lxb_status_t lxb_dom_node_by_attr_begin ( lxb_dom_node_t * root,
lxb_dom_collection_t * collection,
const lxb_char_t * qualified_name,
size_t qname_len,
const lxb_char_t * value,
size_t value_len,
bool case_insensitive )

Definition at line 833 of file node.c.

◆ lxb_dom_node_by_attr_contain()

lxb_status_t lxb_dom_node_by_attr_contain ( lxb_dom_node_t * root,
lxb_dom_collection_t * collection,
const lxb_char_t * qualified_name,
size_t qname_len,
const lxb_char_t * value,
size_t value_len,
bool case_insensitive )

Definition at line 905 of file node.c.

◆ lxb_dom_node_by_attr_end()

lxb_status_t lxb_dom_node_by_attr_end ( lxb_dom_node_t * root,
lxb_dom_collection_t * collection,
const lxb_char_t * qualified_name,
size_t qname_len,
const lxb_char_t * value,
size_t value_len,
bool case_insensitive )

Definition at line 870 of file node.c.

◆ lxb_dom_node_by_class_name()

lxb_status_t lxb_dom_node_by_class_name ( lxb_dom_node_t * root,
lxb_dom_collection_t * collection,
const lxb_char_t * class_name,
size_t len )

Definition at line 697 of file node.c.

◆ lxb_dom_node_by_tag_name()

lxb_status_t lxb_dom_node_by_tag_name ( lxb_dom_node_t * root,
lxb_dom_collection_t * collection,
const lxb_char_t * qualified_name,
size_t len )

Definition at line 626 of file node.c.

◆ lxb_dom_node_clone()

lxb_dom_node_t * lxb_dom_node_clone ( lxb_dom_node_t * node,
bool deep )

Definition at line 296 of file node.c.

◆ lxb_dom_node_destroy()

lxb_dom_node_t * lxb_dom_node_destroy ( lxb_dom_node_t * node)

Definition at line 248 of file node.c.

◆ lxb_dom_node_destroy_deep()

lxb_dom_node_t * lxb_dom_node_destroy_deep ( lxb_dom_node_t * root)

Definition at line 260 of file node.c.

◆ lxb_dom_node_first_child_noi()

lxb_dom_node_t * lxb_dom_node_first_child_noi ( lxb_dom_node_t * node)

Definition at line 1311 of file node.c.

◆ lxb_dom_node_insert_after()

void lxb_dom_node_insert_after ( lxb_dom_node_t * to,
lxb_dom_node_t * node )

Definition at line 442 of file node.c.

◆ lxb_dom_node_insert_after_wo_events()

void lxb_dom_node_insert_after_wo_events ( lxb_dom_node_t * to,
lxb_dom_node_t * node )

Definition at line 424 of file node.c.

◆ lxb_dom_node_insert_before()

void lxb_dom_node_insert_before ( lxb_dom_node_t * to,
lxb_dom_node_t * node )

Definition at line 414 of file node.c.

◆ lxb_dom_node_insert_before_wo_events()

void lxb_dom_node_insert_before_wo_events ( lxb_dom_node_t * to,
lxb_dom_node_t * node )

Definition at line 395 of file node.c.

◆ lxb_dom_node_insert_child()

void lxb_dom_node_insert_child ( lxb_dom_node_t * to,
lxb_dom_node_t * node )

Definition at line 385 of file node.c.

◆ lxb_dom_node_insert_child_wo_events()

void lxb_dom_node_insert_child_wo_events ( lxb_dom_node_t * to,
lxb_dom_node_t * node )

Definition at line 368 of file node.c.

◆ lxb_dom_node_interface_clone()

lxb_dom_node_t * lxb_dom_node_interface_clone ( lxb_dom_document_t * document,
const lxb_dom_node_t * node,
bool is_attr )

Definition at line 106 of file node.c.

◆ lxb_dom_node_interface_copy()

lxb_status_t lxb_dom_node_interface_copy ( lxb_dom_node_t * dst,
const lxb_dom_node_t * src,
bool is_attr )

Definition at line 136 of file node.c.

◆ lxb_dom_node_interface_create()

lxb_dom_node_t * lxb_dom_node_interface_create ( lxb_dom_document_t * document)

Definition at line 89 of file node.c.

◆ lxb_dom_node_interface_destroy()

lxb_dom_node_t * lxb_dom_node_interface_destroy ( lxb_dom_node_t * node)

Definition at line 124 of file node.c.

◆ lxb_dom_node_is_empty()

bool lxb_dom_node_is_empty ( const lxb_dom_node_t * root)

Definition at line 1242 of file node.c.

◆ lxb_dom_node_last_child_noi()

lxb_dom_node_t * lxb_dom_node_last_child_noi ( lxb_dom_node_t * node)

Definition at line 1317 of file node.c.

◆ lxb_dom_node_name()

const lxb_char_t * lxb_dom_node_name ( lxb_dom_node_t * node,
size_t * len )

Definition at line 302 of file node.c.

◆ lxb_dom_node_next_noi()

lxb_dom_node_t * lxb_dom_node_next_noi ( lxb_dom_node_t * node)

Definition at line 1293 of file node.c.

◆ lxb_dom_node_parent_noi()

lxb_dom_node_t * lxb_dom_node_parent_noi ( lxb_dom_node_t * node)

Definition at line 1305 of file node.c.

◆ lxb_dom_node_prepare_by()

lxb_inline lxb_status_t lxb_dom_node_prepare_by ( lxb_dom_document_t * document,
lxb_dom_node_cb_ctx_t * cb_ctx,
const lxb_char_t * qname,
size_t qlen )

Definition at line 578 of file node.c.

◆ lxb_dom_node_prepare_by_attr()

lxb_inline lxb_status_t lxb_dom_node_prepare_by_attr ( lxb_dom_document_t * document,
lxb_dom_node_cb_ctx_t * cb_ctx,
const lxb_char_t * qname,
size_t qlen )

Definition at line 530 of file node.c.

◆ lxb_dom_node_prev_noi()

lxb_dom_node_t * lxb_dom_node_prev_noi ( lxb_dom_node_t * node)

Definition at line 1299 of file node.c.

◆ lxb_dom_node_remove()

void lxb_dom_node_remove ( lxb_dom_node_t * node)

Definition at line 478 of file node.c.

◆ lxb_dom_node_remove_wo_events()

void lxb_dom_node_remove_wo_events ( lxb_dom_node_t * node)

Definition at line 452 of file node.c.

◆ lxb_dom_node_replace_all()

lxb_status_t lxb_dom_node_replace_all ( lxb_dom_node_t * parent,
lxb_dom_node_t * node )

Definition at line 488 of file node.c.

◆ lxb_dom_node_simple_walk()

void lxb_dom_node_simple_walk ( lxb_dom_node_t * root,
lxb_dom_node_simple_walker_f walker_cb,
void * ctx )

Definition at line 500 of file node.c.

◆ lxb_dom_node_tag_id_noi()

lxb_tag_id_t lxb_dom_node_tag_id_noi ( lxb_dom_node_t * node)

Definition at line 1287 of file node.c.

◆ lxb_dom_node_text_content()

lxb_char_t * lxb_dom_node_text_content ( lxb_dom_node_t * node,
size_t * len )

Definition at line 1085 of file node.c.

◆ lxb_dom_node_text_content_set()

lxb_status_t lxb_dom_node_text_content_set ( lxb_dom_node_t * node,
const lxb_char_t * content,
size_t len )

Definition at line 1198 of file node.c.

◆ lxb_ns_append()

LXB_API const lxb_ns_data_t * lxb_ns_append ( lexbor_hash_t * hash,
const lxb_char_t * link,
size_t length )

Definition at line 17 of file ns.c.

◆ lxb_tag_append()

LXB_API const lxb_tag_data_t * lxb_tag_append ( lexbor_hash_t * hash,
lxb_tag_id_t tag_id,
const lxb_char_t * name,
size_t length )

Definition at line 13 of file tag.c.