aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-21 21:42:12 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-21 22:05:37 +0200
commit13f5fd77bbc528862f295f9e7196f3ff709d185a (patch)
tree9f9ce051bc8adf61e5ae2b4e94ccb1331bfdbfa5 /README
parent10b47c9226b6267e5a4be4e79fe79314bf969025 (diff)
downloadterex-13f5fd77bbc528862f295f9e7196f3ff709d185a.tar.gz
Unicode builds now expect UTF-8 strings
* They are built with `-DREGEX_UTF8` instead of `-DREGEX_WCHAR`. Functions are called reg_ucomp() and reg_uexec() instead for consistency. The library is now called libhsurex.so instead of libhswrex.so. * The `chr` type is now always `unsigned char`. As a result many other uses of the `chr` type had to be changed to pchr (which is always large enough to hold a byte or wide character). Generally we try to keep code changes as small as possible since we may have to backport changes from the Tcl codebase or contribute patches to the Tcl project.
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 4 insertions, 4 deletions
diff --git a/README b/README
index 7a823b9..c80c5b1 100644
--- a/README
+++ b/README
@@ -19,7 +19,7 @@ regtest_hsrex.sh and execute again.
# Either this one
$CC -I. -I$H/inc -L. -lhsrex -o $rgbin $rgsrc
# or this one
- #$CC -I. -I$H/inc -L. -lhswrex -DREGEX_WCHAR -o $rgbin $rgsrc
+ #$CC -I. -I$H/inc -L. -lhsurex -DREGEX_UTF8 -o $rgbin $rgsrc
You would like to test with debuging information. Uncomment the proper line in
the Makefile and rebuild.
@@ -28,14 +28,14 @@ the Makefile and rebuild.
# Or this one
CFLAGS = -DREGEX_STANDALONE -fPIC -D_NDEBUG -O3
-Two libraries are provided, libhsrex.so and libhswrex.so. The first one is for
+Two libraries are provided, libhsrex.so and libhsurex.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_wcomp() for wide char) to compile a RE
-re_exec() (re_wexec() for wide char) to parse data against a compiled RE.
+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.