Home | History | Annotate | Download | only in libxml2

Lines Matching defs:in

72  * Use the Timsort algorithm provided in timsort.h to sort
74 * used in xmlXPathNodeSetSort()
83 * xmlXPathOrderDocElems() was called in order to index the elements of
84 * a tree in document order; Libxslt does such an indexing, thus it will
92 * in a way, that it stop evaluation at the first node.
106 * number of step operation in the compiled expression. 1000000 is
126 * circumstances, one would first need to construct an in memory tree
147 * Returns -2 in case of error 1 if first point < second point, 0 if
165 * a couple of optimizations which will avoid computations in most cases
202 precedence1 = 3; /* element in prev-sibl axis */
256 precedence2 = 3; /* element in prev-sibl axis */
395 /* should not happen but just in case ... */
443 * Returns -2 in case of error -1 if first point < second point, 0 if
623 "?? Unknown error ??\n" /* Must be last in the list! */
779 * TODO: Since such a list-handling is used in xmlschemas.c and libxslt
823 * Returns a xsltPointerList structure or NULL in case of an error.
943 int nbStep; /* Number of steps in this expression */
946 int last; /* index of last step in expression */
986 * Returns the newly allocated xmlXPathCompExprPtr or NULL in case of error
1085 * Returns -1 in case of failure, the index otherwise
1143 * Swaps 2 operations in the compiled expression
1152 * disabled if one detects that the library is used in a multithreaded
1430 fprintf(output, "Object is a point : index %d in node", cur->index);
1440 fprintf(output, "index %d in ", cur->index);
1449 fprintf(output, "index %d in ", cur->index);
1456 fprintf(output, "index %d in ", cur->index2);
2194 * look out for namespace nodes in the node-set.
2288 * Wrap the Nodeset @val in a new xmlXPathObjectPtr
3033 * in ISO-Latin or UTF-8.
3044 * in UTF-8 mode. It also pop-up unfinished entities on the fly.
3135 LOWER_DOUBLE_EXP is max number of leading zeroes in fraction
3150 * In either case, result is in work, and after_fraction points
3219 * Like for line information, the order is kept in the element->content
3223 * Returns the number of elements found in the document or -1 in case
3270 * Returns -2 in case of error 1 if first point < second point, 0 if
3283 * a couple of optimizations which will avoid computations in most cases
3299 /* not required, but we keep attributes in order */
3375 /* should not happen but just in case ... */
3414 * Sort the node set in document order
3464 * Namespace node in libxml don't match the XPath semantic. In a node set
3466 * parent node in the XPath semantic.
3499 * @ns: the XPath namespace node found in a nodeset.
3501 * Namespace nodes in libxml don't match the XPath semantic. In a node set
3503 * parent node in the XPath semantic. Check if such a node needs to be freed
3635 * Returns 0 in case of success and -1 in case of error
3699 * Returns 0 in case of success, and -1 in case of error
3759 * when we are sure the node is not already in the set.
3761 * Returns 0 in case of success and -1 in case of failure
3815 * Returns @val1 once extended or NULL in case of error.
3829 * TODO: The optimization won't work in every case, since
3834 * some temporary nodes are in, that would be helpfull.
3936 * Returns @set1 once extended or NULL in case of error.
4049 * Returns @set1 once extended or NULL in case of error.
4134 * find node in nodeTab
4142 "xmlXPathNodeSetDel: Node %s wasn't found in NodeList\n",
4416 * Wrap the Nodeset @val in a new xmlXPathObjectPtr
4442 * Free up the xmlXPathObjectPtr @obj but don't deallocate the objects in
4533 * Returns a subset of the nodes contained in @nodes, or @nodes if
4576 * Returns a subset of the nodes contained in @nodes, or @nodes if
4625 * Returns the nodes in @nodes that precede @node in document order,
4666 * Returns the nodes in @nodes that precede @node in 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
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
4730 * Returns the nodes in @nodes that follow @node in document order,
4772 * Returns the nodes in @nodes that follow @node in 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
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
4842 * Returns 0 in case of success, -1 in case of error
4859 * Returns 0 in case of success, -1 in case of error
4901 * Search in the Function array of the context for the given
4929 * Search in the Function array of the context for the given
4990 * Returns 0 in case of success, -1 in case of error
5008 * Returns 0 in case of success, -1 in case of error
5053 * Search in the Variable array of the context for the given
5079 * Search in the Variable array of the context for the given
5131 * Returns 0 in case of success, -1 in case of error
5159 * Search in the namespace declaration array of the context for the given
5519 * XPath object or stores it in the cache.
5756 * Returns the allocated string value of the object, NULL in case of error.
6466 * then the comparison will be true if and only if there is a node in the
6522 * then the comparison will be true if and only if there is a node in
6571 * will be true if and only if there is a node in the first node-set
6572 * and a node in the second node-set such that the result of performing
6718 * then the comparison will be true if and only if there is a node in
6776 * then the comparison will be true if and only if there is a node in
6836 * will be true if and only if there is a node in the first node-set and
6837 * a node in the second node-set such that the result of performing the
7629 * Used for merging node sets in xmlXPathCollectAndTest().
7638 * @cur: the current node in the traversal
7656 * @cur: the current node in the traversal
7659 * The child axis contains the children of the context node in document order.
7707 * @cur: the current node in the traversal
7710 * The child axis contains the children of the context node in document order.
7783 * @cur: the current node in the traversal
7860 * @cur: the current node in the traversal
7863 * the descendant axis contains the descendants of the context node in document
7923 * @cur: the current node in the traversal
7927 * of the context node in document order; thus the context node is the first
7951 * @cur: the current node in the traversal
8020 * @cur: the current node in the traversal
8025 * parent and so on; the nodes are ordered in reverse document order; thus the
8145 * @cur: the current node in the traversal
8149 * the context node in reverse document order; thus the context node is
8166 * @cur: the current node in the traversal
8170 * node in document order.
8190 * @cur: the current node in the traversal
8194 * node in reverse document order; the first preceding sibling is first on the
8220 * @cur: the current node in the traversal
8223 * The following axis contains all nodes in the same document as the context
8224 * node that are after the context node in document order, excluding any
8226 * are ordered in document order
8271 /* nodes need to be in the same document */
8287 * @cur: the current node in the traversal
8290 * the preceding axis contains all nodes in the same document as the context
8291 * node that are before the context node in document order, excluding any
8293 * ordered in reverse document order
8330 * @cur: the current node in the traversal
8333 * the preceding axis contains all nodes in the same document as the context
8334 * node that are before the context node in document order, excluding any
8336 * ordered in reverse document order
8338 * state kept in the parser context: ctxt->ancestor.
8378 * @cur: the current attribute in the traversal
8419 * @cur: the current attribute in the traversal
8486 * The last function returns the number of nodes in the context node list.
8511 * The position function returns the position of the context node in the
8644 * string value of each of the nodes in the argument node-set. When the
8649 * containing the elements in the same document as the context node that
8650 * have a unique ID equal to any of the tokens in the list.
8667 * FIXME -- in an out-of-memory condition this will behave badly.
8669 * ctxt, so the object is in a corrupt state.
8702 * of the name of the node in the argument node-set that is first in
8729 int i = 0; /* Should be first in document order !!!!! */
8760 * namespace URI of the expanded name of the node in the argument
8761 * node-set that is first in document order. If the node-set is empty,
8787 int i = 0; /* Should be first in document order !!!!! */
8812 * the name of the node in the argument node-set that is first in document
8814 * declarations in effect on the node whose name is being represented.
8815 * Typically, this will be the form in which the name occurred in the XML
8817 * in effect on the node that associate multiple prefixes with the same
8819 * the original prefix in its representation of nodes; in this case, an
8821 * as the QName used in the XML source. If the argument it omitted it
8847 int i = 0; /* Should be first in document order !!!!! */
8894 * the node in the node-set that is first in document order.
8902 * + if the number is an integer, the number is represented in
8905 * + otherwise, the number is represented in decimal form as a
8946 * The string-length returns the number of characters in the string
8948 * the context node converted to a string, in other words the value
9101 * starting at the position specified in the second argument with
9102 * length specified in the third argument. For example,
9105 * in the second argument and continuing to the end of the string. For
9107 * character in the string (see [3.6 Strings]) is considered to have a
9124 double le=0, in;
9148 in = start->floatval;
9160 if (in < 1.0)
9161 in = 1.0;
9168 if (!xmlXPathIsInf(in) && !xmlXPathIsNaN(in + le)) {
9177 i = (int) in;
9178 if (((double)i)+0.5 <= in) i++;
9226 * argument string in the first argument string, or the empty string
9268 * argument string in the first argument string, or the empty stringi
9314 * in XML. If the argument is omitted, it defaults to the context
9315 * node converted to a string, in other words the value of the context node.
9375 * occurrences of characters in the second argument string replaced
9376 * by the character at the corresponding position in the third argument
9378 * BAr. If there is a character in the second argument string with no
9379 * character at a corresponding position in the third argument string
9381 * string), then occurrences of that character in the first argument
9383 * returns "AAA". If a character occurs more than once in second
9422 /* Step to next character in input */
9612 * The sum function returns the sum of the values of the nodes in
9777 * bytes in the input buffer.
9846 * input encoding didn't get properly advertised in the
9871 const xmlChar *in;
9879 in = ctxt->cur;
9880 if (((*in >= 0x61) && (*in <= 0x7A)) ||
9881 ((*in >= 0x41) && (*in <= 0x5A)) ||
9882 (*in == '_')) {
9883 in++;
9884 while (((*in >= 0x61) && (*in <= 0x7A)) ||
9885 ((*in >= 0x41) && (*in <= 0x5A)) ||
9886 ((*in >= 0x30) && (*in <= 0x39)) ||
9887 (*in == '_') || (*in == '.') ||
9888 (*in == '-'))
9889 in++;
9890 if ((*in == ' ') || (*in == '>') || (*in == '/') ||
9891 (*in == '[') || (*in == ']') || (*in == ':') ||
9892 (*in == '@') || (*in == '*')) {
9893 count = in - ctxt->cur;
9897 ctxt->cur = in;
9952 const xmlChar *in;
9960 in = ctxt->cur;
9961 if (((*in >= 0x61) && (*in <= 0x7A)) ||
9962 ((*in >= 0x41) && (*in <= 0x5A)) ||
9963 (*in == '_') || (*in == ':')) {
9964 in++;
9965 while (((*in >= 0x61) && (*in <= 0x7A)) ||
9966 ((*in >= 0x41) && (*in <= 0x5A)) ||
9967 ((*in >= 0x30) && (*in <= 0x39)) ||
9968 (*in == '_') || (*in == '-') ||
9969 (*in == ':') || (*in == '.'))
9970 in++;
9971 if ((*in > 0) && (*in < 0x80)) {
9972 count = in - ctxt->cur;
9974 ctxt->cur = in;
9978 ctxt->cur = in;
10083 * Compile a Number in the string
10084 * In complement of the Number expression, this function also handles
10271 * Returns the value found or NULL in case of error
10539 * Square brackets are used to filter expressions in the same way that
10540 * they are used in location paths. It is an error if the expression to
10542 * used for evaluating the expression in square brackets is the node-set
10543 * to be filtered listed in document order.
10565 * Needed to avoid insanity in the parser state.
10621 * The / operator does composition in the same way as when / is
10622 * used in a location path. As in location paths, // is short for
10653 * - a function call in which case it's followed by '('
10654 * - an axis in which case it's followed by ':'
11073 * a filter can only diminish the number of items in a sequence,
11320 * Compile one step in a Location Path
11322 * particularly useful in conjunction with //. For example, the
11534 * so will select any para element in the document (even a para element
11702 * "For each node in the node-set to be filtered, the
11704 * context node, with the number of nodes in the
11706 * position of the node in the node-set with respect to
11740 * Also set the xpath document in case things like
11741 * key() are evaluated in the predicate.
11784 * context node, in order to avoid massive recreation
11791 * TODO: The object was lost in the evaluation machinery.
11792 * Can this happen? Maybe in internal-error cases.
11892 * Also set the xpath document in case things like
11938 * Fits in the requested range.
11979 * context node, in order to avoid massive recreation
11986 * The object was lost in the evaluation machinery.
11987 * Can this happen? Maybe in case of internal-errors.
12055 * able to detect a position() predicate in compound
12057 * and even not the usage of position() in
12163 * not in the ancestor-or-self axis of the other, then we could safely
12686 * Hand over the result. Better to push the set also in
12715 * element in document order
12742 * limit tree traversing to first node in the result
12839 * element in document order
12873 * limit tree traversing to first node in the result
13001 * The nodeset should be in document order,
13042 * expression for all the element in the locset. use it to grow
13068 * single item in the nodelocset.
13117 * Only put the first node in the result, then leave.
13142 * expression for all the element in the set. use it to grow
13174 * Also set the xpath document in case things like
13183 * a single item in the nodeset.
13227 * in order to avoid massive recreation inside this
13235 * Only put the first node in the result, then leave.
13631 * will result in an ordered list if we have an
13657 * The nodeset should be in document order,
13691 * The nodeset should be in document order,
13742 * expression for all the element in the locset. use it to grow
13770 * single item in the nodelocset.
13828 * expression for all the element in the set. use it to grow
13859 * Also set the xpath document in case things like
13865 * "For each node in the node-set to be filtered, the
13867 * context node, with the number of nodes in the
13869 * position of the node in the node-set with respect to
13886 * removed the first node in the node-set, then
13892 * a single item in the nodeset.
13951 * in order to avoid massive recreation inside this
14006 * expression for all the element in the locset. use it to grow
14031 * single item in the nodelocset.
14096 * in the nodeset.
14251 * Evaluate the Precompiled Streamable XPath expression in the given context.
14485 * Evaluate the Precompiled XPath expression in the given context.
14572 * context node in the context node list (as returned by the position
14610 * context node in the context node list (as returned by the position
14683 * there's a ":" in the expression, indicating a prefixed QName,
14685 * to have a list of namespaces at compilation time in order to
14830 * aleksey: in some cases this line prints *second* error message
14833 * out in other places. It's not critical so we leave it as-is for now
14877 * Evaluate the Precompiled XPath expression in the given context.
14968 * Evaluate the Precompiled XPath expression in the given context.
14991 * -1 in API and internal errors.
15004 * Parse and evaluate an XPath expression in the given context,
15045 * Evaluate the XPath Location Path in the given context.
15107 * Sets 'node' as the context node. The node must be in the same
15110 * Returns -1 in case of error or 0 if successful
15130 * Evaluate the XPath Location Path in the given context. The node 'node'
15150 * Evaluate the XPath expression in the given context.
15205 * This function applies the URI escaping rules defined in section 2 of [RFC
15208 * character in the string by an escape sequence of the form %xx%yy...,
15210 * represent the character in UTF-8.
15217 * referred to in [RFC 2396] as "marks": specifically, "-" | "_" | "." | "!"
15222 * If $escape-reserved is false, the behavior differs in that characters
15223 * referred to in [RFC 2396] as reserved characters are not escaped. These
15235 * In the case of non-ascii characters, the string is encoded according to
15310 * Registers all default XPath functions in this context