MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / strcaseeql

Function strcaseeql

SIP/SIPParse.cpp:100–100  ·  view source on GitHub ↗

Case insenstive string comparison Yes there is a way to do this in C++ by changing the character traits, but who cares.

Source from the content-addressed store, hash-verified

98// Case insenstive string comparison
99// Yes there is a way to do this in C++ by changing the character traits, but who cares.
100bool strcaseeql(const char *a,const char *b) { return 0==strcasecmp((a),(b)); }
101bool strncaseeql(const char *a,const char *b, unsigned n) { return 0==strncasecmp((a),(b),(n)); }
102bool strceql(const string a, const string b) { return strcaseeql(a.c_str(),b.c_str()); }
103

Callers 2

strceqlFunction · 0.85
viaParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected