MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / xmlStrstr

Function xmlStrstr

Externals/LibXML/xmlstring.c:340–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 */
339
340const xmlChar *
341xmlStrstr(const xmlChar *str, const xmlChar *val) {
342 int n;
343
344 if (str == NULL) return(NULL);
345 if (val == NULL) return(NULL);
346 n = xmlStrlen(val);
347
348 if (n == 0) return(str);
349 while (*str != 0) { /* non input consuming */
350 if (*str == *val) {
351 if (!xmlStrncmp(str, val, n)) return((const xmlChar *) str);
352 }
353 str++;
354 }
355 return(NULL);
356}
357
358/**
359 * xmlStrcasestr:

Callers 10

test_xmlStrstrFunction · 0.85
xmlXPathContainsFunctionFunction · 0.85
xmlXPathCompPathExprFunction · 0.85
htmlGetMetaEncodingFunction · 0.85
xhtmlNodeDumpOutputFunction · 0.85
xmlShellGrepFunction · 0.85
xmlCanonicPathFunction · 0.85
xmlNanoHTTPScanAnswerFunction · 0.85

Calls 2

xmlStrlenFunction · 0.85
xmlStrncmpFunction · 0.85

Tested by 1

test_xmlStrstrFunction · 0.68