* xmlIsBlankNode: * @node: the node * * Checks whether this node is an empty or whitespace only * (and possibly ignorable) text-node. * * Returns 1 yes, 0 no */
| 7051 | * Returns 1 yes, 0 no |
| 7052 | */ |
| 7053 | int |
| 7054 | xmlIsBlankNode(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: |
no outgoing calls
no test coverage detected