glib / String handling difficult

2006-01-08 Thread Juhana Sadeharju
Hello. I have always found string handling quite difficult in C. It also looks like sed, awk, perl etc. cannot handle all of my simple needs. Glib could be improved. I need often an extractor which finds something from an arbitrary data. I have routines file2buffer(), which loads a file to buffer

Re: glib / String handling difficult

2006-01-09 Thread David Necas (Yeti)
On Mon, Jan 09, 2006 at 06:52:45AM +0200, Juhana Sadeharju wrote: > > Hello. I have always found string handling quite difficult in C. > It also looks like sed, awk, perl etc. cannot handle all of my > simple needs. Really cannot? What about... > Now more difficult example. I need to parse "12 p

Re: glib / String handling difficult

2006-01-09 Thread Jose Hevia
2006/1/9, Juhana Sadeharju <[EMAIL PROTECTED]>: > > Hello. I have always found string handling quite difficult in C. > It also looks like sed, awk, perl etc. cannot handle all of my > simple needs. Glib could be improved. I thought the same. > I need often an extractor which finds something from

Re: glib / String handling difficult

2006-01-11 Thread Juhana Sadeharju
>From: "Robert Thorpe" <[EMAIL PROTECTED]> > >Why is this needed in a graphical toolkit library? >Surely it's more appropriate to do it outside of GTK+. glib *is* outside of gtk...? >the regex library in the glibc. I don't remember now why it failed for me, but I tried. Juhana -- http://musi

Re: glib / String handling difficult

2006-01-11 Thread Paul Davis
On Wed, 2006-01-11 at 15:31 +0200, Juhana Sadeharju wrote: > >From: "Robert Thorpe" <[EMAIL PROTECTED]> > > > >Why is this needed in a graphical toolkit library? > >Surely it's more appropriate to do it outside of GTK+. > > glib *is* outside of gtk...? completely separate library. GTK requires gl

RE: glib / String handling difficult[Scanned]

2006-01-09 Thread Robert Thorpe
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jose Hevia > Sent: 09 January 2006 11:45 > To: gtk-list@gnome.org > Subject: Re: glib / String handling difficult[Scanned] > > 2006/1/9, Juhana Sadeharju <[EMAIL PROTECT

RE: glib / String handling difficult[Scanned]

2006-01-12 Thread Robert Thorpe
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Juhana Sadeharju > Sent: 11 January 2006 13:31 > To: gtk-list@gnome.org > Subject: Re: glib / String handling difficult[Scanned] > > >From: "Robert Thorpe" &