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

Function xmlTextAddContent

ThirdParty/libxml2/vtklibxml2/tree.c:3027–3040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3025}
3026
3027static int
3028xmlTextAddContent(xmlNodePtr text, const xmlChar *content, int len) {
3029 xmlChar *merged;
3030
3031 if (content == NULL)
3032 return(0);
3033
3034 merged = xmlStrncatNew(text->content, content, len);
3035 if (merged == NULL)
3036 return(-1);
3037
3038 xmlTextSetContent(text, merged);
3039 return(0);
3040}
3041
3042static xmlNodePtr
3043xmlInsertProp(xmlDocPtr doc, xmlNodePtr cur, xmlNodePtr parent,

Callers 6

xmlInsertNodeFunction · 0.85
xmlAddChildListFunction · 0.85
xmlAddChildFunction · 0.85
xmlNodeAddContentLenFunction · 0.85
xmlTextMergeFunction · 0.85
xmlTextConcatFunction · 0.85

Calls 2

xmlStrncatNewFunction · 0.85
xmlTextSetContentFunction · 0.85

Tested by

no test coverage detected