IDA Domain
Strings Class Reference

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

#include <string.hpp>

Classes

class  Iterator
 Iterator for strings extracted from the IDA database. More...
 

Public Member Functions

 Strings (const Database &database)
 Constructs a strings handler for the given database. More...
 
int get_count () const
 Retrieves the total number of extracted strings. More...
 
std::pair< ea_t, std::string > get_at_index (int index) const
 Retrieves the string at the specified index. More...
 
std::pair< bool, std::string > get_at (const ea_t ea) const
 Retrieves the string located at the specified address. More...
 
Iterator get_all () const
 Retrieves an iterator over all extracted strings in the database. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Strings()

Strings::Strings ( const Database database)
inline

Constructs a strings handler for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ get_all()

Iterator Strings::get_all ( ) const
inline

Retrieves an iterator over all extracted strings in the database.

Returns
A StringsIterator instance.

◆ get_at()

std::pair<bool, std::string> Strings::get_at ( const ea_t  ea) const

Retrieves the string located at the specified address.

Parameters
eaThe effective address.
Returns
A pair (success, string content). If not found, success is false.

◆ get_at_index()

std::pair<ea_t, std::string> Strings::get_at_index ( int  index) const

Retrieves the string at the specified index.

Parameters
indexIndex of the string to retrieve.
Returns
A pair (effective address, string content) at the given index.

◆ get_count()

int Strings::get_count ( ) const

Retrieves the total number of extracted strings.

Returns
The number of stored strings.

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