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

Go to the source code of this file.

Data Structures

struct  lxb_dom_node
 

Typedefs

typedef lexbor_action_t(* lxb_dom_node_simple_walker_f) (lxb_dom_node_t *node, void *ctx)
 

Enumerations

enum  lxb_dom_node_type_t {
  LXB_DOM_NODE_TYPE_UNDEF = 0x00 , LXB_DOM_NODE_TYPE_ELEMENT = 0x01 , LXB_DOM_NODE_TYPE_ATTRIBUTE = 0x02 , LXB_DOM_NODE_TYPE_TEXT = 0x03 ,
  LXB_DOM_NODE_TYPE_CDATA_SECTION = 0x04 , LXB_DOM_NODE_TYPE_ENTITY_REFERENCE = 0x05 , LXB_DOM_NODE_TYPE_ENTITY = 0x06 , LXB_DOM_NODE_TYPE_PROCESSING_INSTRUCTION = 0x07 ,
  LXB_DOM_NODE_TYPE_COMMENT = 0x08 , LXB_DOM_NODE_TYPE_DOCUMENT = 0x09 , LXB_DOM_NODE_TYPE_DOCUMENT_TYPE = 0x0A , LXB_DOM_NODE_TYPE_DOCUMENT_FRAGMENT = 0x0B ,
  LXB_DOM_NODE_TYPE_NOTATION = 0x0C , LXB_DOM_NODE_TYPE_LAST_ENTRY = 0x0D
}
 

Functions

LXB_API lxb_dom_node_tlxb_dom_node_interface_create (lxb_dom_document_t *document)
 
LXB_API lxb_dom_node_tlxb_dom_node_interface_clone (lxb_dom_document_t *document, const lxb_dom_node_t *node, bool is_attr)
 
LXB_API lxb_dom_node_tlxb_dom_node_interface_destroy (lxb_dom_node_t *node)
 
LXB_API lxb_status_t lxb_dom_node_interface_copy (lxb_dom_node_t *dst, const lxb_dom_node_t *src, bool is_attr)
 
LXB_API lxb_dom_node_tlxb_dom_node_destroy (lxb_dom_node_t *node)
 
LXB_API lxb_dom_node_tlxb_dom_node_destroy_deep (lxb_dom_node_t *root)
 
LXB_API lxb_dom_node_tlxb_dom_node_clone (lxb_dom_node_t *node, bool deep)
 
LXB_API const lxb_char_tlxb_dom_node_name (lxb_dom_node_t *node, size_t *len)
 
LXB_API void lxb_dom_node_insert_child_wo_events (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_insert_child (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_insert_before_wo_events (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_insert_before (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_insert_after_wo_events (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_insert_after (lxb_dom_node_t *to, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_remove_wo_events (lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_remove (lxb_dom_node_t *node)
 
LXB_API lxb_status_t lxb_dom_node_replace_all (lxb_dom_node_t *parent, lxb_dom_node_t *node)
 
LXB_API void lxb_dom_node_simple_walk (lxb_dom_node_t *root, lxb_dom_node_simple_walker_f walker_cb, void *ctx)
 
LXB_API 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_API 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_API 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_API 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_API 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_API 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_API lxb_char_tlxb_dom_node_text_content (lxb_dom_node_t *node, size_t *len)
 
LXB_API lxb_status_t lxb_dom_node_text_content_set (lxb_dom_node_t *node, const lxb_char_t *content, size_t len)
 
LXB_API bool lxb_dom_node_is_empty (const lxb_dom_node_t *root)
 
lxb_inline lxb_tag_id_t lxb_dom_node_tag_id (lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_dom_node_next (lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_dom_node_prev (lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_dom_node_parent (lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_dom_node_first_child (lxb_dom_node_t *node)
 
lxb_inline lxb_dom_node_tlxb_dom_node_last_child (lxb_dom_node_t *node)
 
LXB_API lxb_tag_id_t lxb_dom_node_tag_id_noi (lxb_dom_node_t *node)
 
LXB_API lxb_dom_node_tlxb_dom_node_next_noi (lxb_dom_node_t *node)
 
LXB_API lxb_dom_node_tlxb_dom_node_prev_noi (lxb_dom_node_t *node)
 
LXB_API lxb_dom_node_tlxb_dom_node_parent_noi (lxb_dom_node_t *node)
 
LXB_API lxb_dom_node_tlxb_dom_node_first_child_noi (lxb_dom_node_t *node)
 
LXB_API lxb_dom_node_tlxb_dom_node_last_child_noi (lxb_dom_node_t *node)
 

Typedef Documentation

◆ lxb_dom_node_simple_walker_f

typedef lexbor_action_t(* lxb_dom_node_simple_walker_f) (lxb_dom_node_t *node, void *ctx)

Definition at line 19 of file node.h.

Enumeration Type Documentation

◆ lxb_dom_node_type_t

Enumerator
LXB_DOM_NODE_TYPE_UNDEF 
LXB_DOM_NODE_TYPE_ELEMENT 
LXB_DOM_NODE_TYPE_ATTRIBUTE 
LXB_DOM_NODE_TYPE_TEXT 
LXB_DOM_NODE_TYPE_CDATA_SECTION 
LXB_DOM_NODE_TYPE_ENTITY_REFERENCE 
LXB_DOM_NODE_TYPE_ENTITY 
LXB_DOM_NODE_TYPE_PROCESSING_INSTRUCTION 
LXB_DOM_NODE_TYPE_COMMENT 
LXB_DOM_NODE_TYPE_DOCUMENT 
LXB_DOM_NODE_TYPE_DOCUMENT_TYPE 
LXB_DOM_NODE_TYPE_DOCUMENT_FRAGMENT 
LXB_DOM_NODE_TYPE_NOTATION 
LXB_DOM_NODE_TYPE_LAST_ENTRY 

Definition at line 23 of file node.h.

Function Documentation

◆ lxb_dom_node_by_attr()

LXB_API 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_API 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_API 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_API 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_API 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_API 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_API 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_API 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_API 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()

lxb_inline lxb_dom_node_t * lxb_dom_node_first_child ( lxb_dom_node_t * node)

Definition at line 200 of file node.h.

◆ lxb_dom_node_first_child_noi()

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

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

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

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

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

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

LXB_API 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_API 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_API 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_API 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_API 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()

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

lxb_inline lxb_dom_node_t * lxb_dom_node_last_child ( lxb_dom_node_t * node)

Definition at line 206 of file node.h.

◆ lxb_dom_node_last_child_noi()

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

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

lxb_inline lxb_dom_node_t * lxb_dom_node_next ( lxb_dom_node_t * node)

Definition at line 182 of file node.h.

◆ lxb_dom_node_next_noi()

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

lxb_inline lxb_dom_node_t * lxb_dom_node_parent ( lxb_dom_node_t * node)

Definition at line 194 of file node.h.

◆ lxb_dom_node_parent_noi()

LXB_API 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_prev()

lxb_inline lxb_dom_node_t * lxb_dom_node_prev ( lxb_dom_node_t * node)

Definition at line 188 of file node.h.

◆ lxb_dom_node_prev_noi()

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

LXB_API void lxb_dom_node_remove ( lxb_dom_node_t * node)

Definition at line 478 of file node.c.

◆ lxb_dom_node_remove_wo_events()

LXB_API 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_API 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()

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

lxb_inline lxb_tag_id_t lxb_dom_node_tag_id ( lxb_dom_node_t * node)

Definition at line 176 of file node.h.

◆ lxb_dom_node_tag_id_noi()

LXB_API 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_API 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_API 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.