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 g_regex_check_replacement(). The replace text can contain backreferences; read the g_regex_replace() documentation for more details.

class SourceSearchContext
uint
replaceAll
(
string replace
)

Parameters

replace string

the replacement text.

Return Value

Type: uint

the number of replaced matches. Since 3.10

Throws

GException on failure.

Meta