[RFC] Replacing our regex implementation
Bakul Shah
bakul at bitblocks.com
Mon May 9 06:13:35 UTC 2011
On Sun, 08 May 2011 21:35:04 CDT Zhihao Yuan <lichray at gmail.com> wrote:
> 1. This lib accepts many popular grammars (PCRE, POSIX, vim, etc.),
> but it does not allow you to change the mode.
> http://code.google.com/p/re2/source/browse/re2/re2.h
The mode is decided when an RE2 object is instantiated so this
is ok. You can certainly instantiate multiple objects with
different options if so desired.
> 2. It focuses on speed and features, not stability and standardization.
Look at the open issues. Seems stable enough to me. re2 has a
posix only mode. It also does unicode.
> 3. It uses C++. We seldom accepts C++ code in base system, and does
> not accept it in libc.
This is the show stopper.
More information about the freebsd-hackers
mailing list