-int LyXReplace(BufferView * bv,
- string const &, string const &,
- bool, bool = true, bool = false,
- bool = false, bool = false);
+/** 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.
+ */
+std::string const replace2string(std::string const & search,
+ std::string const & replace,
+ bool casesensitive,
+ bool matchword,
+ bool all,
+ bool forward);