Function
AppStreamgstring_replace
Declaration [src]
guint
as_gstring_replace (
GString* string,
const gchar* find,
const gchar* replace,
guint limit
)
Description [src]
Replaces the string find with the string replace in a GString up to
limit times. If the number of instances of find in the GString is
less than limit, all instances are replaced. If limit is 0,
all instances of find are replaced.
Parameters
string |
GString |
A |
|
| The data is owned by the caller of the function. | |
find |
const gchar* |
The string to find in |
|
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
replace |
const gchar* |
The string to insert in place of |
|
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
limit |
guint |
The maximum instances of |