Encapsulate regexp use in selections.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 28 Sep 2012 11:35:35 +0000 (14:35 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 4 Oct 2012 03:29:10 +0000 (05:29 +0200)
commitb6b214839386caeffa3500c28f4f5d0c39454f62
treeafd6670d3156a7ffc3dab0ad0f990f54c5cb1d7c
parent56006661a58a9c8687635e5e39e9cba8372ee745
Encapsulate regexp use in selections.

Add a gmxregex.h header that provides a simple regular expression
matching interface, and use that in selection code instead of using
POSIX regexps directly.  Should make it easier to add regexp support
also on Windows (or at least the complexity is then within just one
file).

Also removed HAVE_SYS_TYPES_H from config.h, as sm_keywords.cpp was the
only place where it was used, and many other files included sys/types.h
unconditionally.

Change-Id: I228ad0cf200bc07a45fd745176add8ee65448789
CMakeLists.txt
src/config.h.cmakein
src/gromacs/selection/sm_keywords.cpp
src/gromacs/selection/tests/selectioncollection.cpp
src/gromacs/utility/gmxregex.cpp [new file with mode: 0644]
src/gromacs/utility/gmxregex.h [new file with mode: 0644]