IDA C++ SDK 9.2
Loading...
Searching...
No Matches
search.hpp
Go to the documentation of this file.
1/*
2 * Interactive disassembler (IDA).
3 * ALL RIGHTS RESERVED.
4 * Copyright (c) 1990-2025 Hex-Rays
5 *
6 */
7
8#ifndef __SEARCH_HPP
9#define __SEARCH_HPP
10
17
20#define SEARCH_UP 0x000
21#define SEARCH_DOWN 0x001
22#define SEARCH_NEXT 0x002
25#define SEARCH_CASE 0x004
26#define SEARCH_REGEX 0x008
27#define SEARCH_NOBRK 0x010
28#define SEARCH_NOSHOW 0x020
29#define SEARCH_IDENT 0x080
32#define SEARCH_BRK 0x100
33#define SEARCH_USE 0x200
34#define SEARCH_DEF 0x400
35#define SEARCH_USESEL 0x800
38
39
41
42inline THREAD_SAFE bool search_down(int sflag) { return (sflag & SEARCH_DOWN) != 0; }
43
44
51
52
54
55idaman ea_t ida_export find_error(ea_t ea, int sflag, int *opnum=nullptr);
56
57
59
60idaman ea_t ida_export find_notype(ea_t ea, int sflag, int *opnum=nullptr);
61
62
64
65idaman ea_t ida_export find_unknown(ea_t ea, int sflag);
66
67
69
70idaman ea_t ida_export find_defined(ea_t ea, int sflag);
71
72
74
75idaman ea_t ida_export find_suspop(ea_t ea, int sflag, int *opnum=nullptr);
76
77
79
80idaman ea_t ida_export find_data(ea_t ea, int sflag);
81
82
84
85idaman ea_t ida_export find_code(ea_t ea, int sflag);
86
87
89
90idaman ea_t ida_export find_not_func(ea_t ea, int sflag);
91
92
94
95idaman ea_t ida_export find_imm(ea_t ea, int sflag, uval_t search_value, int *opnum=nullptr);
96
97
99
100idaman ea_t ida_export find_text(ea_t start_ea, int y, int x, const char *ustr, int sflag);
101
102
119idaman ea_t ida_export find_reg_access(
120 struct reg_access_t *out,
121 ea_t start_ea,
122 ea_t end_ea,
123 const char *regname,
124 int sflag);
125
127
128class place_t;
129
130
152
153idaman int ida_export search(
154 void *ud,
155 place_t *start,
156 const place_t *end,
157 int *startx,
158 const char *str,
159 int sflag);
160
161#endif // __SEARCH_HPP
Denotes a displayed line.
Definition kernwin.hpp:1418
idaman const char * end
Definition pro.h:1001
uval_t uval_t
Definition kernwin.hpp:1878
uint64 ea_t
Definition pro.h:421
idaman int ida_export search(void *ud, place_t *start, const place_t *end, int *startx, const char *str, int sflag)
Search for a text substring (low level function).
idaman ea_t ida_export find_notype(ea_t ea, int sflag, int *opnum=nullptr)
Find next operand without any type info.
THREAD_SAFE bool search_down(int sflag)
Is the SEARCH_DOWN bit set?
Definition search.hpp:42
idaman ea_t ida_export find_suspop(ea_t ea, int sflag, int *opnum=nullptr)
Find next suspicious operand.
idaman ea_t ida_export find_error(ea_t ea, int sflag, int *opnum=nullptr)
Find next error or problem.
idaman ea_t ida_export find_text(ea_t start_ea, int y, int x, const char *ustr, int sflag)
See search()
idaman ea_t ida_export find_data(ea_t ea, int sflag)
Find next data address.
idaman ea_t ida_export find_not_func(ea_t ea, int sflag)
Find next code address that does not belong to a function.
idaman ea_t ida_export find_code(ea_t ea, int sflag)
Find next code address.
idaman ea_t ida_export find_reg_access(struct reg_access_t *out, ea_t start_ea, ea_t end_ea, const char *regname, int sflag)
Find access to a register.
idaman ea_t ida_export find_imm(ea_t ea, int sflag, uval_t search_value, int *opnum=nullptr)
Find next immediate operand with the given value.
idaman ea_t ida_export find_unknown(ea_t ea, int sflag)
Find next unexplored address.
idaman ea_t ida_export find_defined(ea_t ea, int sflag)
Find next ea that is the start of an instruction or data.
Information about a register accessed by an instruction.
Definition idp.hpp:2740