Contents of /code/trunk/pcregexp.pas

Updated the support (such as it is) for Virtual Pascal, thanks to Stefan
Weber: (1) pcre_internal.h was missing some function renames; (2) updated
makevp.bat for the current PCRE, using the additional files !compile.txt,
!linklib.txt, and pcregexp.pas.

1

{

2

pcRegExp - Perl compatible regular expressions for Virtual Pascal

3

(c) 2001 Peter S. Voronov aka Chem O'Dun <petervrn@yahoo.com>

4

5

Based on PCRE library interface unit for Virtual Pascal.

6

(c) 2001 Alexander Tokarev <dwalin@dwalin.ru>

7

8

The current PCRE version is: 3.7

9

10

This software must be distributed as Freeware.

11

12

The PCRE library is written by: Philip Hazel <ph10@cam.ac.uk>

13

Copyright (c) 1997-2004 University of Cambridge

14

15

AngelsHolocaust 4-11-04 updated to use version v5.0

16

(INFO: this is regex-directed, NFA)

17

AH: 9-11-04 - pcre_free: removed var, pcre already gives the ptr, now

18

everything works as it should (no more crashes)

19

-> removed CheckRegExp because pcre handles errors perfectly

20

10-11-04 - added pcError (errorhandling), pcInit

21

13-11-04 - removed the ErrorPos = 0 check -> always print erroroffset

22

17-10-05 - support for \1-\9 backreferences in TpcRegExp.GetReplStr

23

17-02-06 - added RunTimeOptions: caller can set options while searching