MCPcopy Create free account
hub / github.com/beefytech/Beef / GetAutocompleteOutput

Method GetAutocompleteOutput

IDEHelper/WinDebugger.cpp:10573–10609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10571}
10572
10573String WinDebugger::GetAutocompleteOutput(DwAutoComplete& autoComplete)
10574{
10575 String val = "\n:autocomplete\n";
10576
10577 if (autoComplete.mInsertStartIdx != -1)
10578 {
10579 val += StrFormat("insertRange\t%d %d\n", autoComplete.mInsertStartIdx, autoComplete.mInsertEndIdx);
10580 }
10581
10582 Array<AutoCompleteEntry*> entries;
10583
10584 for (auto& entry : autoComplete.mEntriesSet)
10585 {
10586 entries.Add(&entry);
10587 }
10588 std::sort(entries.begin(), entries.end(), [](AutoCompleteEntry* lhs, AutoCompleteEntry* rhs)
10589 {
10590 return stricmp(lhs->mDisplay, rhs->mDisplay) < 0;
10591 });
10592
10593 for (auto entry : entries)
10594 {
10595 val += String(entry->mEntryType);
10596 val += "\t";
10597 val += String(entry->mDisplay);
10598 val += "\n";
10599 }
10600
10601 /*if (autoComplete.mEntries.size() != 0)
10602 {
10603 for (auto& entry : autoComplete.mEntries)
10604 {
10605 val += String(entry.mEntryType) + "\t" + String(entry.mDisplay) + "\n";
10606 }
10607 }*/
10608 return val;
10609}
10610
10611String WinDebugger::EvaluateToAddress(const StringImpl& expr, int callStackIdx, int cursorPos)
10612{

Callers

nothing calls this directly

Calls 4

StringClass · 0.85
AddMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected