-int replace(BufferView * bv,
- std::string const & search, std::string const & replace,
- bool cs, bool mw, bool fw);
-/**
- * This function replaces all ocurrences of \param search with
- * the string \param replace
- *
- * \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.
+/** Encode the parameters needed to replace \c search with \c replace
+ * as a string that can be dispatched to the LyX core in a FuncRequest
+ * wrapper.