MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / commonPrefixLength

Method commonPrefixLength

src/utils/Utils.cpp:375–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375std::size_t Utils::commonPrefixLength(const std::string& a, const std::string& b)
376{
377 auto pair = std::mismatch(a.begin(), a.end(), b.begin(), b.end());
378 return pair.first - a.begin();
379}
380
381std::string Utils::strippedAndLowered(std::string str)
382{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected