IDAPython 8.4
Loading...
Searching...
No Matches
Strings Class Reference
Inheritance diagram for Strings:

Classes

class  StringItem
 

Public Member Functions

 clear_cache (self)
 
 __init__ (self, default_setup=False)
 
 refresh (self)
 
 setup (self, strtypes=[ida_nalt.STRTYPE_C], minlen=5, only_7bit=True, ignore_instructions=False, display_only_existing_strings=False)
 
 __iter__ (self)
 
 __getitem__ (self, index)
 

Public Attributes

int size = 0
 

Protected Member Functions

 _get_item (self, index)
 

Protected Attributes

 _si = ida_strlist.string_info_t()
 

Detailed Description

Allows iterating over the string list. The set of strings will not be
modified, unless asked explicitly at setup()-time. This string list also
is used by the "String window" so it may be changed when this window is
updated.

Example:
    s = Strings()

    for i in s:
        print("%x: len=%d type=%d -> '%s'" % (i.ea, i.length, i.strtype, str(i)))

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
default_setup = False )
Initializes the Strings enumeration helper class

@param default_setup: Set to True to use default setup (C strings, min len 5, ...)

Member Function Documentation

◆ __getitem__()

__getitem__ ( self,
index )
Returns a string item or None

◆ __iter__()

__iter__ ( self)

◆ _get_item()

_get_item ( self,
index )
protected

◆ clear_cache()

clear_cache ( self)
Clears the string list cache

◆ refresh()

refresh ( self)
Refreshes the string list

◆ setup()

setup ( self,
strtypes = [ida_nalt.STRTYPE_C],
minlen = 5,
only_7bit = True,
ignore_instructions = False,
display_only_existing_strings = False )

Member Data Documentation

◆ _si

_si = ida_strlist.string_info_t()
protected

◆ size

size = 0

The documentation for this class was generated from the following file: