MCPcopy Create free account
hub / github.com/amule-project/amule / stdStringIsEqualCI

Function stdStringIsEqualCI

src/UPnPBase.cpp:82–89  ·  view source on GitHub ↗

* Case insensitive std::string comparison */

Source from the content-addressed store, hash-verified

80 * Case insensitive std::string comparison
81 */
82static bool stdStringIsEqualCI(const std::string &s1, const std::string &s2)
83{
84 std::string ns1(s1);
85 std::string ns2(s2);
86 std::transform(ns1.begin(), ns1.end(), ns1.begin(), tolower);
87 std::transform(ns2.begin(), ns2.end(), ns2.begin(), tolower);
88 return ns1 == ns2;
89}
90
91
92static bool stdStringStartsWithCI(const std::string &s, const std::string &prefix)

Callers 2

IsWANRelatedDeviceTypeFunction · 0.85
UPnPBase.cppFile · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected