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

Function xmlXPathTrailingSorted

ThirdParty/libxml2/vtklibxml2/xpath.c:3856–3862  ·  view source on GitHub ↗

* xmlXPathTrailingSorted: * @nodes1: a node-set, sorted by document order * @nodes2: a node-set, sorted by document order * * Implements the EXSLT - Sets trailing() function: * node-set set:trailing (node-set, node-set) * * Returns the nodes in @nodes1 that follow the first node in @nodes2 * in document order, @nodes1 if @nodes2 is NULL or empty or * an empty node-set

Source from the content-addressed store, hash-verified

3854 * an empty node-set if @nodes1 doesn't contain @nodes2
3855 */
3856xmlNodeSetPtr
3857xmlXPathTrailingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
3858 if (xmlXPathNodeSetIsEmpty(nodes2))
3859 return(nodes1);
3860 return(xmlXPathNodeTrailingSorted(nodes1,
3861 xmlXPathNodeSetItem(nodes2, 0)));
3862}
3863
3864/**
3865 * xmlXPathTrailing:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected