Add case insensitive string search (#2817)

This commit is contained in:
Alex Anderson 2022-10-23 04:43:30 -07:00 committed by GitHub
parent 0624cd1d19
commit 3224daa0ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,6 +254,7 @@ void SearchWidget::refreshSearchspaces()
ui->searchspaceCombo->clear();
ui->searchspaceCombo->addItem(tr("asm code"), QVariant("/acj"));
ui->searchspaceCombo->addItem(tr("string"), QVariant("/j"));
ui->searchspaceCombo->addItem(tr("string (case insensitive)"), QVariant("/ij"));
ui->searchspaceCombo->addItem(tr("hex string"), QVariant("/xj"));
ui->searchspaceCombo->addItem(tr("ROP gadgets"), QVariant("/Rj"));
ui->searchspaceCombo->addItem(tr("32bit value"), QVariant("/vj"));
@ -301,13 +302,16 @@ void SearchWidget::updatePlaceholderText(int index)
case 1: // string
ui->filterLineEdit->setPlaceholderText("foobar");
break;
case 2: // hex string
case 2: // string (case insensitive)
ui->filterLineEdit->setPlaceholderText("FooBar");
break;
case 3: // hex string
ui->filterLineEdit->setPlaceholderText("deadbeef");
break;
case 3: // ROP gadgets
case 4: // ROP gadgets
ui->filterLineEdit->setPlaceholderText("pop,,pop");
break;
case 4: // 32bit value
case 5: // 32bit value
ui->filterLineEdit->setPlaceholderText("0xdeadbeef");
break;
default: