Home | History | Annotate | Download | only in libxml2

Lines Matching refs:nodes1

4456  * @nodes1:  a node-set
4462 * Returns the difference between the two node sets, or nodes1 if
4466 xmlXPathDifference (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4472 return(nodes1);
4475 if (xmlXPathNodeSetIsEmpty(nodes1))
4478 l1 = xmlXPathNodeSetGetLength(nodes1);
4481 cur = xmlXPathNodeSetItem(nodes1, i);
4492 * @nodes1: a node-set
4502 xmlXPathIntersection (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4509 if (xmlXPathNodeSetIsEmpty(nodes1))
4514 l1 = xmlXPathNodeSetGetLength(nodes1);
4517 cur = xmlXPathNodeSetItem(nodes1, i);
4590 * @nodes1: a node-set
4596 * Returns true (1) if @nodes1 shares any node with @nodes2, false (0)
4600 xmlXPathHasSameNodes (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4604 if (xmlXPathNodeSetIsEmpty(nodes1) ||
4608 l = xmlXPathNodeSetGetLength(nodes1);
4610 cur = xmlXPathNodeSetItem(nodes1, i);
4678 * @nodes1: a node-set, sorted by document order
4684 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4685 * in document order, @nodes1 if @nodes2 is NULL or empty or
4686 * an empty node-set if @nodes1 doesn't contain @nodes2
4689 xmlXPathLeadingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4691 return(nodes1);
4692 return(xmlXPathNodeLeadingSorted(nodes1,
4698 * @nodes1: a node-set
4703 * @nodes1 and @nodes2 are sorted by document order, then
4706 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4707 * in document order, @nodes1 if @nodes2 is NULL or empty or
4708 * an empty node-set if @nodes1 doesn't contain @nodes2
4711 xmlXPathLeading (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4713 return(nodes1);
4714 if (xmlXPathNodeSetIsEmpty(nodes1))
4716 xmlXPathNodeSetSort(nodes1);
4718 return(xmlXPathNodeLeadingSorted(nodes1,
4784 * @nodes1: a node-set, sorted by document order
4790 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4791 * in document order, @nodes1 if @nodes2 is NULL or empty or
4792 * an empty node-set if @nodes1 doesn't contain @nodes2
4795 xmlXPathTrailingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4797 return(nodes1);
4798 return(xmlXPathNodeTrailingSorted(nodes1,
4804 * @nodes1: a node-set
4809 * @nodes1 and @nodes2 are sorted by document order, then
4812 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4813 * in document order, @nodes1 if @nodes2 is NULL or empty or
4814 * an empty node-set if @nodes1 doesn't contain @nodes2
4817 xmlXPathTrailing (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4819 return(nodes1);
4820 if (xmlXPathNodeSetIsEmpty(nodes1))
4822 xmlXPathNodeSetSort(nodes1);
4824 return(xmlXPathNodeTrailingSorted(nodes1,