[EMAIL PROTECTED] wrote: >>> eg. "/path_to/image.png:NULL:color" >> Is there a reason you chose "NULL" instead of just leaving the >> field blank? (filename.ext::mode) >> Also, ':' is a valid character for a filename, so hopefully >> there's a way to escape it? ("/path/to/foo\:bar.png:NULL:color) >> > > Unfortunately, no. Your points are more than well taken > though. The primary reasons for choosing this 'format' were: > <snip> > If anyone could help out here with a better, fast enough, > format-spec-and-decoding-implementation, that would be great :) > [ The implementation of this is done in the function > "shaped_setup_geom" of the evas_gradient_shaped.c file ]
I would consider using \0 for a separator.. makes parsing a snap.. just search for the nth 0-byte to get the nth field, and you get the string without further processing of the base string.. only downside is you can't use the stock string functions on that piece of data, so it would need to be treated like binary data.. but it might be a worthwhile tradeoff.. -- Cheers, Morten :wq ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel