MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / indexPrevOf

Method indexPrevOf

gui/qt/debugger/hexwidget.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87int HexWidget::indexPrevOf(const QByteArray &ba) {
88 int res = m_data.mid(0, m_cursorOffset / 2).lastIndexOf(ba);
89 if (res >= 0) {
90 m_selectStart = res;
91 m_selectLen = ba.size();
92 m_selectEnd = m_selectStart + m_selectLen - 1;
93 setCursorOffset(res * 2, false);
94 }
95 return res;
96}
97
98int HexWidget::indexPrevNotOf(const QByteArray &ba) {
99 int res = -1;

Callers 1

memSearchEditMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected