summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-06-06 14:21:56 -0400
committerGlenn Smith <glenn@vector35.com>2025-06-06 15:27:37 -0400
commit709149ef91f06f6cc31bb632a88876ff6835cc44 (patch)
tree1f7e1b158295cf8ee0faffb0a095f8ae01577bc9 /python/binaryview.py
parentf5ca152c06e528440da22797bb1762d8c208a98f (diff)
Option to ignore whitespace in searches
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index d320d675..466f4e0f 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -8921,7 +8921,7 @@ to a the type "tagRECT" found in the typelibrary "winX64common"
def find_next_text(
self, start: int, text: str, settings: Optional[_function.DisassemblySettings] = None,
- flags: FindFlag = FindFlag.FindCaseSensitive,
+ flags: int = FindFlag.FindCaseSensitive,
graph_type: _function.FunctionViewTypeOrName = FunctionGraphType.NormalFunctionGraph
) -> Optional[int]:
"""
@@ -8931,13 +8931,14 @@ to a the type "tagRECT" found in the typelibrary "winX64common"
:param int start: virtual address to start searching from.
:param str text: text to search for
:param DisassemblySettings settings: disassembly settings
- :param FindFlag flags: (optional) defaults to case-insensitive data search
+ :param FindFlag flags: (optional) bit-flags list of options, defaults to case-insensitive data search
==================== ============================
FindFlag Description
==================== ============================
FindCaseSensitive Case-sensitive search
FindCaseInsensitive Case-insensitive search
+ FindIgnoreWhitespace Ignore whitespace characters
==================== ============================
:param FunctionViewType graph_type: the IL to search within
"""
@@ -9087,13 +9088,14 @@ to a the type "tagRECT" found in the typelibrary "winX64common"
:param str text: text to search for
:param DisassemblySettings settings: DisassemblySettings object used to render the text \
to be searched
- :param FindFlag flags: (optional) defaults to case-insensitive data search
+ :param FindFlag flags: (optional) bit-flags list of options, defaults to case-insensitive data search
==================== ============================
FindFlag Description
==================== ============================
FindCaseSensitive Case-sensitive search
FindCaseInsensitive Case-insensitive search
+ FindIgnoreWhitespace Ignore whitespace characters
==================== ============================
:param FunctionViewType graph_type: the IL to search within
:param callback progress_func: optional function to be called with the current progress \