* xmlXPathLeadingSorted: * @nodes1: a node-set, sorted by document order * @nodes2: a node-set, sorted by document order * * Implements the EXSLT - Sets leading() function: * node-set set:leading (node-set, node-set) * * Returns the nodes in @nodes1 that precede the first node in @nodes2 * in document order, @nodes1 if @nodes2 is NULL or empty or * an empty node-set i
| 3746 | * an empty node-set if @nodes1 doesn't contain @nodes2 |
| 3747 | */ |
| 3748 | xmlNodeSetPtr |
| 3749 | xmlXPathLeadingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) { |
| 3750 | if (xmlXPathNodeSetIsEmpty(nodes2)) |
| 3751 | return(nodes1); |
| 3752 | return(xmlXPathNodeLeadingSorted(nodes1, |
| 3753 | xmlXPathNodeSetItem(nodes2, 1))); |
| 3754 | } |
| 3755 | |
| 3756 | /** |
| 3757 | * xmlXPathLeading: |
nothing calls this directly
no test coverage detected