SourceSearchContext.replaceAll

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 Regex.checkReplacement. The replace text can contain backreferences; read the Regex.replace documentation for more details.

class SourceSearchContext
uint
replaceAll
(
string replace
,)

Parameters

replace string

the replacement text.

replaceLength int

the length of replace in bytes, or -1.

Return Value

Type: uint

the number of replaced matches.

Throws

GException on failure.

Meta

Since

3.10