replace

fun replace(find: String, replace: String, limit: <Error class: unknown class>): <Error class: unknown class>

Replaces the string @find with the string @replace in a #GString up to

Return

the number of find and replace operations performed.

Since

2.68

Parameters

find

the string to find in @string

replace

the string to insert in place of @find

limit

the maximum instances of @find to replace with @replace, or 0 for no limit