diff options
author | nigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-02-24 21:40:37 +0000 |
---|---|---|
committer | nigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-02-24 21:40:37 +0000 |
commit | 455fcc7e13a175722acfd2cca6ab99caa9606a22 (patch) | |
tree | 6561516fd308ce5b1b077797ad2f508701014cc6 /doc/perltest.txt | |
parent | 568064fe47fac0c7caffc684e6ea227ad8127b70 (diff) | |
download | pcre-455fcc7e13a175722acfd2cca6ab99caa9606a22.tar.gz |
Load pcre-5.0 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@75 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'doc/perltest.txt')
-rw-r--r-- | doc/perltest.txt | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/doc/perltest.txt b/doc/perltest.txt index 9ea9d93..f1d2c15 100644 --- a/doc/perltest.txt +++ b/doc/perltest.txt @@ -7,28 +7,27 @@ input patterns can be followed only by Perl's lower case modifiers and /+ (as used by pcretest), which is recognized and handled by the program. The data lines are processed as Perl double-quoted strings, so if they contain -" \ $ or @ characters, these have to be escaped. For this reason, all such -characters in testinput1 and testinput3 are escaped so that they can be used -for perltest as well as for pcretest, and the special upper case modifiers such -as /A that pcretest recognizes are not used in these files. The output should -be identical, apart from the initial identifying banner. +" $ or @ characters, these have to be escaped. For this reason, all such +characters in testinput1 and testinput4 are escaped so that they can be used +for perltest as well as for pcretest. The special upper case pattern +modifiers such as /A that pcretest recognizes, and its special data line +escapes, are not used in these files. The output should be identical, apart +from the initial identifying banner. The perltest script can also test UTF-8 features. It works as is for Perl 5.8 or higher. It recognizes the special modifier /8 that pcretest uses to invoke -UTF-8 functionality. The testinput5 file can be fed to perltest to run UTF-8 -tests. +UTF-8 functionality. The testinput4 file can be fed to perltest to run +compatible UTF-8 tests. For Perl 5.6, perltest won't work unmodified for the UTF-8 tests. You need to uncomment the "use utf8" lines that it contains. It is best to do this on a copy of the script, because for non-UTF-8 tests, these lines should remain commented out. -The testinput2 and testinput4 files are not suitable for feeding to perltest, -since they do make use of the special upper case modifiers and escapes that -pcretest uses to test some features of PCRE. The first of these files also -contains malformed regular expressions, in order to check that PCRE diagnoses -them correctly. Similarly, testinput6 tests UTF-8 features that do not relate -to Perl. +The other testinput files are not suitable for feeding to perltest, since they +make use of the special upper case modifiers and escapes that pcretest uses to +test some features of PCRE. Some of these files also contains malformed regular +expressions, in order to check that PCRE diagnoses them correctly. Philip Hazel <ph10@cam.ac.uk> -August 2002 +September 2004 |