| 380 | */ |
| 381 | |
| 382 | const xmlChar * |
| 383 | xmlStrcasestr(const xmlChar *str, const xmlChar *val) { |
| 384 | int n; |
| 385 | |
| 386 | if (str == NULL) return(NULL); |
| 387 | if (val == NULL) return(NULL); |
| 388 | n = xmlStrlen(val); |
| 389 | |
| 390 | if (n == 0) return(str); |
| 391 | while (*str != 0) { /* non input consuming */ |
| 392 | if (casemap[*str] == casemap[*val]) |
| 393 | if (!xmlStrncasecmp(str, val, n)) return(str); |
| 394 | str++; |
| 395 | } |
| 396 | return(NULL); |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * xmlStrsub: |
no test coverage detected