On 4/28/05, Quentin Mathé <[EMAIL PROTECTED]> wrote: > Le 23 avr. 05, à 16:47, Yen-Ju Chen a écrit : > > > On 4/23/05, Nicolas Roard <[EMAIL PROTECTED]> wrote: > > > >> Le 21 avr. 05, à 21:12, Yen-Ju Chen a écrit : > >> > >>> There are couple choices: > >>> > >>> 1. The built-in regex library. > >>> Pro: no other dependency. > >>> Con: it behaves differently on different platforms. > >>> (FreeBSD is posix regex, Linux is GNU regex). > >>> 2. PCRE (pcre.org). > >>> Pro: Used by many other projects. BSD license. > >>> Con: dependency. > >>> 3. Oniguruma (http://www.geocities.jp/kosako3/oniguruma/). > >>> Pro: A cocoa kit > >>> (http://www8.ocn.ne.jp/%7esonoisa/OgreKit/index.html) exists already. > >>> BSD license. > >>> Support many encoding. > >>> Con: dependency. > >>> > >>> I personally prefer Oniguruma/OregKit though. > > I was myself thinking about MOKit Regex classes (there are other > interesting classes in MOKit, I will comment them in a next mail). > MOKit is bundled with its own regex implementation and it offers cool > stuff like Regex formatters and classes are well documented… but I > admit I don't know about OgreKit API > MOKit web site : http://mokit.sourceforge.net/index.html > And there is also AGRegex a PCRE wrapper : > http://sourceforge.net/projects/agkit > > Take a look also at : > http://www.cocoadev.com/index.pl?RegularExpressions > > >> Else yes, OgreKit seems nice (for what I understand from the code > >> example, as my japanese isn't > >> exactly .. hm.. existant :-) > > > > Then the next question is the policy of external dependency: > > will Etoile have a copy of it or user have to install their own in > > order to use Etoile ? > > I think we are going to mirror most of external frameworks to be > included with Étoilé (at least initially), unless they are already > (like GNUstep) packaged for various BSD and Linux packages system.
Although I haven't check the source code of the two regex library you mentioned, I would prefer not to extract classes from other projects because it creates the problems to maintain them. To use LuceneKit as an example, I have to update the port for every lucene release, which is not an easy work (not very hard though, just annoying. :) If we extract some classes from other projects, we may need to slightly modify them and we have always to keep it update to date. If we use an independent regex library, we can simply import every new release without touching the source code, which is much more easy to maintain (just like UnitTest). AGRegex is not updated since 2003. Unless we import the whole MOKit, we will have the maintaince problem for the regex classes in the future. That's why I prefer the independent regex library like pcre or OgreKit. Yen-Ju > > Quentin. > > -- > Quentin Mathé > [EMAIL PROTECTED] > > > _______________________________________________ > Etoile-dev mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-dev >
