| 106 | } |
| 107 | |
| 108 | int HexWidget::indexOf(const QByteArray &ba) { |
| 109 | int res = m_data.indexOf(ba, m_cursorOffset / 2 + 1); |
| 110 | if (res >= 0) { |
| 111 | m_selectStart = res; |
| 112 | m_selectLen = ba.size(); |
| 113 | m_selectEnd = m_selectStart + m_selectLen - 1; |
| 114 | setCursorOffset(res * 2, false); |
| 115 | } |
| 116 | return res; |
| 117 | } |
| 118 | |
| 119 | int HexWidget::indexNotOf(const QByteArray &ba) { |
| 120 | int res = -1; |
no outgoing calls
no test coverage detected