* 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 */
| 3635 | * it is empty |
| 3636 | */ |
| 3637 | xmlNodeSetPtr |
| 3638 | xmlXPathDistinct (xmlNodeSetPtr nodes) { |
| 3639 | if (xmlXPathNodeSetIsEmpty(nodes)) |
| 3640 | return(nodes); |
| 3641 | |
| 3642 | xmlXPathNodeSetSort(nodes); |
| 3643 | return(xmlXPathDistinctSorted(nodes)); |
| 3644 | } |
| 3645 | |
| 3646 | /** |
| 3647 | * xmlXPathHasSameNodes: |
nothing calls this directly
no test coverage detected