MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Find

Method Find

DebugView++/LogView.cpp:1578–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1576}
1577
1578bool CLogView::Find(const std::string& text, int direction)
1579{
1580 StopTracking();
1581
1582 int line = FindLine([text, this](const LogLine& line) { return Contains(m_logFile[line.line].text, text); }, direction);
1583 if (line < 0)
1584 return false;
1585
1586 bool sameLine = GetItemState(line, LVIS_FOCUSED) != 0;
1587 if (!sameLine)
1588 ScrollToIndex(line, true);
1589
1590 auto wtext = WStr(text).str();
1591 if (sameLine && wtext == m_highlightText)
1592 return false;
1593
1594 SetHighlightText(wtext);
1595 return true;
1596}
1597
1598bool CLogView::FindNext(const std::wstring& text)
1599{

Callers

nothing calls this directly

Calls 3

ContainsFunction · 0.85
WStrClass · 0.85
strMethod · 0.45

Tested by

no test coverage detected