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

Function xmlTextSetContent

ThirdParty/libxml2/vtklibxml2/tree.c:3011–3025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3009#endif /* LIBXML_TREE_ENABLED */
3010
3011static void
3012xmlTextSetContent(xmlNodePtr text, xmlChar *content) {
3013 if ((text->content != NULL) &&
3014 (text->content != (xmlChar *) &text->properties)) {
3015 xmlDocPtr doc = text->doc;
3016
3017 if ((doc == NULL) ||
3018 (doc->dict == NULL) ||
3019 (!xmlDictOwns(doc->dict, text->content)))
3020 xmlFree(text->content);
3021 }
3022
3023 text->content = content;
3024 text->properties = NULL;
3025}
3026
3027static int
3028xmlTextAddContent(xmlNodePtr text, const xmlChar *content, int len) {

Callers 3

xmlTextAddContentFunction · 0.85
xmlInsertNodeFunction · 0.85

Calls 1

xmlDictOwnsFunction · 0.85

Tested by

no test coverage detected