From 3224daa0eefef7e2f5e52b49ae6d0a47d33280a3 Mon Sep 17 00:00:00 2001 From: Alex Anderson Date: Sun, 23 Oct 2022 04:43:30 -0700 Subject: [PATCH] Add case insensitive string search (#2817) --- src/widgets/SearchWidget.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/widgets/SearchWidget.cpp b/src/widgets/SearchWidget.cpp index fc5e5d43..0fcb9f8e 100644 --- a/src/widgets/SearchWidget.cpp +++ b/src/widgets/SearchWidget.cpp @@ -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: