18 if (kwlen < 1 || bmlen < 0) {
26 kw->
data = (
void *)data;
34 if (bmbuf && bmlen > 0 && !
ignoreMask(bmbuf, bmlen)) {
64 bmbuf =
malloc(strlen(bmstr) + 1);
91 bmbuf =
malloc(strlen(bmstr) + 1);
103 for (p2 = kwbuf,
p =
str; *p2;) {
106 if (num_utf8_bytes < 1) {
107 eprintf(
"WARNING: Malformed UTF8 at pos %td\n", p2 - kwbuf);
119 p2 += num_utf8_bytes;
135 int kwlen, bmlen = 0;
141 kwbuf =
malloc(strlen(kwstr) + 1);
153 if (bmstr && *bmstr) {
154 bmbuf =
malloc(strlen(bmstr) + 1);
177 int len = strlen(kwstr);
204 if (
str[
i++] !=
'/') {
211 if (
str[
i] ==
'/' &&
str[
i - 1] !=
'\\') {
218 if (
str[
i++] !=
'/') {
242 kw->
data = (
void *)data;
245 for (;
str[
i];
i++) {
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
RZ_API void Ht_() free(HtName_(Ht) *ht)
static int ignoreMask(const ut8 *bm, int len)
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 void rz_search_keyword_free(RzSearchKeyword *kw)
RZ_API RzSearchKeyword * rz_search_keyword_new_regexp(const char *str, const char *data)
RZ_API RzSearchKeyword * rz_search_keyword_new(const ut8 *kwbuf, int kwlen, const ut8 *bmbuf, int bmlen, const char *data)
RZ_API RzSearchKeyword * rz_search_keyword_new_hexmask(const char *kwstr, const char *data)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t size)
#define rz_warn_if_fail(expr)
RZ_API int rz_hex_str2bin(const char *in, ut8 *out)
Convert an input string in into the binary form in out.
RZ_API int rz_hex_str2binmask(const char *in, ut8 *out, ut8 *mask)
#define RZ_SEARCH_KEYWORD_TYPE_STRING
#define RZ_SEARCH_KEYWORD_TYPE_BINARY
RZ_API int rz_utf16le_encode(ut8 *ptr, RzRune ch)
RZ_API int rz_utf8_decode(const ut8 *ptr, int ptrlen, RzRune *ch)