MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_xml_create_node

Function acl_xml_create_node

lib_acl/src/xml/acl_xml_util.c:326–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326ACL_XML_NODE *acl_xml_create_node(ACL_XML *xml, const char* tag,
327 const char* text)
328{
329 ACL_XML_NODE *node = acl_xml_node_alloc(xml);
330
331 acl_assert(tag && *tag);
332 acl_vstring_strcpy(node->ltag, tag);
333 xml->space += LEN(node->ltag);
334 if (text && *text) {
335 escape_copy(node->text, text, xml);
336 xml->space += LEN(node->text);
337 }
338
339 return node;
340}
341
342ACL_XML_NODE *acl_xml_create_node_with_text_stream(ACL_XML *xml,
343 const char *tag, ACL_VSTREAM *in, size_t off, size_t len)

Callers 2

build_xml2Function · 0.85
xml1.cppFile · 0.85

Calls 3

acl_xml_node_allocFunction · 0.85
acl_vstring_strcpyFunction · 0.85
escape_copyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…