6 #include "support/types.h"
24 int replace(BufferView * bv,
25 string const &, string const &,
26 bool, bool = true, bool = false,
27 bool = false, bool = false);
30 * This function is called as a general interface to find some
31 * text from the actual cursor position in whatever direction
32 * we want to go. This does also update the screen.
34 bool find(BufferView *,
35 string const & searchstr, bool forward,
36 bool casesens = true, bool matchwrd = false);
39 * This function does search from the cursor position inside the
40 * passed LyXText parameter and regards this LyXText as the root
41 * LyXText. It will NOT update any screen stuff. It will however
42 * set the cursor to the new position inside LyXText, before
43 * returning to the calling function.
46 SearchResult find(BufferView *, LyXText * text,
47 string const & searchstr, bool forward,
48 bool casesens = true, bool matchwrd = false);
50 /// find the next change in the buffer
51 bool findNextChange(BufferView * bv);
53 SearchResult findNextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
55 SearchResult nextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);