Re: patch to change behavior of g_strsplit on empty string back to 1.2 behavior



Dan Winship <danw ximian com> writes:

> > Well, there is clearly one thing missing here ... the corresponding
> > change to the documentation (docs/glib/tmpl/string_utils.sgml) :-)
> > 
> > That needs a comment to the point:
> > 
> >  "The result of a splitting an empty string is an empty vector"
> 
> and also "an empty trailing segment is discarded", since that's the
> confusing behavior that inspired me to write the original bug report
> that resulted in the patch that this patch is reverting...

Actually Darin's patch doesn't actually revert that part of the change,
except for the completely empty string.

Regards,
                                        Owen




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