Fixed some typos in comments and messages.
[AROS.git] / workbench / tools / Edit / Search.h
blob441ed555829a708b1cdbe93bbe88b2f47ec3d0cd
1 /**********************************************************
2 ** **
3 ** $VER: Search.h 1.0 (5 aug 2000) **
4 ** Prototypes for searching through buffer **
5 ** **
6 ** © T.Pierron, C.Guilaume. Free software under **
7 ** terms of GNU public license. **
8 ** **
9 **********************************************************/
11 #ifndef SEARCH_H
12 #define SEARCH_H
14 /* Search through buffer for next (dir > 0) or previous (dir < 0) occurency **
15 ** of registered pattern (or the one displayed in search window). Move the **
16 ** cursor to the line, and scroll display if necessary. */
17 void FindPattern( Project, BYTE dir );
19 /* Replace the pattern if word just under cursor correspond to the registe- **
20 ** red pattern. If not search for next occurency, but replace nothing */
21 void ReplacePattern( Project );
23 /* Replace all pattern of the file, starting from top. Cursor won't be moved */
24 void ReplaceAllPat( Project );
26 /* Search for next (dir > 0) or previous (dir > 0) occurency of word under **
27 ** cursor. Use global word separator, and registered it as a new pattern */
28 void FindWord( Project, BYTE dir );
30 /* Open search window, and init search string gadget with selected text if **
31 ** any. If window were already opened, it is activated and pop to front */
32 BYTE setup_winsearch( Project, UBYTE replace);
34 /* Ask user for a number of line into a new simple window and jump cursor to */
35 void goto_line( Project );
37 /* Move cursor and display to matching bracket under cursor */
38 void match_bracket( Project );
40 /* Close and free ressource associated to search window, registering (really **
41 ** == TRUE) or not (really == FALSE), patterns in the edit areas */
42 void close_searchwnd( BYTE really );
44 /* Init case insensitive table for searching faster than Stricmp() */
45 void init_searchtable( void );
47 /* Asynchronous events handler for search window */
48 void handle_search( void );
50 /* Messages for search/replace window */
51 extern STRPTR JanoMessages[];
52 #define SWinTxt (JanoMessages + (MSG_SEARCHWINDOW - ERR_BADOS))
54 #endif