diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-26 23:20:37 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-26 23:20:37 +0200 |
| commit | bda12e168733451328e39aceb6b2625f6b28e29c (patch) | |
| tree | 710e7d304e80ac329c3ea97ab3ff11785f55e644 /README | |
| parent | eb1fcdf5d1058f4fbdf3a2661573dd7e4d3976f3 (diff) | |
| download | terex-bda12e168733451328e39aceb6b2625f6b28e29c.tar.gz | |
added new project README
The original hsrex README has been re-added as README.old.
Diffstat (limited to 'README')
| -rw-r--r-- | README | 55 |
1 files changed, 0 insertions, 55 deletions
@@ -1,55 +0,0 @@ - -This is a port to make standalone available the Henry Spencer's Regex Library -from Tcl 8.6a2. - -In the hope that the Tcl developers take this port as the base for their RE -module, great effort was paid to not update the *.c files, sadly it was not -possible. Some *.h files suffered dirty updates for the same reasons. - -To build and test - make - ./regtest_terex.sh - -To rebuild - make clean - make - -To build against the other library uncomment the proper line in the file -regtest_terex.sh and execute again. - # Either this one - $CC -I. -I$H/inc -L. -lterex -o $rgbin $rgsrc - # or this one - #$CC -I. -I$H/inc -L. -lteurex -DREGEX_UTF8 -o $rgbin $rgsrc - -You would like to test with debuging information. Uncomment the proper line in -the Makefile and rebuild. - # Either this one - #CFLAGS = -DREGEX_STANDALONE -fPIC -DREG_DEBUG -g - # Or this one - CFLAGS = -DREGEX_STANDALONE -fPIC -D_NDEBUG -O3 - -Two libraries are provided, libterex.so and libteurex.so. The first one is for -ascii character code and the second one for wide characters. Both libraries -were tested in Linux and Solaris. Compiling and runing in Window$ should be -easy. - -The following entry point where defined in each library: -re_comp() (re_ucomp() for wide char) to compile a RE -re_exec() (re_uexec() for wide char) to parse data against a compiled RE. -regfree() To dispose the memory of a compiled RE. -regerror() Translates error codes to ascii strings. - -It is pretty easy to add support for a regcomp() regexec() front end. That -front end functions should take care of UTF-8 to wide charater conversion, for -instance. - -The regression test script regtest_terex.sh contains an example of how to use -the libraries. It just test cases I was interested on. Adding more use cases to -that script should be easy. - -Send any comments to Walter Waldo <wawasa@gmail.com> - -Enjoy it, - -Walter Waldo. - |
