| 338 | */ |
| 339 | |
| 340 | const xmlChar * |
| 341 | xmlStrstr(const xmlChar *str, const xmlChar *val) { |
| 342 | int n; |
| 343 | |
| 344 | if (str == NULL) return(NULL); |
| 345 | if (val == NULL) return(NULL); |
| 346 | n = xmlStrlen(val); |
| 347 | |
| 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); |
| 352 | } |
| 353 | str++; |
| 354 | } |
| 355 | return(NULL); |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * xmlStrcasestr: |