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

Function xmlIsBlankNode

ThirdParty/libxml2/vtklibxml2/tree.c:7053–7069  ·  view source on GitHub ↗

* xmlIsBlankNode: * @node: the node * * Checks whether this node is an empty or whitespace only * (and possibly ignorable) text-node. * * Returns 1 yes, 0 no */

Source from the content-addressed store, hash-verified

7051 * Returns 1 yes, 0 no
7052 */
7053int
7054xmlIsBlankNode(const xmlNode *node) {
7055 const xmlChar *cur;
7056 if (node == NULL) return(0);
7057
7058 if ((node->type != XML_TEXT_NODE) &&
7059 (node->type != XML_CDATA_SECTION_NODE))
7060 return(0);
7061 if (node->content == NULL) return(1);
7062 cur = node->content;
7063 while (*cur != 0) {
7064 if (!IS_BLANK_CH(*cur)) return(0);
7065 cur++;
7066 }
7067
7068 return(1);
7069}
7070
7071/**
7072 * xmlTextConcat:

Callers 5

xmlValidateSkipIgnorableFunction · 0.85
xmlSnprintfElementsFunction · 0.85
xmlTextReaderNodeTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected