Alfredo Braunstein wrote:
> This is what's left in my tree. lyxfind.C attached separately as is
> has been completely overhauled.
>
> Should solve all existing s&r and spellchecking problems and has a
> much nicer (and shorter) code.
>
> (the removal of all recursive spellchecking code is still missing
> and it has already a pretty negative linecount)
>
> I'll break up and send in little pieces.
>
> Alfredo
Rather than this:
Index: lyxfind.h
int replace(BufferView * bv,
- std::string const &, std::string const &,
- bool, bool = true, bool = false,
- bool = false, bool = false);
+ std::string const & /*search*/, std::string const & /*repl*/,
+ bool /*cs*/, bool /*mw*/, bool /*fw*/);
I'd prefer this:
/** \param bv the BufferView in which the search is to be performed,
* starting at the current cursor position.
* \param search the string we're looking for.
* \param replace if \c search is found, replace it with this.
* \param cs perform a case-sensitive search for \c search.
* \param mw match whole words only.
* \param fw search forward from the current cursor position.
*/
int replace(BufferView * bv,
std::string const & search, std::string const & replace,
bool cs, bool mw, bool fw);
--
Angus