replaceAll

open fun replaceAll(replace: String, replaceLength: Int): <Error class: unknown class><<Error class: unknown class>>

Replaces all search matches by another text.

It is a synchronous function, so it can block the user interface.

For a regular expression replacement, you can check if @replace is valid by calling func@GLib.Regex.check_replacement. The @replace text can contain backreferences.

Return

the number of replaced matches.

Parameters

replace

the replacement text.

replaceLength

the length of @replace in bytes, or -1.