MCPcopy Index your code
hub / github.com/MapServer/MapServer / strcasecmp

Function strcasecmp

mapstring.c:332–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330
331#ifdef NEED_STRCASECMP
332int strcasecmp(const char *s1, const char *s2)
333{
334 register const char *cp1, *cp2;
335 int cmp = 0;
336
337 cp1 = s1;
338 cp2 = s2;
339 if ((!cp1) || (!cp2 )) {
340 return (0);
341 }
342 while(*cp1 && *cp2)
343 {
344 if((cmp = (toupper(*cp1) - toupper(*cp2))) != 0)
345 return(cmp);
346 cp1++;
347 cp2++;
348 }
349 if(*cp1 || *cp2)
350 {
351 if (*cp1)
352 return(1);
353 else
354 return (-1);
355 }
356
357 return(0);
358}
359#endif
360
361char *msLongToString(long value) {

Callers 15

msSLDApplySLDFunction · 0.85
msSLDParseSLDFunction · 0.85
msSLDParseNamedLayerFunction · 0.85
msSLDParseRuleFunction · 0.85
msSLDParseStrokeFunction · 0.85
msSLDParsePolygonFillFunction · 0.85
msSLDGetMarkSymbolFunction · 0.85
msSLDParseTextParamsFunction · 0.85
ParseTextLinePlacementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected