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

Method operator()

source/core/StarString.cpp:177–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177size_t CaseInsensitiveStringHash::operator()(String const& s) const {
178 PLHasher hash;
179 for (auto c : s)
180 hash.put(String::toLower(c));
181 return hash.hash();
182}
183
184bool CaseInsensitiveStringCompare::operator()(String const& lhs, String const& rhs) const {
185 return lhs.equalsIgnoreCase(rhs);

Callers

nothing calls this directly

Calls 5

hashCombineFunction · 0.85
hashOfFunction · 0.85
putMethod · 0.45
hashMethod · 0.45
equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected