IDA Domain Python API
ida_domain.Strings Class Reference

Inherits object.

Public Member Functions

def __init__ (self, database)
 
def get_count (self)
 
def get_at_index (self, index)
 
def get_at (self, ea)
 
def get_all (self)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Provides access to string-related operations in the IDA database.

Constructor & Destructor Documentation

◆ __init__()

def ida_domain.Strings.__init__ (   self,
  database 
)
__init__(self, database) -> Strings
Constructs a strings handler for the given database.

:param database: Reference to the active IDA database.

Member Function Documentation

◆ get_all()

def ida_domain.Strings.get_all (   self)
get_all(self) -> StringsIterator
Retrieves an iterator over all extracted strings in the database.

:return: A StringsIterator instance.

◆ get_at()

def ida_domain.Strings.get_at (   self,
  ea 
)
get_at(self, ea) -> BoolStringPair
Retrieves the string located at the specified address.

:param ea: The effective address.
:return: A pair (success, string content). If not found, success is false.

◆ get_at_index()

def ida_domain.Strings.get_at_index (   self,
  index 
)
get_at_index(self, index) -> EAStringPair
Retrieves the string at the specified index.

:param index: Index of the string to retrieve.
:return: A pair (effective address, string content) at the given index.

◆ get_count()

def ida_domain.Strings.get_count (   self)
get_count(self) -> int
Retrieves the total number of extracted strings.

:return: The number of stored strings.

Property Documentation

◆ thisown

ida_domain.Strings.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static