MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / tabComplete

Method tabComplete

Engine/source/console/consoleInternal.cpp:447–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447const char *Dictionary::tabComplete(const char *prevText, S32 baseLen, bool fForward)
448{
449 S32 i;
450
451 const char *bestMatch = NULL;
452 for (i = 0; i < hashTable->size; i++)
453 {
454 Entry *walk = hashTable->data[i];
455 while (walk)
456 {
457 if (canTabComplete(prevText, bestMatch, walk->name, baseLen, fForward))
458 bestMatch = walk->name;
459 walk = walk->nextEntry;
460 }
461 }
462 return bestMatch;
463}
464
465Dictionary::Entry::Entry(StringTableEntry in_name)
466{

Callers

nothing calls this directly

Calls 1

canTabCompleteFunction · 0.85

Tested by

no test coverage detected