[E-devel] Ecore_Str new feature...

2007-03-12 Thread Stéphane Bauland
Hi people. I needed a function to split a string into a list. My first func used Ecore_List * as return value, and dourse said me that's not really good. He said me to return a char ** so i did it. And i put it under ecore_str. The patch have two functions. The one to allocate the array of

Re: [E-devel] Ecore_Str new feature...

2007-03-12 Thread Brian Mattern
On Mon, Mar 12, 2007 at 12:41:41PM +0100, Stéphane Bauland wrote: + * @param max_tokens The maximum number of strings to split string into. If this is less than 1, the string is split completely. + if ( max_tokens 1 ) max_tokens = 100; Filthy lies :) rephorm

Re: [E-devel] Ecore_Str new feature...

2007-03-12 Thread Stéphane Bauland
Brian Mattern wrote: On Mon, Mar 12, 2007 at 12:41:41PM +0100, Stéphane Bauland wrote: + * @param max_tokens The maximum number of strings to split string into. If this is less than 1, the string is split completely. + if ( max_tokens 1 ) max_tokens = 100;

Re: [E-devel] Ecore_Str new feature...

2007-03-12 Thread Tilman Sauerbeck
Stéphane Bauland [2007-03-12 14:56]: Brian Mattern wrote: On Mon, Mar 12, 2007 at 12:41:41PM +0100, Stéphane Bauland wrote: + * @param max_tokens The maximum number of strings to split string into. If this is less than 1, the string is split completely. + if (

Re: [E-devel] Ecore_Str new feature...

2007-03-12 Thread Peter Wehrfritz
Vincent Torri schrieb: On Mon, 12 Mar 2007, Brian Mattern wrote: On Mon, Mar 12, 2007 at 12:41:41PM +0100, Stéphane Bauland wrote: Hi people. I needed a function to split a string into a list. My first func used Ecore_List * as return value, and dourse said me that's not really good.