MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlNewDocTextLen

Function xmlNewDocTextLen

ThirdParty/libxml2/vtklibxml2/tree.c:2590–2597  ·  view source on GitHub ↗

* xmlNewDocTextLen: * @doc: the target document * @content: raw text content (optional) * @len: size of text content * * Create a new text node. * * Returns a pointer to the new node object or NULL if a memory * allocation failed. */

Source from the content-addressed store, hash-verified

2588 * allocation failed.
2589 */
2590xmlNodePtr
2591xmlNewDocTextLen(xmlDocPtr doc, const xmlChar *content, int len) {
2592 xmlNodePtr cur;
2593
2594 cur = xmlNewTextLen(content, len);
2595 if (cur != NULL) cur->doc = doc;
2596 return(cur);
2597}
2598
2599/**
2600 * xmlNewComment:

Callers 2

xmlNodeAddContentLenFunction · 0.85
xmlXIncludeCopyRangeFunction · 0.85

Calls 1

xmlNewTextLenFunction · 0.85

Tested by

no test coverage detected