Lines Matching defs:string
28 #include <string.h>
973 * string and if the scheme is 'xpointer' it will call the XPath interpreter.
1348 xmlXPathRegisterFunc(ret, (xmlChar *)"string-range",
1701 * string value in case of text/PI/Comments nodes
1885 * string-value of x.
2177 * length of the string-value of x, and otherwise is the number of
2438 * @string: the string to search
2444 * Check whether the document contains @string at the position
2453 xmlXPtrMatchString(const xmlChar *string, xmlNodePtr start, int startindex,
2461 if (string == NULL)
2471 stringlen = xmlStrlen(string);
2480 match = (!xmlStrncmp(&cur->content[pos], string, stringlen));
2497 match = (!xmlStrncmp(&cur->content[pos], string, sub));
2506 string = &string[sub];
2523 * @string: the string to search
2529 * Search the next occurrence of @string within the document content
2538 xmlXPtrSearchString(const xmlChar *string, xmlNodePtr *start, int *startindex,
2546 if (string == NULL)
2556 first = string[0];
2573 if (xmlXPtrMatchString(string, cur, pos + 1,
2585 * An empty string is considered to match before each
2586 * character of the string-value and after the final
2738 * Function implementing the string-range() function
2743 * string-range returns a set of string ranges, a set of substrings in a
2744 * string. Specifically, the string-value of the location is searched for
2745 * substrings that match the string argument, and the resulting location-set
2747 * An empty string is considered to match before each character of the
2748 * string-value and after the final character. Whitespace in a string
2753 * before the first character of the matched string. The fourth argument
2755 * range extends to the end of the matched string.
2760 * If the string in the second argument is not found in the string-value
2762 * a string that is beyond the beginning or end of the document, the
2776 xmlXPathObjectPtr string;
2800 string = valuePop(ctxt);
2850 found = xmlXPtrSearchString(string->stringval, &start, &startindex,
2881 if (string->stringval[0] == 0)
2893 xmlXPathFreeObject(string);