Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_search.h>
Go to the source code of this file.
Functions | |
static int | ignoreMask (const ut8 *bm, int len) |
RZ_API RzSearchKeyword * | rz_search_keyword_new (const ut8 *kwbuf, int kwlen, const ut8 *bmbuf, int bmlen, const char *data) |
RZ_API void | rz_search_keyword_free (RzSearchKeyword *kw) |
RZ_API RzSearchKeyword * | rz_search_keyword_new_str (const char *kwbuf, const char *bmstr, const char *data, int ignore_case) |
RZ_API RzSearchKeyword * | rz_search_keyword_new_wide (const char *kwbuf, const char *bmstr, const char *data, int ignore_case) |
RZ_API RzSearchKeyword * | rz_search_keyword_new_hex (const char *kwstr, const char *bmstr, const char *data) |
RZ_API RzSearchKeyword * | rz_search_keyword_new_hexmask (const char *kwstr, const char *data) |
RZ_API RzSearchKeyword * | rz_search_keyword_new_regexp (const char *str, const char *data) |
RZ_API void rz_search_keyword_free | ( | RzSearchKeyword * | kw | ) |
Definition at line 49 of file keyword.c.
References rz_search_keyword_t::bin_binmask, rz_search_keyword_t::bin_keyword, and free().
Referenced by analysis_preludes(), rz_search_keyword_new(), rz_search_keyword_new_regexp(), and rz_search_new().
RZ_API RzSearchKeyword* rz_search_keyword_new | ( | const ut8 * | kwbuf, |
int | kwlen, | ||
const ut8 * | bmbuf, | ||
int | bmlen, | ||
const char * | data | ||
) |
Definition at line 16 of file keyword.c.
References rz_search_keyword_t::bin_binmask, rz_search_keyword_t::bin_keyword, rz_search_keyword_t::binmask_length, rz_search_keyword_t::data, ignoreMask(), rz_search_keyword_t::keyword_length, malloc(), memcpy(), NULL, RZ_NEW0, rz_search_keyword_free(), RZ_SEARCH_KEYWORD_TYPE_BINARY, and rz_search_keyword_t::type.
Referenced by rz_cmd_search(), rz_core_search_prelude(), rz_search_keyword_new_hex(), rz_search_keyword_new_hexmask(), rz_search_keyword_new_str(), and rz_search_keyword_new_wide().
RZ_API RzSearchKeyword* rz_search_keyword_new_hex | ( | const char * | kwstr, |
const char * | bmstr, | ||
const char * | data | ||
) |
Definition at line 132 of file keyword.c.
References free(), malloc(), NULL, rz_hex_str2bin(), and rz_search_keyword_new().
Referenced by rz_cmd_search(), and rzfind_open_file().
RZ_API RzSearchKeyword* rz_search_keyword_new_hexmask | ( | const char * | kwstr, |
const char * | data | ||
) |
Definition at line 173 of file keyword.c.
References free(), len, malloc(), NULL, rz_hex_str2binmask(), and rz_search_keyword_new().
Referenced by rz_cmd_search(), and rzfind_open_file().
RZ_API RzSearchKeyword* rz_search_keyword_new_regexp | ( | const char * | str, |
const char * | data | ||
) |
Definition at line 196 of file keyword.c.
References rz_search_keyword_t::bin_keyword, rz_search_keyword_t::data, i, rz_search_keyword_t::icase, isalpha, isspace, rz_search_keyword_t::keyword_length, length, malloc(), memcpy(), NULL, RZ_NEW0, rz_search_keyword_free(), RZ_SEARCH_KEYWORD_TYPE_STRING, start, cmd_descs_generate::str, and rz_search_keyword_t::type.
Referenced by rz_cmd_search().
RZ_API RzSearchKeyword* rz_search_keyword_new_str | ( | const char * | kwbuf, |
const char * | bmstr, | ||
const char * | data, | ||
int | ignore_case | ||
) |
Definition at line 58 of file keyword.c.
References free(), rz_search_keyword_t::icase, ignore_case, malloc(), NULL, RZ_FREE, rz_hex_str2bin(), rz_search_keyword_new(), RZ_SEARCH_KEYWORD_TYPE_STRING, and rz_search_keyword_t::type.
Referenced by rzfind_open_file().
RZ_API RzSearchKeyword* rz_search_keyword_new_wide | ( | const char * | kwbuf, |
const char * | bmstr, | ||
const char * | data, | ||
int | ignore_case | ||
) |
Definition at line 82 of file keyword.c.
References eprintf, free(), rz_search_keyword_t::icase, ignore_case, len, malloc(), NULL, p, RZ_FREE, rz_hex_str2bin(), rz_search_keyword_new(), rz_utf16le_encode(), rz_utf8_decode(), rz_warn_if_fail, cmd_descs_generate::str, and tolower.
Referenced by rzfind_open_file().