MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / FindLangIndex

Function FindLangIndex

engine/Poseidon/Dev/Debug/DebugOverlay.cpp:583–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581constexpr int kGameLangsCount = (int)(sizeof(kGameLangs) / sizeof(kGameLangs[0]));
582
583int FindLangIndex(const char* current)
584{
585 if (!current)
586 return 0;
587 for (int i = 0; i < kGameLangsCount; i++)
588 if (stricmp(current, kGameLangs[i]) == 0)
589 return i;
590 return 0;
591}
592
593const char* DebugBool(bool value)
594{

Callers 1

DrawGameTabFunction · 0.85

Calls 1

stricmpFunction · 0.50

Tested by

no test coverage detected