MCPcopy Index your code
hub / github.com/commonmark/cmark / cmark_node_replace

Function cmark_node_replace

src/node.c:769–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769int cmark_node_replace(cmark_node *oldnode, cmark_node *newnode) {
770 if (!cmark_node_insert_before(oldnode, newnode)) {
771 return 0;
772 }
773 cmark_node_unlink(oldnode);
774 return 1;
775}
776
777int cmark_node_prepend_child(cmark_node *node, cmark_node *child) {
778 if (!S_can_contain(node, child)) {

Callers 1

create_treeFunction · 0.85

Calls 2

cmark_node_insert_beforeFunction · 0.85
cmark_node_unlinkFunction · 0.85

Tested by

no test coverage detected