IDA Domain
Strings::Iterator Class Reference

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

#include <string.hpp>

Public Member Functions

 Iterator (const Database &database)
 Constructs a string iterator for the given database. More...
 
std::pair< ea_t, std::string > get_first ()
 Retrieves the first string in the database. More...
 
std::pair< ea_t, std::string > get_next ()
 Retrieves the next string in the database. More...
 

Detailed Description

Iterator for strings extracted from the IDA database.

Constructor & Destructor Documentation

◆ Iterator()

Strings::Iterator::Iterator ( const Database database)
inline

Constructs a string iterator for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ get_first()

std::pair<ea_t, std::string> Strings::Iterator::get_first ( )

Retrieves the first string in the database.

Returns
A pair (effective address, string content). If none found, the string is empty.

◆ get_next()

std::pair<ea_t, std::string> Strings::Iterator::get_next ( )

Retrieves the next string in the database.

Returns
A pair (effective address, string content). If no more strings, the string is empty.

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