Re: Moving gnome-string routines into glib



On Mon, 19 Oct 1998, Elliot Lee wrote:

> gchar **gnome_string_split (gchar *string,
>                             gchar *delim,
>                             gint max_tokens);
> gchar * gnome_string_join  (gchar *separator, ...);

this is already in place as g_strconcat().

> gchar * gnome_string_joinv (gchar *separator,
>                             gchar **strings);
> gchar * gnome_string_chomp (gchar *astring,
>                             gboolean in_place);

_chomp cuts of spaces at the end of the string as far as i figured?
i think a function g_strstrip() that would strip off leading spaces
as well would be more usefull.

> /* Frees each element of the NULL-terminated array, then the
>    array memory itself */
> void    gnome_string_array_free (gchar **strarray);
> 
> Would anyone mind if I did s/gnome_string/g_str/ and moved them into glib?

> -- Elliot
> 

---
ciaoTJ



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