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

Function xmlXPathDistinct

ThirdParty/libxml2/vtklibxml2/xpath.c:3637–3644  ·  view source on GitHub ↗

* xmlXPathDistinct: * @nodes: a node-set * * Implements the EXSLT - Sets distinct() function: * node-set set:distinct (node-set) * @nodes is sorted by document order, then #exslSetsDistinctSorted * is called with the sorted node-set * * Returns a subset of the nodes contained in @nodes, or @nodes if * it is empty */

Source from the content-addressed store, hash-verified

3635 * it is empty
3636 */
3637xmlNodeSetPtr
3638xmlXPathDistinct (xmlNodeSetPtr nodes) {
3639 if (xmlXPathNodeSetIsEmpty(nodes))
3640 return(nodes);
3641
3642 xmlXPathNodeSetSort(nodes);
3643 return(xmlXPathDistinctSorted(nodes));
3644}
3645
3646/**
3647 * xmlXPathHasSameNodes:

Callers

nothing calls this directly

Calls 2

xmlXPathNodeSetSortFunction · 0.85
xmlXPathDistinctSortedFunction · 0.85

Tested by

no test coverage detected