MCPcopy Create free account
hub / github.com/assaultcube/AC / matchplayername

Function matchplayername

source/src/serverbrowser.cpp:740–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738VAR(showallservers, 0, 1, 1);
739
740bool matchplayername(const char *name)
741{
742 static string nameuc;
743 copystring(nameuc, name);
744 strtoupper(nameuc);
745 return strstr(nameuc, cursearchuc) != NULL;
746}
747
748VARP(serverbrowserhideip, 0, 0, 2);
749VARP(serverbrowserhidefavtag, 0, 1, 2);

Callers 1

loopvFunction · 0.85

Calls 2

copystringFunction · 0.85
strtoupperFunction · 0.85

Tested by

no test coverage detected