Ch PCRE 1.0 is the Ch binding to PCRE C library version 4.3. Ch PCRE enables all functions in the PCRE library for use in Ch. With Ch PCRE, these functions can run in Ch interpretively without compilation. Ch PCRE allows Perl syntax and semantics to be used in Ch for regular expression pattern matching. More information about Ch can be found at http://www.softintegration.com/. More information about PCRE can be found at http://www.pcre.org/. More information about Ch PCRE can be found at http://chpcre.sourceforge.net or https://sourceforge.net/projects/chpcre/. Contents: This directory contains the package pcre created by command src/createpcre.ch demos --- pcre demo program in C ready to run in Ch dl --- dynamically loaded library include --- header files lib --- function files tinclude --- header files to be copied to CHHOME/toolkit/include src --- source code to create package pcre README --- this file Installation Instructions: -------------------------- Assume is the directory where Ch is installed, for example if Ch is installed in C:/Ch, then C:/Ch should be used instead of for instructions below. Assume is the directory where Ch PCRE package is installed, for example shall be substituted by C:/Ch/package/chpcre (1) Move the directory ./chpcre to /package/chpcre. /package/chpcre becomes the home directory of Or If you do not want to move the directory, you should add a new path to the system variable _ppath for package path by adding the following statement in system startup file /config/chrc or individual user's startup file ~/chrc. _ppath = stradd(_ppath, ";"); (2) Copy header files in tinclude/ to /toolkit/include directory. Or add the system variable _ipath in system startup file indicated in previous step by adding the following statement. _ipath = stradd(_ipath, "/include;"); The above step (2) will not be necessary if the following code fragment is in application programs. #pragma package (3) In the directory /dl there are four .dl files, one each for Linux, Windows, HP-Unix, and Solaris; rename the file corresponding to your operating system to libpcre.dl. For example, if you are running windows, rename "libpcre.dl_Windows" as "libpcre.dl". Another option is to simply run the script /src/createpcre.ch, which will automatically make the correct .dl file for your OS. Run Demo Programs in Directory demos: ------------------------------------- (1) start ch (2) run program name 'pcredemo.c' in demos dir. Uninstallation Instructions: ---------------------------- (1) Remove ChPCRE_HOME directory (2) Remove header file pcre.h in /toolkit/include copied from tinclude/pcre.h, if you have copied file tinclude/pcre.h to /toolkit/include during installation.