| 307 | */ |
| 308 | |
| 309 | int |
| 310 | xmlStrncasecmp(const xmlChar *str1, const xmlChar *str2, int len) { |
| 311 | register int tmp; |
| 312 | |
| 313 | if (len <= 0) return(0); |
| 314 | if (str1 == str2) return(0); |
| 315 | if (str1 == NULL) return(-1); |
| 316 | if (str2 == NULL) return(1); |
| 317 | do { |
| 318 | tmp = casemap[*str1++] - casemap[*str2]; |
| 319 | if (tmp != 0 || --len == 0) return(tmp); |
| 320 | } while (*str2++ != 0); |
| 321 | return 0; |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * xmlStrchr: |
no outgoing calls
no test coverage detected