| 445 | |
| 446 | |
| 447 | const 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 | |
| 465 | Dictionary::Entry::Entry(StringTableEntry in_name) |
| 466 | { |
nothing calls this directly
no test coverage detected