MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FindCmd

Function FindCmd

src/strgen/strgen_base.cpp:314–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static const CmdStruct *FindCmd(std::string_view s)
315{
316 auto it = std::ranges::find(_cmd_structs, s, &CmdStruct::cmd);
317 if (it != std::end(_cmd_structs)) return &*it;
318 return nullptr;
319}
320
321static uint8_t ResolveCaseName(std::string_view str)
322{

Callers 2

ParseCommandStringFunction · 0.85
TranslateCmdForCompareFunction · 0.85

Calls 2

findFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected