| 7 |
|
|
| 8 |
The current PCRE version is: 3.7 |
The current PCRE version is: 3.7 |
| 9 |
|
|
| 10 |
This software must be distributed as Freeware. |
This software may be distributed under the terms of the modified BSD license |
| 11 |
|
Copyright (c) 2001, Alexander Tokarev |
| 12 |
|
All rights reserved. |
| 13 |
|
|
| 14 |
|
Redistribution and use in source and binary forms, with or without |
| 15 |
|
modification, are permitted provided that the following conditions are met: |
| 16 |
|
|
| 17 |
|
* Redistributions of source code must retain the above copyright notice, |
| 18 |
|
this list of conditions and the following disclaimer. |
| 19 |
|
* Redistributions in binary form must reproduce the above copyright notice, |
| 20 |
|
this list of conditions and the following disclaimer in the documentation |
| 21 |
|
and/or other materials provided with the distribution. |
| 22 |
|
* Neither the name of the <ORGANIZATION> nor the names of its contributors |
| 23 |
|
may be used to endorse or promote products derived from this software without |
| 24 |
|
specific prior written permission. |
| 25 |
|
|
| 26 |
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 27 |
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 28 |
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 29 |
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 30 |
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 31 |
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 32 |
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 33 |
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 34 |
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 35 |
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 36 |
|
|
| 37 |
The PCRE library is written by: Philip Hazel <ph10@cam.ac.uk> |
The PCRE library is written by: Philip Hazel <ph10@cam.ac.uk> |
| 38 |
Copyright (c) 1997-2004 University of Cambridge |
Copyright (c) 1997-2004 University of Cambridge |
| 49 |
19-02-06 - added SearchOfs(): let PCRE use the complete string and offset |
19-02-06 - added SearchOfs(): let PCRE use the complete string and offset |
| 50 |
into the string itself |
into the string itself |
| 51 |
20-12-06 - support for version 7.0 |
20-12-06 - support for version 7.0 |
| 52 |
|
27.08.08 - support for v7.7 |
| 53 |
} |
} |
| 54 |
|
|
| 55 |
{$H+} {$DEFINE PCRE_3_7} {$DEFINE PCRE_5_0} {$DEFINE PCRE_7_0} |
{$H+} {$DEFINE PCRE_3_7} {$DEFINE PCRE_5_0} {$DEFINE PCRE_7_0} {$DEFINE PCRE_7_7} |
| 56 |
|
|
| 57 |
Unit pcregexp; |
Unit pcregexp; |
| 58 |
|
|
| 130 |
PCRE_NEWLINE_LF = $00200000; |
PCRE_NEWLINE_LF = $00200000; |
| 131 |
PCRE_NEWLINE_CRLF = $00300000; |
PCRE_NEWLINE_CRLF = $00300000; |
| 132 |
PCRE_NEWLINE_ANY = $00400000; |
PCRE_NEWLINE_ANY = $00400000; |
| 133 |
|
PCRE_NEWLINE_ANYCRLF = $00500000; |
| 134 |
|
|
| 135 |
|
PCRE_NEWLINE_BITS = PCRE_NEWLINE_CR or PCRE_NEWLINE_LF or PCRE_NEWLINE_ANY; |
| 136 |
|
|
| 137 |
|
{$ENDIF} |
| 138 |
|
{$IFDEF PCRE_7_7} |
| 139 |
|
PCRE_BSR_ANYCRLF = $00800000; |
| 140 |
|
PCRE_BSR_UNICODE = $01000000; |
| 141 |
|
PCRE_JAVASCRIPT_COMPAT= $02000000; |
| 142 |
{$ENDIF} |
{$ENDIF} |
| 143 |
|
|
| 144 |
PCRE_COMPILE_ALLOWED_OPTIONS = PCRE_ANCHORED + PCRE_AUTO_CALLOUT + PCRE_CASELESS + |
PCRE_COMPILE_ALLOWED_OPTIONS = PCRE_ANCHORED + PCRE_AUTO_CALLOUT + PCRE_CASELESS + |
| 146 |
PCRE_EXTRA + PCRE_MULTILINE + PCRE_NO_AUTO_CAPTURE + |
PCRE_EXTRA + PCRE_MULTILINE + PCRE_NO_AUTO_CAPTURE + |
| 147 |
PCRE_UNGREEDY + PCRE_UTF8 + PCRE_NO_UTF8_CHECK |
PCRE_UNGREEDY + PCRE_UTF8 + PCRE_NO_UTF8_CHECK |
| 148 |
{$IFDEF PCRE_7_0} |
{$IFDEF PCRE_7_0} |
| 149 |
+ PCRE_DUPNAMES + PCRE_FIRSTLINE + PCRE_NEWLINE_CRLF |
+ PCRE_DUPNAMES + PCRE_FIRSTLINE + PCRE_NEWLINE_BITS |
| 150 |
+ PCRE_NEWLINE_ANY |
{$ENDIF} |
| 151 |
|
{$IFDEF PCRE_7_7} |
| 152 |
|
+ PCRE_BSR_ANYCRLF + PCRE_BSR_UNICODE + PCRE_JAVASCRIPT_COMPAT |
| 153 |
{$ENDIF} |
{$ENDIF} |
| 154 |
; |
; |
| 155 |
|
|
| 156 |
PCRE_EXEC_ALLOWED_OPTIONS = PCRE_ANCHORED + PCRE_NOTBOL + PCRE_NOTEOL + |
PCRE_EXEC_ALLOWED_OPTIONS = PCRE_ANCHORED + PCRE_NOTBOL + PCRE_NOTEOL + |
| 157 |
PCRE_NOTEMPTY + PCRE_NO_UTF8_CHECK + PCRE_PARTIAL |
PCRE_NOTEMPTY + PCRE_NO_UTF8_CHECK + PCRE_PARTIAL |
| 158 |
{$IFDEF PCRE_7_0} |
{$IFDEF PCRE_7_0} |
| 159 |
+ PCRE_NEWLINE_CRLF + PCRE_NEWLINE_ANY |
+ PCRE_NEWLINE_BITS |
| 160 |
|
{$ENDIF} |
| 161 |
|
{$IFDEF PCRE_7_7} |
| 162 |
|
+ PCRE_BSR_ANYCRLF + PCRE_BSR_UNICODE |
| 163 |
{$ENDIF} |
{$ENDIF} |
| 164 |
; |
; |
| 165 |
|
|
| 167 |
PCRE_DFA_EXEC_ALLOWED_OPTIONS = PCRE_ANCHORED + PCRE_NOTBOL + PCRE_NOTEOL + |
PCRE_DFA_EXEC_ALLOWED_OPTIONS = PCRE_ANCHORED + PCRE_NOTBOL + PCRE_NOTEOL + |
| 168 |
PCRE_NOTEMPTY + PCRE_NO_UTF8_CHECK + PCRE_PARTIAL + |
PCRE_NOTEMPTY + PCRE_NO_UTF8_CHECK + PCRE_PARTIAL + |
| 169 |
PCRE_DFA_SHORTEST + PCRE_DFA_RESTART + |
PCRE_DFA_SHORTEST + PCRE_DFA_RESTART + |
| 170 |
PCRE_NEWLINE_CR + PCRE_NEWLINE_LF + PCRE_NEWLINE_CRLF + |
PCRE_NEWLINE_BITS |
| 171 |
PCRE_NEWLINE_ANY; |
{$IFDEF PCRE_7_7} |
| 172 |
|
+ PCRE_BSR_ANYCRLF + PCRE_BSR_UNICODE |
| 173 |
|
{$ENDIF} |
| 174 |
|
; |
| 175 |
{$ENDIF} |
{$ENDIF} |
| 176 |
|
|
| 177 |
{ Exec-time and get/set-time error codes } |
{ Exec-time and get/set-time error codes } |
| 220 |
PCRE_INFO_STUDYSIZE = 10; |
PCRE_INFO_STUDYSIZE = 10; |
| 221 |
PCRE_INFO_DEFAULT_TABLES = 11; |
PCRE_INFO_DEFAULT_TABLES = 11; |
| 222 |
{$ENDIF PCRE_5_0} |
{$ENDIF PCRE_5_0} |
| 223 |
|
{$IFDEF PCRE_7_7} |
| 224 |
|
PCRE_INFO_OKPARTIAL = 12; |
| 225 |
|
PCRE_INFO_JCHANGED = 13; |
| 226 |
|
PCRE_INFO_HASCRORLF = 14; |
| 227 |
|
{$ENDIF} |
| 228 |
|
|
| 229 |
{ Request types for pcre_config() } |
{ Request types for pcre_config() } |
| 230 |
{$IFDEF PCRE_5_0} |
{$IFDEF PCRE_5_0} |
| 239 |
{$IFDEF PCRE_7_0} |
{$IFDEF PCRE_7_0} |
| 240 |
PCRE_CONFIG_MATCH_LIMIT_RECURSION = 7; |
PCRE_CONFIG_MATCH_LIMIT_RECURSION = 7; |
| 241 |
{$ENDIF} |
{$ENDIF} |
| 242 |
|
{$IFDEF PCRE_7_7} |
| 243 |
|
PCRE_CONFIG_BSR = 8; |
| 244 |
|
{$ENDIF} |
| 245 |
|
|
| 246 |
{ Bit flags for the pcre_extra structure } |
{ Bit flags for the pcre_extra structure } |
| 247 |
{$IFDEF PCRE_5_0} |
{$IFDEF PCRE_5_0} |
| 442 |
{$IFDEF VIRTUALPASCAL} {&Cdecl-} {$ENDIF VIRTUALPASCAL} |
{$IFDEF VIRTUALPASCAL} {&Cdecl-} {$ENDIF VIRTUALPASCAL} |
| 443 |
|
|
| 444 |
// Always include the newest version of the library |
// Always include the newest version of the library |
| 445 |
{$IFDEF PCRE_3_7} {$IFNDEF PCRE_5_0} {$IFNDEF PCRE_7_0} {$L pcre37.lib} {$ENDIF PCRE_7_0} {$ENDIF PCRE_5_0} {$ENDIF PCRE_3_7} |
{$IFDEF PCRE_7_7} |
| 446 |
{$IFDEF PCRE_5_0} {$IFNDEF PCRE_7_0} {$L pcre50.lib} {$ENDIF PCRE_7_0} {$ENDIF PCRE_5_0} |
{$L pcre77.lib} |
| 447 |
{$IFDEF PCRE_7_0} {$L pcre70.lib} {$ENDIF PCRE_7_0} |
{$ELSE} |
| 448 |
|
{$IFDEF PCRE_7_0} |
| 449 |
|
{$L pcre70.lib} |
| 450 |
|
{$ELSE} |
| 451 |
|
{$IFDEF PCRE_5_0} |
| 452 |
|
{$L pcre50.lib} |
| 453 |
|
{$ELSE} |
| 454 |
|
{$IFDEF PCRE_3_7} |
| 455 |
|
{$L pcre37.lib} |
| 456 |
|
{$ENDIF PCRE_3_7} |
| 457 |
|
{$ENDIF PCRE_5_0} |
| 458 |
|
{$ENDIF PCRE_7_0} |
| 459 |
|
{$ENDIF PCRE_7_7} |
| 460 |
|
|
| 461 |
{TpcRegExp} |
{TpcRegExp} |
| 462 |
|
|