MCPcopy Create free account
hub / github.com/ddnet/ddnet / HasCountry

Method HasCountry

src/engine/client/serverbrowser.cpp:1751–1756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749}
1750
1751bool CCommunity::HasCountry(const char *pCountryName) const
1752{
1753 return std::find_if(Countries().begin(), Countries().end(), [pCountryName](const auto &Elem) {
1754 return str_comp(Elem.Name(), pCountryName) == 0;
1755 }) != Countries().end();
1756}
1757
1758bool CCommunity::HasType(const char *pTypeName) const
1759{

Callers 1

CleanMethod · 0.80

Calls 4

str_compFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
NameMethod · 0.45

Tested by

no test coverage detected