Searches str for occurances of pattern and replaces each such occurance with replacement.
Returns a newly allocated copy of str on which the given replacement were performed. The caller is responsible to free the
returned string using g_free when no longer needed.
Note that pattern and replacement don't need to be of the same size. If replacement is
null, the pattern will be removed from the string.
Note for future Xfce developers: Deprecate this function when replace is available. (Added since Glib >= 2.68)
| str |
the input string. |
| pattern |
a search pattern in |
| replacement |
replacement string for |
|
a newly allocated copy of |