MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlStrncasecmp

Function xmlStrncasecmp

ThirdParty/libxml2/vtklibxml2/xmlstring.c:309–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 */
308
309int
310xmlStrncasecmp(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:

Callers 7

htmlParseScriptFunction · 0.85
xmlNanoHTTPScanAnswerFunction · 0.85
xmlConvertUriToPathFunction · 0.85
xmlIOHTTPMatchFunction · 0.85
xmlIOFTPMatchFunction · 0.85
xmlStrcasestrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected