Home | History | Annotate | Download | only in libxml2

Lines Matching refs:nodes1

4388  * @nodes1:  a node-set
4394 * Returns the difference between the two node sets, or nodes1 if
4398 xmlXPathDifference (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4404 return(nodes1);
4407 if (xmlXPathNodeSetIsEmpty(nodes1))
4410 l1 = xmlXPathNodeSetGetLength(nodes1);
4413 cur = xmlXPathNodeSetItem(nodes1, i);
4422 * @nodes1: a node-set
4432 xmlXPathIntersection (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4439 if (xmlXPathNodeSetIsEmpty(nodes1))
4444 l1 = xmlXPathNodeSetGetLength(nodes1);
4447 cur = xmlXPathNodeSetItem(nodes1, i);
4517 * @nodes1: a node-set
4523 * Returns true (1) if @nodes1 shares any node with @nodes2, false (0)
4527 xmlXPathHasSameNodes (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4531 if (xmlXPathNodeSetIsEmpty(nodes1) ||
4535 l = xmlXPathNodeSetGetLength(nodes1);
4537 cur = xmlXPathNodeSetItem(nodes1, i);
4604 * @nodes1: a node-set, sorted by document order
4610 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4611 * in document order, @nodes1 if @nodes2 is NULL or empty or
4612 * an empty node-set if @nodes1 doesn't contain @nodes2
4615 xmlXPathLeadingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4617 return(nodes1);
4618 return(xmlXPathNodeLeadingSorted(nodes1,
4624 * @nodes1: a node-set
4629 * @nodes1 and @nodes2 are sorted by document order, then
4632 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4633 * in document order, @nodes1 if @nodes2 is NULL or empty or
4634 * an empty node-set if @nodes1 doesn't contain @nodes2
4637 xmlXPathLeading (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4639 return(nodes1);
4640 if (xmlXPathNodeSetIsEmpty(nodes1))
4642 xmlXPathNodeSetSort(nodes1);
4644 return(xmlXPathNodeLeadingSorted(nodes1,
4709 * @nodes1: a node-set, sorted by document order
4715 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4716 * in document order, @nodes1 if @nodes2 is NULL or empty or
4717 * an empty node-set if @nodes1 doesn't contain @nodes2
4720 xmlXPathTrailingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4722 return(nodes1);
4723 return(xmlXPathNodeTrailingSorted(nodes1,
4729 * @nodes1: a node-set
4734 * @nodes1 and @nodes2 are sorted by document order, then
4737 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4738 * in document order, @nodes1 if @nodes2 is NULL or empty or
4739 * an empty node-set if @nodes1 doesn't contain @nodes2
4742 xmlXPathTrailing (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4744 return(nodes1);
4745 if (xmlXPathNodeSetIsEmpty(nodes1))
4747 xmlXPathNodeSetSort(nodes1);
4749 return(xmlXPathNodeTrailingSorted(nodes1,