On Tue, 2005-12-20 at 15:18, Alan M. Evans wrote:
> On Tue, 2005-12-20 at 14:36, Paul LeoNerd Evans wrote:
> 
> >   typedef GList GStringList;
> 
> Not entirely certain I like this. See below.
> 
> >   GStringList* g_string_split(GString *str, gchar c);
> 
> Seems to me this should return a gchar** a-la g_strsplit().

I take that back. I can always use g_strsplit() on the GString contents.
On further consideration, I suppose that your GList contains GStrings,
not gchar pointers. Still not certain that g_string_split() is the best
name. And not certain that GList is the best container for the returned
data. Do you really not mind 24 bytes of overhead for every returned
token? (12 bytes for GList + 12 bytes for GString)

> My opinion: GLib could use more support functions for string arrays.

I do not take this back.


_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to