* xmlXPathNodeLeading: * @nodes: a node-set * @node: a node * * Implements the EXSLT - Sets leading() function: * node-set set:leading (node-set, node-set) * @nodes is sorted by document order, then #exslSetsNodeLeadingSorted * is called. * * Returns the nodes in @nodes that precede @node in document order, * @nodes if @node is NULL or an empty node-set if @nodes *
| 3728 | * doesn't contain @node |
| 3729 | */ |
| 3730 | xmlNodeSetPtr |
| 3731 | xmlXPathNodeLeading (xmlNodeSetPtr nodes, xmlNodePtr node) { |
| 3732 | xmlXPathNodeSetSort(nodes); |
| 3733 | return(xmlXPathNodeLeadingSorted(nodes, node)); |
| 3734 | } |
| 3735 | |
| 3736 | /** |
| 3737 | * xmlXPathLeadingSorted: |
nothing calls this directly
no test coverage detected