MCPcopy Create free account
hub / github.com/apache/cloudberry / strcmpci

Function strcmpci

gpcontrib/gpcloud/lib/ini.cpp:22–30  ·  view source on GitHub ↗

Case insensitive string compare */

Source from the content-addressed store, hash-verified

20
21/* Case insensitive string compare */
22int strcmpci(const char *a, const char *b) {
23 for (;;) {
24 int d = tolower(*a) - tolower(*b);
25 if (d != 0 || !*a) {
26 return d;
27 }
28 a++, b++;
29 }
30}
31
32/* Returns the next string in the split data */
33static char* next(ini_t *ini, char *p) {

Callers 4

ini_section_existFunction · 0.85
ini_getFunction · 0.85
getLogTypeFunction · 0.85
getLogLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected