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

Function xmlXPathNodeLeading

ThirdParty/libxml2/vtklibxml2/xpath.c:3730–3734  ·  view source on GitHub ↗

* 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 *

Source from the content-addressed store, hash-verified

3728 * doesn't contain @node
3729 */
3730xmlNodeSetPtr
3731xmlXPathNodeLeading (xmlNodeSetPtr nodes, xmlNodePtr node) {
3732 xmlXPathNodeSetSort(nodes);
3733 return(xmlXPathNodeLeadingSorted(nodes, node));
3734}
3735
3736/**
3737 * xmlXPathLeadingSorted:

Callers

nothing calls this directly

Calls 2

xmlXPathNodeSetSortFunction · 0.85

Tested by

no test coverage detected