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

Method indexNotOf

gui/qt/debugger/hexwidget.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int HexWidget::indexNotOf(const QByteArray &ba) {
120 int res = -1;
121 QByteArray buffer{m_data.mid(m_cursorOffset, m_maxOffset)};
122 std::size_t found = buffer.toStdString().find_first_not_of(ba.toStdString());
123 if (found != std::string::npos) {
124 setOffset(res = static_cast<int>(found));
125 }
126 return res;
127}
128
129void HexWidget::setOffset(int offset) {
130 setCursorOffset(offset * 2);

Callers 1

memSearchEditMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected