MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_strcasecmp

Function cJSON_strcasecmp

outofcore/src/cJSON.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39const char *cJSON_GetErrorPtr() {return ep;}
40
41static int cJSON_strcasecmp(const char *s1,const char *s2)
42{
43 if (!s1) return (s1==s2)?0:1;
44 if (!s2) return 1;
45 for(; tolower(*s1) == tolower(*s2); ++s1, ++s2) if(*s1 == 0) return 0;
46 return tolower(* reinterpret_cast<const unsigned char *> (s1) ) - tolower(* reinterpret_cast<const unsigned char *> (s2) );
47}
48
49static void *(*cJSON_malloc)(std::size_t sz) = malloc;
50static void (*cJSON_free)(void *ptr) = free;

Callers 3

cJSON_GetObjectItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected