/[pcre]/code/trunk/NEWS
ViewVC logotype

Contents of /code/trunk/NEWS

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (hide annotations) (download)
Sat Feb 24 21:40:30 2007 UTC (7 years, 5 months ago) by nigel
File size: 6142 byte(s)
Load pcre-4.5 into code/trunk.

1 nigel 41 News about PCRE releases
2     ------------------------
3    
4 nigel 73 Release 4.5 01-Dec-03
5     ---------------------
6    
7     Again mainly a bug-fix and tidying release, with only a couple of new features:
8    
9     1. It's possible now to compile PCRE so that it does not use recursive
10     function calls when matching. Instead it gets memory from the heap. This slows
11     things down, but may be necessary on systems with limited stacks.
12    
13     2. UTF-8 string checking has been tightened to reject overlong sequences and to
14     check that a starting offset points to the start of a character. Failure of the
15     latter returns a new error code: PCRE_ERROR_BADUTF8_OFFSET.
16    
17     3. PCRE can now be compiled for systems that use EBCDIC code.
18    
19    
20 nigel 71 Release 4.4 21-Aug-03
21     ---------------------
22    
23     This is mainly a bug-fix and tidying release. The only new feature is that PCRE
24     checks UTF-8 strings for validity by default. There is an option to suppress
25     this, just in case anybody wants that teeny extra bit of performance.
26    
27    
28     Releases 4.1 - 4.3
29     ------------------
30    
31     Sorry, I forgot about updating the NEWS file for these releases. Please take a
32     look at ChangeLog.
33    
34    
35 nigel 63 Release 4.0 17-Feb-03
36     ---------------------
37    
38     There have been a lot of changes for the 4.0 release, adding additional
39     functionality and mending bugs. Below is a list of the highlights of the new
40     functionality. For full details of these features, please consult the
41     documentation. For a complete list of changes, see the ChangeLog file.
42    
43     1. Support for Perl's \Q...\E escapes.
44    
45     2. "Possessive quantifiers" ?+, *+, ++, and {,}+ which come from Sun's Java
46     package. They provide some syntactic sugar for simple cases of "atomic
47     grouping".
48    
49     3. Support for the \G assertion. It is true when the current matching position
50     is at the start point of the match.
51    
52     4. A new feature that provides some of the functionality that Perl provides
53     with (?{...}). The facility is termed a "callout". The way it is done in PCRE
54     is for the caller to provide an optional function, by setting pcre_callout to
55     its entry point. To get the function called, the regex must include (?C) at
56     appropriate points.
57    
58     5. Support for recursive calls to individual subpatterns. This makes it really
59     easy to get totally confused.
60    
61     6. Support for named subpatterns. The Python syntax (?P<name>...) is used to
62     name a group.
63    
64     7. Several extensions to UTF-8 support; it is now fairly complete. There is an
65     option for pcregrep to make it operate in UTF-8 mode.
66    
67     8. The single man page has been split into a number of separate man pages.
68     These also give rise to individual HTML pages which are put in a separate
69     directory. There is an index.html page that lists them all. Some hyperlinking
70     between the pages has been installed.
71    
72    
73 nigel 53 Release 3.5 15-Aug-01
74     ---------------------
75    
76     1. The configuring system has been upgraded to use later versions of autoconf
77     and libtool. By default it builds both a shared and a static library if the OS
78     supports it. You can use --disable-shared or --disable-static on the configure
79     command if you want only one of them.
80    
81     2. The pcretest utility is now installed along with pcregrep because it is
82     useful for users (to test regexs) and by doing this, it automatically gets
83     relinked by libtool. The documentation has been turned into a man page, so
84     there are now .1, .txt, and .html versions in /doc.
85    
86     3. Upgrades to pcregrep:
87     (i) Added long-form option names like gnu grep.
88     (ii) Added --help to list all options with an explanatory phrase.
89     (iii) Added -r, --recursive to recurse into sub-directories.
90     (iv) Added -f, --file to read patterns from a file.
91    
92     4. Added --enable-newline-is-cr and --enable-newline-is-lf to the configure
93     script, to force use of CR or LF instead of \n in the source. On non-Unix
94     systems, the value can be set in config.h.
95    
96     5. The limit of 200 on non-capturing parentheses is a _nesting_ limit, not an
97     absolute limit. Changed the text of the error message to make this clear, and
98     likewise updated the man page.
99    
100     6. The limit of 99 on the number of capturing subpatterns has been removed.
101     The new limit is 65535, which I hope will not be a "real" limit.
102    
103    
104 nigel 49 Release 3.3 01-Aug-00
105     ---------------------
106    
107     There is some support for UTF-8 character strings. This is incomplete and
108     experimental. The documentation describes what is and what is not implemented.
109     Otherwise, this is just a bug-fixing release.
110    
111    
112 nigel 43 Release 3.0 01-Feb-00
113     ---------------------
114 nigel 41
115 nigel 43 1. A "configure" script is now used to configure PCRE for Unix systems. It
116     builds a Makefile, a config.h file, and the pcre-config script.
117    
118     2. PCRE is built as a shared library by default.
119    
120     3. There is support for POSIX classes such as [:alpha:].
121    
122     5. There is an experimental recursion feature.
123    
124 nigel 41 ----------------------------------------------------------------------------
125     IMPORTANT FOR THOSE UPGRADING FROM VERSIONS BEFORE 2.00
126    
127     Please note that there has been a change in the API such that a larger
128     ovector is required at matching time, to provide some additional workspace.
129     The new man page has details. This change was necessary in order to support
130     some of the new functionality in Perl 5.005.
131    
132     IMPORTANT FOR THOSE UPGRADING FROM VERSION 2.00
133    
134     Another (I hope this is the last!) change has been made to the API for the
135     pcre_compile() function. An additional argument has been added to make it
136     possible to pass over a pointer to character tables built in the current
137     locale by pcre_maketables(). To use the default tables, this new arguement
138     should be passed as NULL.
139    
140     IMPORTANT FOR THOSE UPGRADING FROM VERSION 2.05
141    
142     Yet another (and again I hope this really is the last) change has been made
143     to the API for the pcre_exec() function. An additional argument has been
144     added to make it possible to start the match other than at the start of the
145     subject string. This is important if there are lookbehinds. The new man
146     page has the details, but you just want to convert existing programs, all
147     you need to do is to stick in a new fifth argument to pcre_exec(), with a
148     value of zero. For example, change
149    
150     pcre_exec(pattern, extra, subject, length, options, ovec, ovecsize)
151     to
152     pcre_exec(pattern, extra, subject, length, 0, options, ovec, ovecsize)
153    
154     ****

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12