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

Function xmlTextReaderGetSuccessor

ThirdParty/libxml2/vtklibxml2/xmlreader.c:1137–1147  ·  view source on GitHub ↗

* xmlTextReaderGetSuccessor: * @cur: the current node * * Get the successor of a node if available. * * Returns the successor node or NULL */

Source from the content-addressed store, hash-verified

1135 * Returns the successor node or NULL
1136 */
1137static xmlNodePtr
1138xmlTextReaderGetSuccessor(xmlNodePtr cur) {
1139 if (cur == NULL) return(NULL) ; /* ERROR */
1140 if (cur->next != NULL) return(cur->next) ;
1141 do {
1142 cur = cur->parent;
1143 if (cur == NULL) break;
1144 if (cur->next != NULL) return(cur->next);
1145 } while (cur != NULL);
1146 return(cur);
1147}
1148
1149/**
1150 * xmlTextReaderDoExpand:

Callers 1

xmlTextReaderDoExpandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected