| 293 | */ |
| 294 | |
| 295 | int |
| 296 | xmlStrncasecmp(const xmlChar *str1, const xmlChar *str2, int len) { |
| 297 | register int tmp; |
| 298 | |
| 299 | if (len <= 0) return(0); |
| 300 | if (str1 == str2) return(0); |
| 301 | if (str1 == NULL) return(-1); |
| 302 | if (str2 == NULL) return(1); |
| 303 | do { |
| 304 | tmp = casemap[*str1++] - casemap[*str2]; |
| 305 | if (tmp != 0 || --len == 0) return(tmp); |
| 306 | } while (*str2++ != 0); |
| 307 | return 0; |
| 308 | } |
| 309 | |
| 310 | /** |
| 311 | * xmlStrchr: |
no outgoing calls