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

Function xmlXPathLeadingSorted

ThirdParty/libxml2/vtklibxml2/xpath.c:3748–3754  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

3746 * an empty node-set if @nodes1 doesn't contain @nodes2
3747 */
3748xmlNodeSetPtr
3749xmlXPathLeadingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
3750 if (xmlXPathNodeSetIsEmpty(nodes2))
3751 return(nodes1);
3752 return(xmlXPathNodeLeadingSorted(nodes1,
3753 xmlXPathNodeSetItem(nodes2, 1)));
3754}
3755
3756/**
3757 * xmlXPathLeading:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected