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

Function xmlStrcasestr

ThirdParty/libxml2/vtklibxml2/xmlstring.c:382–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 */
381
382const xmlChar *
383xmlStrcasestr(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:

Callers 3

htmlFindEncodingFunction · 0.85
htmlCheckEncodingFunction · 0.85
htmlSetMetaEncodingFunction · 0.85

Calls 2

xmlStrlenFunction · 0.85
xmlStrncasecmpFunction · 0.85

Tested by

no test coverage detected