Re: Some new GString functions - constructors
- From: "Alan M. Evans" <ame1 extratech com>
- To: Paul LeoNerd Evans <leonerd leonerd org uk>
- Cc: gtk-devel-list gnome org
- Subject: Re: Some new GString functions - constructors
- Date: Tue, 20 Dec 2005 15:26:45 -0800
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]