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
2285 xmlGenericError(xmlGenericErrorContext, "STRING: undefined\n");
2557 * Pops a string from the stack, handling conversion if needed.
2560 * Returns the string
2707 * Convert the number into a string representation.
5050 * @prefix: the namespace prefix cannot be NULL or empty string
5193 * Create a new xmlXPathObjectPtr of type string and of value @val
5203 xmlXPathErrMemory(NULL, "creating string object\n");
5222 * Wraps the @val string into an XPath object.
5232 xmlXPathErrMemory(NULL, "creating string object\n");
5248 * Create a new xmlXPathObjectPtr of type string and of value @val
5258 xmlXPathErrMemory(NULL, "creating string object\n");
5274 * Wraps a string into an XPath object.
5593 * Converts a boolean to its string value.
5595 * Returns a newly allocated string.
5611 * Converts a number to its string value.
5613 * Returns a newly allocated string.
5645 * Converts a node to its string value.
5647 * Returns a newly allocated string.
5661 * Converts a node-set to its string value.
5663 * Returns a newly allocated string.
5679 * Converts an existing object to its string() equivalent
5681 * Returns the allocated string value of the object, NULL in case of error.
5682 * It's up to the caller to free the string memory with xmlFree().
5693 xmlGenericError(xmlGenericErrorContext, "String: undefined\n");
5725 * Converts an existing object to its string() equivalent
5740 xmlGenericError(xmlGenericErrorContext, "STRING: undefined\n");
5785 * @val: a string
5787 * Converts a string to its number value
5925 * @val: a string
5927 * Converts a string to its boolean value
6242 * Function computing the beginning of the string value of the node,
6250 const xmlChar * string = NULL;
6273 string = node->content;
6274 if (string == NULL)
6276 if (string[0] == 0)
6278 return(((unsigned int) string[0]) +
6279 (((unsigned int) string[1]) << 8));
6281 string = ((xmlNsPtr)node)->href;
6282 if (string == NULL)
6284 if (string[0] == 0)
6286 return(((unsigned int) string[0]) +
6287 (((unsigned int) string[1]) << 8));
6303 string = tmp->content;
6306 string = ((xmlNsPtr)tmp)->href;
6311 if ((string != NULL) && (string[0] != 0)) {
6313 return(ret + (((unsigned int) string[0]) << 8));
6315 if (string[1] == 0) {
6317 ret = (unsigned int) string[0];
6319 return(((unsigned int) string[0]) +
6320 (((unsigned int) string[1]) << 8));
6359 * @string: a string
6361 * Function computing the beginning of the string value of the node,
6367 xmlXPathStringHash(const xmlChar * string) {
6368 if (string == NULL)
6370 if (string[0] == 0)
6372 return(((unsigned int) string[0]) +
6373 (((unsigned int) string[1]) << 8));
6393 * to be compared and on the result of converting the string-value of that
6440 * Implement the compare operation between a nodeset and a string
6446 * If one object to be compared is a node-set and the other is a string,
6449 * string-value of the node and the other string is true.
6498 * the comparison on the string-values of the two nodes is true.
6505 * - a string that consists of optional whitespace followed by an
6509 * represented by the string; any other string is converted to NaN
6511 * Conclusion all nodes need to be converted first to their string value
6638 * @str: the string to compare to.
6642 * If one object to be compared is a node-set and the other is a string,
6645 * string-value of the node and the other string is true.
6662 * A NULL nodeset compared with a string is always false
6703 * number to be compared and on the result of converting the string-value
6763 * comparison on the string-values of the two nodes is true.
8559 * string value of each of the nodes in the argument node-set. When the
8561 * string as if by a call to the string function; the string is split
8615 * string local-name(node-set?)
8616 * The local-name function returns a string containing the local part
8619 * name, an empty string is returned. If the argument is omitted it
8673 * string namespace-uri(node-set?)
8674 * The namespace-uri function returns a string containing the
8678 * URI, an empty string is returned. If the argument is omitted it
8725 * string name(node-set?)
8726 * The name function returns a string containing a QName representing
8735 * implementation can ensure that the returned string is always the same
8805 * Implement the string() XPath function
8806 * string string(object?)
8807 * The string function converts an object to a string as follows:
8808 * - A node-set is converted to a string by returning the value of
8810 * If the node-set is empty, an empty string is returned.
8811 * - A number is converted to a string as follows
8812 * + NaN is converted to the string NaN
8813 * + positive zero is converted to the string 0
8814 * + negative zero is converted to the string 0
8815 * + positive infinity is converted to the string Infinity
8816 * + negative infinity is converted to the string -Infinity
8830 * - The boolean false value is converted to the string false.
8831 * The boolean true value is converted to the string true.
8859 * Implement the string-length() XPath function
8860 * number string-length(string?)
8861 * The string-length returns the number of characters in the string
8863 * the context node converted to a string, in other words the value
8900 * string concat(string, string, string*)
8944 * boolean contains(string, string)
8945 * The contains function returns true if the first argument string
8946 * contains the second argument string, and otherwise returns false.
8978 * boolean starts-with(string, string)
8979 * The starts-with function returns true if the first argument string
8980 * starts with the second argument string, and otherwise returns false.
9014 * string substring(string, number, number?)
9020 * in the second argument and continuing to the end of the string. For
9022 * character in the string (see [3.6 Strings]) is considered to have a
9138 * string substring-before(string, string)
9140 * argument string that precedes the first occurrence of the second
9141 * argument stringstring, or the empty string
9142 * if the first argument string does not contain the second argument
9143 * string. For example, substring-before("1999/04/01","/") returns 1999.
9180 * string substring-after(string, string)
9182 * argument string that follows the first occurrence of the second
9183 * argument string in the first argument string, or the empty stringi
9184 * if the first argument string does not contain the second argument
9185 * string. For example, substring-after("1999/04/01","/") returns 04/01,
9224 * string normalize-space(string?)
9225 * The normalize-space function returns the argument string with white
9230 * node converted to a string, in other words the value of the context node.
9288 * string translate(string, string, string)
9289 * The translate function returns the first argument string with
9290 * occurrences of characters in the second argument string replaced
9292 * string. For example, translate("bar","abc","ABC") returns the string
9293 * BAr. If there is a character in the second argument string with no
9294 * character at a corresponding position in the third argument string
9295 * (because the second argument string is longer than the third argument
9296 * string), then occurrences of that character in the first argument
9297 * string are removed. For example, translate("--aaa--","abc-","ABC")
9299 * argument string, then the first occurrence determines the replacement
9300 * character. If the third argument string is longer than the second
9301 * argument string, then excess characters are ignored.
9343 "xmlXPathTranslateFunction: Invalid UTF8 string\n");
9351 "xmlXPathTranslateFunction: Invalid UTF8 string\n");
9379 * - a string is true if and only if its length is non-zero
9444 * boolean lang(string)
9448 * the argument string. The language of the context node is determined
9980 * @str: A string to scan
9988 * Compile a Number in the string
10300 * @name: a name string
14731 comp->string = xmlStrdup(str);
14798 if ((comp->string != NULL) && (comp->nb > 100)) {
14799 string);
14917 * In this scenario the expression string will sit in ctxt->base.
15054 * string escape-uri(string $str, bool $escape-reserved)
15057 * 2396] to the string supplied as $uri-part, which typically represents all
15059 * character in the string by an escape sequence of the form %xx%yy...,
15079 * compared using string comparison functions, this function must always use
15082 * Generally, $escape-reserved should be set to true when escaping a string
15086 * In the case of non-ascii characters, the string is encoded according to
15202 xmlXPathRegisterFunc(ctxt, (const xmlChar *)"string",
15204 xmlXPathRegisterFunc(ctxt, (const xmlChar *)"string-length",