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

Function xmlStrstr

ThirdParty/libxml2/vtklibxml2/xmlstring.c:354–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 */
353
354const xmlChar *
355xmlStrstr(const xmlChar *str, const xmlChar *val) {
356 int n;
357
358 if (str == NULL) return(NULL);
359 if (val == NULL) return(NULL);
360 n = xmlStrlen(val);
361
362 if (n == 0) return(str);
363 while (*str != 0) { /* non input consuming */
364 if (*str == *val) {
365 if (!xmlStrncmp(str, val, n)) return((const xmlChar *) str);
366 }
367 str++;
368 }
369 return(NULL);
370}
371
372/**
373 * xmlStrcasestr:

Callers 11

xmlXPathContainsFunctionFunction · 0.85
xmlXPathCompPathExprFunction · 0.85
htmlGetMetaEncodingFunction · 0.85
xmlShellGrepFunction · 0.85
xmlBuildURISafeFunction · 0.85
xmlParseUriOrPathFunction · 0.85
xmlCanonicPathFunction · 0.85
xmlNanoHTTPScanAnswerFunction · 0.85

Calls 2

xmlStrlenFunction · 0.85
xmlStrncmpFunction · 0.85

Tested by

no test coverage detected