Re: Glib Regex?
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list redhat com
- Subject: Re: Glib Regex?
- Date: 15 Apr 2000 12:40:00 -0400
NotZed <email@example.com> writes:
> Why not just use the 'standard' regex functions. They are fairly portable
> and there are free libraries where the system ones dont work.
Note that it isn't just a question of whether the the interfaces
are portable or not, the regular expression flavors have to
be portable too. People should not have a regular expression
that works on one version of glib, but not
So, we could only use the system regex support if the system
had POSIX regular expressions.
glib's configure.in would have to have a test suite to
see if the system's regular expressions were "sufficiently
Having our own regex package guarantees compatibility, and
is, thus a lot simpler, since we'd have to provide a fallback
> IMHO it would be worth adding if it supported unicode, or something
> that the standard api doesn't, otherwise is the bloat worth it?
Actually, in my opinion, the advantages of Perl-style regular
expressions over POSIX regular expressions are pretty substantial
And we will need the "bloat" of our own regular expressions
implementation when we support Unicode - that may not be
by GLib-1.4, but it needs to happen.
] [Thread Prev