MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ArgCompletion

Method ArgCompletion

neo/framework/CmdSystem.cpp:450–465  ·  view source on GitHub ↗

============ idCmdSystemLocal::ArgCompletion ============ */

Source from the content-addressed store, hash-verified

448============
449*/
450void idCmdSystemLocal::ArgCompletion( const char *cmdString, void(*callback)( const char *s ) ) {
451 commandDef_t *cmd;
452 idCmdArgs args;
453
454 args.TokenizeString( cmdString, false );
455
456 for ( cmd = commands; cmd; cmd = cmd->next ) {
457 if ( !cmd->argCompletion ) {
458 continue;
459 }
460 if ( idStr::Icmp( args.Argv( 0 ), cmd->name ) == 0 ) {
461 cmd->argCompletion( args, callback );
462 break;
463 }
464 }
465}
466
467/*
468============

Callers 1

AutoCompleteMethod · 0.45

Calls 2

TokenizeStringMethod · 0.80
ArgvMethod · 0.80

Tested by

no test coverage detected