MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / CompareIgnoreCase

Function CompareIgnoreCase

emmy_debugger/src/util.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool CompareIgnoreCase(const std::string &lh, const std::string &rh) {
20 std::size_t llen = lh.size();
21 std::size_t rlen = rh.size();
22 int ret = __strncasecmp(lh.data(), rh.data(), static_cast<int>((std::min)(llen, rlen)));
23 return ret;
24}
25
26bool CaseInsensitiveLess::operator()(const std::string &lhs, const std::string &rhs) const {
27 std::size_t llen = lhs.size();

Callers 3

operator()Method · 0.85
AddBreakpointMethod · 0.85
RemoveBreakpointMethod · 0.85

Calls 2

__strncasecmpFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected