File: search.h

package info (click to toggle)
jeex 12.0.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 980 kB
  • sloc: ansic: 9,841; makefile: 124
file content (144 lines) | stat: -rw-r--r-- 4,002 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
 * "search.h" (C) Davide Francesco "HdS619" Merico ( hds619@gmail.com )
 *
 * Jeex is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Jeex is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
*/

#ifndef _SEARCH_HEADER
#define _SEARCH_HEADER

/* ac_strcasecmp ()
 *
 * Redirect functions to strcasecmp, created especially to
 * work as GCompareDataFunc paramater.
 * Returns 0 if strings are equal, otherwhise 1 or -1.
 */
extern int ac_strcasecmp (const void *, const void *);

/* ac_add_string ()
 *
 * Add the passed string as parameter to the list of the
 * automatic completion strings.
 */
extern void ac_add_string (char *);

/* ac_string_exist ()
 *
 * Tests that the string passed as parameter is in the 
 * list of the strings in the automatic completion list.
 * Returns TRUE if the string is present, otherwhise FALSE.
 */
extern gboolean ac_string_exist (char *);

/* regex_search_text () */
extern void *regex_search_text (GtkWidget *, void *);

/* regex_entry_clear () */
extern void *regex_entry_clear (GtkWidget *, void *);

/* find_text ()
 *
 * Show the dialog for text search. Paramters can be 
 * omitted with NULL.
 * Returns NULL.
 */
extern void *find_text (GtkWidget *, void *);

/* find_this_text ()
 *
 * Find the text inserted in research dialog, in the hexadecimal
 * text and tags apply. Second parameters must be a GtkEntry which
 * get the search text, the first can be omitted with NULL.
 * Returns NULL.
 */
extern void *find_this_text (GtkWidget *, void *);

/* reset_tag ()
 *
 * Delete all tags applied to the text. Parameters can be
 * omitted with NULL.
 * Returns NULL.
 */
extern void *reset_tag (GtkWidget *, void *);

/* find_method ()
 *
 * Change the research method dependent of the second parameter:
 * FALSE - forward, TRUE - backward. First parameter can be
 * omitted with NULL.
 * Returns NULL.
 */
extern void *find_method (GtkWidget *, gboolean);

/* jump_to_offset ()
 *
 * Jump to offset inserted in the GtkEntry second parameter.
 * First parameter can be omitted with NULL.
 * Returns NULL.
 */
extern void *jump_to_offset (GtkWidget *, GtkEntry *);

/* jump_to_offset_gui ()
 *
 * Show a window where you can choose the offset address in 
 * which place the scrollbar. Parameters can be omitted with NULL.
 * Returns NULL. 
 */
extern void *jump_to_offset_gui (GtkWidget *, void **);

/* replace_text ()
 *
 * Show the dialog where search and replace text. Parameters
 * can be omitted with NULL.
 * Returns NULL.
 */
extern void *replace_text (GtkWidget *, void *);

/* regex_show_bar ()
 *
 * Show the regex bar to search a byte using the regex.
 * Parameters can be omitted with NULL.
 * Returns NULL.
 */
extern void *regex_show_bar (GtkWidget *, void **);

/* regex_close_bar ()
 *
 * Hide the regex bar. Parameters can be omitted with NULL.
 * Returns NULL.
 */
extern void *regex_close_bar (GtkWidget *, void **);

/* search_and_replace ()
 *
 * Search and replace all occurence that find in the text.
 * Second parameters must be a search_and_replace structure,
 * the first can be omitted with NULL.
 * Returns NULL.
 */
extern void *search_and_replace (GtkWidget *, void *);

/* single_replace ()
 *
 * Search and replace the first occurrence that find in text.
 * Second parameters must be a search_and_replace structure,
 * the first can be omitted with NULL.
 * Returns NULL.
 */
extern void *single_replace (GtkWidget *, void *);


#endif