Home | History | Annotate | Download | only in libxml2

Lines Matching refs:str

171  * @str:  the second xmlChar *
179 xmlStrQEqual(const xmlChar *pref, const xmlChar *name, const xmlChar *str) {
180 if (pref == NULL) return(xmlStrEqual(name, str));
182 if (str == NULL) return(0);
185 if (*pref++ != *str) return(0);
186 } while ((*str++) && (*pref));
187 if (*str++ != ':') return(0);
189 if (*name++ != *str) return(0);
190 } while (*str++);
312 * @str: the xmlChar * array
321 xmlStrchr(const xmlChar *str, xmlChar val) {
322 if (str == NULL) return(NULL);
323 while (*str != 0) { /* non input consuming */
324 if (*str == val) return((xmlChar *) str);
325 str++;
332 * @str: the xmlChar * array (haystack)
341 xmlStrstr(const xmlChar *str, const xmlChar *val) {
344 if (str == NULL) return(NULL);
348 if (n == 0) return(str);
349 while (*str != 0) { /* non input consuming */
350 if (*str == *val) {
351 if (!xmlStrncmp(str, val, n)) return((const xmlChar *) str);
353 str++;
360 * @str: the xmlChar * array (haystack)
369 xmlStrcasestr(const xmlChar *str, xmlChar *val) {
372 if (str == NULL) return(NULL);
376 if (n == 0) return(str);
377 while (*str != 0) { /* non input consuming */
378 if (casemap[*str] == casemap[*val])
379 if (!xmlStrncasecmp(str, val, n)) return(str);
380 str++;
387 * @str: the xmlChar * array (haystack)
397 xmlStrsub(const xmlChar *str, int start, int len) {
400 if (str == NULL) return(NULL);
405 if (*str == 0) return(NULL);
406 str++;
408 if (*str == 0) return(NULL);
409 return(xmlStrndup(str, len));
414 * @str: the xmlChar * array
422 xmlStrlen(const xmlChar *str) {
425 if (str == NULL) return(0);
426 while (*str != 0) { /* non input consuming */
427 str++;