MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / operator()

Method operator()

emmy_debugger/src/util.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool CaseInsensitiveLess::operator()(const std::string &lhs, const std::string &rhs) const {
27 std::size_t llen = lhs.size();
28 std::size_t rlen = rhs.size();
29
30 int ret = CompareIgnoreCase(lhs, rhs);
31
32 if (ret < 0) {
33 return true;
34 }
35 if (ret == 0 && llen < rlen) {
36 return true;
37 }
38 return false;
39}
40
41bool EndWith(const std::string &source, const std::string &end) {
42 auto endSize = end.size();

Callers

nothing calls this directly

Calls 2

CompareIgnoreCaseFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected