⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻
字号:
News about PCRE releases------------------------Release 6.5 01-Feb-06---------------------Important changes in this release:1. A number of new features have been added to pcregrep.2. The Unicode property tables have been updated to Unicode 4.1.0, and the   supported properties have been extended with script names such as "Arabic",   and the derived properties "Any" and "L&". This has necessitated a change to   the interal format of compiled patterns. Any saved compiled patterns that   use \p or \P must be recompiled.3. The specification of recursion in patterns has been changed so that all   recursive subpatterns are automatically treated as atomic groups. Thus, for   example, (?R) is treated as if it were (?>(?R)). This is necessary because   otherwise there are situations where recursion does not work.See the ChangeLog for a complete list of changes, which include a number of bugfixes and tidies.Release 6.0 07-Jun-05---------------------The release number has been increased to 6.0 because of the addition of severalmajor new pieces of functionality.A new function, pcre_dfa_exec(), which implements pattern matching using a DFAalgorithm, has been added. This has a number of advantages for certain cases,though it does run more slowly, and lacks the ability to capture substrings. Onthe other hand, it does find all matches, not just the first, and it worksbetter for partial matching. The pcrematching man page discusses thedifferences.The pcretest program has been enhanced so that it can make use of the newpcre_dfa_exec() matching function and the extra features it provides.The distribution now includes a C++ wrapper library. This is builtautomatically if a C++ compiler is found. The pcrecpp man page discusses thisinterface.The code itself has been re-organized into many more files, one for eachfunction, so it no longer requires everything to be linked in when staticlinkage is used. As a consequence, some internal functions have had to havetheir names exposed. These functions all have names starting with _pcre_. Theyare undocumented, and are not intended for use by outside callers.The pcregrep program has been enhanced with new functionality such asmultiline-matching and options for output more matching context. See theChangeLog for a complete list of changes to the library and the utilityprograms.Release 5.0 13-Sep-04---------------------The licence under which PCRE is released has been changed to the moreconventional "BSD" licence.In the code, some bugs have been fixed, and there are also some major changesin this release (which is why I've increased the number to 5.0). Some changesare internal rearrangements, and some provide a number of new facilities. Thenew features are:1. There's an "automatic callout" feature that inserts callouts before every   item in the regex, and there's a new callout field that gives the position   in the pattern - useful for debugging and tracing.2. The extra_data structure can now be used to pass in a set of character   tables at exec time. This is useful if compiled regex are saved and re-used   at a later time when the tables may not be at the same address. If the   default internal tables are used, the pointer saved with the compiled   pattern is now set to NULL, which means that you don't need to do anything   special unless you are using custom tables.3. It is possible, with some restrictions on the content of the regex, to   request "partial" matching. A special return code is given if all of the   subject string matched part of the regex. This could be useful for testing   an input field as it is being typed.4. There is now some optional support for Unicode character properties, which   means that the patterns items such as \p{Lu} and \X can now be used. Only   the general category properties are supported. If PCRE is compiled with this   support, an additional 90K data structure is include, which increases the   size of the library dramatically.5. There is support for saving compiled patterns and re-using them later.6. There is support for running regular expressions that were compiled on a   different host with the opposite endianness.7. The pcretest program has been extended to accommodate the new features.The main internal rearrangement is that sequences of literal characters are nolonger handled as strings. Instead, each character is handled on its own. Thismakes some UTF-8 handling easier, and makes the support of partial matchingpossible. Compiled patterns containing long literal strings will be larger as aresult of this change; I hope that performance will not be much affected.Release 4.5 01-Dec-03---------------------Again mainly a bug-fix and tidying release, with only a couple of new features:1. It's possible now to compile PCRE so that it does not use recursivefunction calls when matching. Instead it gets memory from the heap. This slowsthings down, but may be necessary on systems with limited stacks.2. UTF-8 string checking has been tightened to reject overlong sequences and tocheck that a starting offset points to the start of a character. Failure of thelatter returns a new error code: PCRE_ERROR_BADUTF8_OFFSET.3. PCRE can now be compiled for systems that use EBCDIC code.Release 4.4 21-Aug-03---------------------This is mainly a bug-fix and tidying release. The only new feature is that PCREchecks UTF-8 strings for validity by default. There is an option to suppressthis, just in case anybody wants that teeny extra bit of performance.Releases 4.1 - 4.3------------------Sorry, I forgot about updating the NEWS file for these releases. Please take alook at ChangeLog.Release 4.0 17-Feb-03---------------------There have been a lot of changes for the 4.0 release, adding additionalfunctionality and mending bugs. Below is a list of the highlights of the newfunctionality. For full details of these features, please consult thedocumentation. For a complete list of changes, see the ChangeLog file.1. Support for Perl's \Q...\E escapes.2. "Possessive quantifiers" ?+, *+, ++, and {,}+ which come from Sun's Javapackage. They provide some syntactic sugar for simple cases of "atomicgrouping".3. Support for the \G assertion. It is true when the current matching positionis at the start point of the match.4. A new feature that provides some of the functionality that Perl provideswith (?{...}). The facility is termed a "callout". The way it is done in PCREis for the caller to provide an optional function, by setting pcre_callout toits entry point. To get the function called, the regex must include (?C) atappropriate points.5. Support for recursive calls to individual subpatterns. This makes it reallyeasy to get totally confused.6. Support for named subpatterns. The Python syntax (?P<name>...) is used toname a group.7. Several extensions to UTF-8 support; it is now fairly complete. There is anoption for pcregrep to make it operate in UTF-8 mode.8. The single man page has been split into a number of separate man pages.These also give rise to individual HTML pages which are put in a separatedirectory. There is an index.html page that lists them all. Some hyperlinkingbetween the pages has been installed.Release 3.5 15-Aug-01---------------------1. The configuring system has been upgraded to use later versions of autoconfand libtool. By default it builds both a shared and a static library if the OSsupports it. You can use --disable-shared or --disable-static on the configurecommand if you want only one of them.2. The pcretest utility is now installed along with pcregrep because it isuseful for users (to test regexs) and by doing this, it automatically getsrelinked by libtool. The documentation has been turned into a man page, sothere are now .1, .txt, and .html versions in /doc.3. Upgrades to pcregrep:   (i)   Added long-form option names like gnu grep.   (ii)  Added --help to list all options with an explanatory phrase.   (iii) Added -r, --recursive to recurse into sub-directories.   (iv)  Added -f, --file to read patterns from a file.4. Added --enable-newline-is-cr and --enable-newline-is-lf to the configurescript, to force use of CR or LF instead of \n in the source. On non-Unixsystems, the value can be set in config.h.5. The limit of 200 on non-capturing parentheses is a _nesting_ limit, not anabsolute limit. Changed the text of the error message to make this clear, andlikewise updated the man page.6. The limit of 99 on the number of capturing subpatterns has been removed.The new limit is 65535, which I hope will not be a "real" limit.Release 3.3 01-Aug-00---------------------There is some support for UTF-8 character strings. This is incomplete andexperimental. The documentation describes what is and what is not implemented.Otherwise, this is just a bug-fixing release.Release 3.0 01-Feb-00---------------------1. A "configure" script is now used to configure PCRE for Unix systems. Itbuilds a Makefile, a config.h file, and the pcre-config script.2. PCRE is built as a shared library by default.3. There is support for POSIX classes such as [:alpha:].5. There is an experimental recursion feature.----------------------------------------------------------------------------          IMPORTANT FOR THOSE UPGRADING FROM VERSIONS BEFORE 2.00Please note that there has been a change in the API such that a largerovector is required at matching time, to provide some additional workspace.The new man page has details. This change was necessary in order to supportsome of the new functionality in Perl 5.005.          IMPORTANT FOR THOSE UPGRADING FROM VERSION 2.00Another (I hope this is the last!) change has been made to the API for thepcre_compile() function. An additional argument has been added to make itpossible to pass over a pointer to character tables built in the currentlocale by pcre_maketables(). To use the default tables, this new arguementshould be passed as NULL.          IMPORTANT FOR THOSE UPGRADING FROM VERSION 2.05Yet another (and again I hope this really is the last) change has been madeto the API for the pcre_exec() function. An additional argument has beenadded to make it possible to start the match other than at the start of thesubject string. This is important if there are lookbehinds. The new manpage has the details, but you just want to convert existing programs, allyou need to do is to stick in a new fifth argument to pcre_exec(), with avalue of zero. For example, change  pcre_exec(pattern, extra, subject, length, options, ovec, ovecsize)to  pcre_exec(pattern, extra, subject, length, 0, options, ovec, ovecsize)****

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -