MCPcopy Create free account
hub / github.com/ZDoom/Raze / FindTabCommand

Function FindTabCommand

source/common/console/c_tabcomplete.cpp:75–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73CVAR(Bool, con_notablist, false, CVAR_ARCHIVE)
74
75static bool FindTabCommand (const char *name, int *stoppos, int len)
76{
77 FName aname(name);
78 unsigned int i;
79 int cval = 1;
80
81 for (i = 0; i < TabCommands.Size(); i++)
82 {
83 if (TabCommands[i].TabName == aname)
84 {
85 *stoppos = i;
86 return true;
87 }
88 cval = strnicmp (TabCommands[i].TabName.GetChars(), name, len);
89 if (cval >= 0)
90 break;
91 }
92
93 *stoppos = i;
94
95 return (cval == 0);
96}
97
98void C_AddTabCommand (const char *name)
99{

Callers 2

C_AddTabCommandFunction · 0.85
C_TabCompleteFunction · 0.85

Calls 2

SizeMethod · 0.45
GetCharsMethod · 0.45

Tested by

no test coverage detected