Re: string replace function



On 12/06/2011 03:56 AM, Kevin Anthony wrote:
I was thinking of making a g_strrpl and g_strnrpl
The first one takes (gchar*,gchar*) and returns a gchar* in which the all
instances of the second gchar* will be found and replaced in the first
gchar*.
replaced by what? g_strcannon can be used for some of the user cases
maybe. Also g_strrpl is not a good name, it would be better to just call
it g_strreplace.

Stefan
The second one is the same, but only replaces the first n instances.

But what i would like to know, is if i write this, and include it in the
glib/gstrfuncs.c in a patch, would it be included.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]