gstring_replace


Description:


public uint gstring_replace (StringBuilder string, string find, string replace, uint limit)

Replaces the string find with the string replace in a StringBuilder up to limit times.

If the number of instances of find in the StringBuilder is less than limit, all instances are replaced. If limit is `0`, all instances of find are replaced.

Parameters:

string

a StringBuilder

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

Returns:

the number of find and replace operations performed.


Namespace: AppStream
Package: appstream