From 709149ef91f06f6cc31bb632a88876ff6835cc44 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 6 Jun 2025 14:21:56 -0400 Subject: Option to ignore whitespace in searches --- python/binaryview.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'python') 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 \ -- cgit v1.3.1