| 352 | */ |
| 353 | |
| 354 | const xmlChar * |
| 355 | xmlStrstr(const xmlChar *str, const xmlChar *val) { |
| 356 | int n; |
| 357 | |
| 358 | if (str == NULL) return(NULL); |
| 359 | if (val == NULL) return(NULL); |
| 360 | n = xmlStrlen(val); |
| 361 | |
| 362 | if (n == 0) return(str); |
| 363 | while (*str != 0) { /* non input consuming */ |
| 364 | if (*str == *val) { |
| 365 | if (!xmlStrncmp(str, val, n)) return((const xmlChar *) str); |
| 366 | } |
| 367 | str++; |
| 368 | } |
| 369 | return(NULL); |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * xmlStrcasestr: |
no test coverage detected