Lines Matching defs:string

20 #include <string.h>
583 xmlChar *string;
687 if (comp->string != NULL) {
688 xmlFree(comp->string);
712 * @value4: the first string value
713 * @value5: the second string value
1054 fprintf(output, "Object is a string : ");
1872 * There are 5 slots for: node-set, string, number, boolean, and
1954 * Wraps the @val string into an XPath object.
2070 * Acquire an xmlXPathObjectPtr of type string and of value @val
2119 * Acquire an xmlXPathObjectPtr of type string and of value @val
2269 * Converts an existing object to its string() equivalent
2557 * Pops a string from the stack, handling conversion if needed.
2560 * Returns the string
2707 * Convert the number into a string representation.
5174 * Create a new xmlXPathObjectPtr of type string and of value @val
5184 xmlXPathErrMemory(NULL, "creating string object\n");
5203 * Wraps the @val string into an XPath object.
5213 xmlXPathErrMemory(NULL, "creating string object\n");
5229 * Create a new xmlXPathObjectPtr of type string and of value @val
5239 xmlXPathErrMemory(NULL, "creating string object\n");
5255 * Wraps a string into an XPath object.
5574 * Converts a boolean to its string value.
5576 * Returns a newly allocated string.
5592 * Converts a number to its string value.
5594 * Returns a newly allocated string.
5626 * Converts a node to its string value.
5628 * Returns a newly allocated string.
5642 * Converts a node-set to its string value.
5644 * Returns a newly allocated string.
5660 * Converts an existing object to its string() equivalent
5662 * Returns the allocated string value of the object, NULL in case of error.
5663 * It's up to the caller to free the string memory with xmlFree().
5706 * Converts an existing object to its string() equivalent
5766 * @val: a string
5768 * Converts a string to its number value
5906 * @val: a string
5908 * Converts a string to its boolean value
6223 * Function computing the beginning of the string value of the node,
6231 const xmlChar * string = NULL;
6254 string = node->content;
6255 if (string == NULL)
6257 if (string[0] == 0)
6259 return(((unsigned int) string[0]) +
6260 (((unsigned int) string[1]) << 8));
6262 string = ((xmlNsPtr)node)->href;
6263 if (string == NULL)
6265 if (string[0] == 0)
6267 return(((unsigned int) string[0]) +
6268 (((unsigned int) string[1]) << 8));
6284 string = tmp->content;
6287 string = ((xmlNsPtr)tmp)->href;
6292 if ((string != NULL) && (string[0] != 0)) {
6294 return(ret + (((unsigned int) string[0]) << 8));
6296 if (string[1] == 0) {
6298 ret = (unsigned int) string[0];
6300 return(((unsigned int) string[0]) +
6301 (((unsigned int) string[1]) << 8));
6340 * @string: a string
6342 * Function computing the beginning of the string value of the node,
6348 xmlXPathStringHash(const xmlChar * string) {
6349 if (string == NULL)
6351 if (string[0] == 0)
6353 return(((unsigned int) string[0]) +
6354 (((unsigned int) string[1]) << 8));
6374 * to be compared and on the result of converting the string-value of that
6421 * Implement the compare operation between a nodeset and a string
6427 * If one object to be compared is a node-set and the other is a string,
6430 * string-value of the node and the other string is true.
6479 * the comparison on the string-values of the two nodes is true.
6486 * - a string that consists of optional whitespace followed by an
6490 * represented by the string; any other string is converted to NaN
6492 * Conclusion all nodes need to be converted first to their string value
6619 * @str: the string to compare to.
6623 * If one object to be compared is a node-set and the other is a string,
6626 * string-value of the node and the other string is true.
6643 * A NULL nodeset compared with a string is always false
6684 * number to be compared and on the result of converting the string-value
6744 * comparison on the string-values of the two nodes is true.
8538 * string value of each of the nodes in the argument node-set. When the
8540 * string as if by a call to the string function; the string is split
8589 * string local-name(node-set?)
8590 * The local-name function returns a string containing the local part
8593 * name, an empty string is returned. If the argument is omitted it
8647 * string namespace-uri(node-set?)
8648 * The namespace-uri function returns a string containing the
8652 * URI, an empty string is returned. If the argument is omitted it
8699 * string name(node-set?)
8700 * The name function returns a string containing a QName representing
8709 * implementation can ensure that the returned string is always the same
8779 * Implement the string() XPath function
8780 * string string(object?)
8781 * The string function converts an object to a string as follows:
8782 * - A node-set is converted to a string by returning the value of
8784 * If the node-set is empty, an empty string is returned.
8785 * - A number is converted to a string as follows
8786 * + NaN is converted to the string NaN
8787 * + positive zero is converted to the string 0
8788 * + negative zero is converted to the string 0
8789 * + positive infinity is converted to the string Infinity
8790 * + negative infinity is converted to the string -Infinity
8804 * - The boolean false value is converted to the string false.
8805 * The boolean true value is converted to the string true.
8833 * Implement the string-length() XPath function
8834 * number string-length(string?)
8835 * The string-length returns the number of characters in the string
8837 * the context node converted to a string, in other words the value
8874 * string concat(string, string, string*)
8918 * boolean contains(string, string)
8919 * The contains function returns true if the first argument string
8920 * contains the second argument string, and otherwise returns false.
8952 * boolean starts-with(string, string)
8953 * The starts-with function returns true if the first argument string
8954 * starts with the second argument string, and otherwise returns false.
8988 * string substring(string, number, number?)
8994 * in the second argument and continuing to the end of the string. For
8996 * character in the string (see [3.6 Strings]) is considered to have a
9112 * string substring-before(string, string)
9114 * argument string that precedes the first occurrence of the second
9115 * argument string in the first argument string, or the empty string
9116 * if the first argument string does not contain the second argument
9117 * string. For example, substring-before("1999/04/01","/") returns 1999.
9154 * string substring-after(string, string)
9156 * argument string that follows the first occurrence of the second
9157 * argument string in the first argument string, or the empty stringi
9158 * if the first argument string does not contain the second argument
9159 * string. For example, substring-after("1999/04/01","/") returns 04/01,
9198 * string normalize-space(string?)
9199 * The normalize-space function returns the argument string with white
9204 * node converted to a string, in other words the value of the context node.
9262 * string translate(string, string, string)
9263 * The translate function returns the first argument string with
9264 * occurrences of characters in the second argument string replaced
9266 * string. For example, translate("bar","abc","ABC") returns the string
9267 * BAr. If there is a character in the second argument string with no
9268 * character at a corresponding position in the third argument string
9269 * (because the second argument string is longer than the third argument
9270 * string), then occurrences of that character in the first argument
9271 * string are removed. For example, translate("--aaa--","abc-","ABC")
9273 * argument string, then the first occurrence determines the replacement
9274 * character. If the third argument string is longer than the second
9275 * argument string, then excess characters are ignored.
9317 "xmlXPathTranslateFunction: Invalid UTF8 string\n");
9325 "xmlXPathTranslateFunction: Invalid UTF8 string\n");
9353 * - a string is true if and only if its length is non-zero
9418 * boolean lang(string)
9422 * the argument string. The language of the context node is determined
9954 * @str: A string to scan
9962 * Compile a Number in the string
10267 * @name: a name string
14688 comp->string = xmlStrdup(str);
14755 if ((comp->string != NULL) && (comp->nb > 100)) {
14756 fprintf(stderr, "100 x %s\n", comp->string);
14874 * In this scenario the expression string will sit in ctxt->base.
15011 * string escape-uri(string $str, bool $escape-reserved)
15014 * 2396] to the string supplied as $uri-part, which typically represents all
15016 * character in the string by an escape sequence of the form %xx%yy...,
15036 * compared using string comparison functions, this function must always use
15039 * Generally, $escape-reserved should be set to true when escaping a string
15043 * In the case of non-ascii characters, the string is encoded according to
15159 xmlXPathRegisterFunc(ctxt, (const xmlChar *)"string",
15161 xmlXPathRegisterFunc(ctxt, (const xmlChar *)"string-length",