MCPcopy Index your code
hub / github.com/NetHack/NetHack / Search

Method Search

outdated/win/Qt3/qt3_win.cpp:3004–3014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3002}
3003
3004void NetHackQtMenuWindow::Search()
3005{
3006 NetHackQtStringRequestor requestor(keysource,"Search for:");
3007 char line[256];
3008 if (requestor.Get(line)) {
3009 for (int i=0; i<itemcount; i++) {
3010 if (strstr(item[i].str,line))
3011 ToggleSelect(i);
3012 }
3013 }
3014}
3015
3016void NetHackQtMenuWindow::ToggleSelect(int i)
3017{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
GetMethod · 0.45
SetDefaultMethod · 0.45

Tested by

no test coverage detected