| 6 |
and semantics are as close as possible to those of the Perl 5 language. |
and semantics are as close as possible to those of the Perl 5 language. |
| 7 |
|
|
| 8 |
Written by Philip Hazel |
Written by Philip Hazel |
| 9 |
Copyright (c) 1997-2009 University of Cambridge |
Copyright (c) 1997-2010 University of Cambridge |
| 10 |
|
|
| 11 |
----------------------------------------------------------------------------- |
----------------------------------------------------------------------------- |
| 12 |
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
| 145 |
/* 65 */ |
/* 65 */ |
| 146 |
REG_BADPAT, /* different names for subpatterns of the same number are not allowed */ |
REG_BADPAT, /* different names for subpatterns of the same number are not allowed */ |
| 147 |
REG_BADPAT, /* (*MARK) must have an argument */ |
REG_BADPAT, /* (*MARK) must have an argument */ |
| 148 |
|
REG_INVARG, /* this version of PCRE is not compiled with PCRE_UCP support */ |
| 149 |
}; |
}; |
| 150 |
|
|
| 151 |
/* Table of texts corresponding to POSIX error codes */ |
/* Table of texts corresponding to POSIX error codes */ |
| 249 |
if ((cflags & REG_DOTALL) != 0) options |= PCRE_DOTALL; |
if ((cflags & REG_DOTALL) != 0) options |= PCRE_DOTALL; |
| 250 |
if ((cflags & REG_NOSUB) != 0) options |= PCRE_NO_AUTO_CAPTURE; |
if ((cflags & REG_NOSUB) != 0) options |= PCRE_NO_AUTO_CAPTURE; |
| 251 |
if ((cflags & REG_UTF8) != 0) options |= PCRE_UTF8; |
if ((cflags & REG_UTF8) != 0) options |= PCRE_UTF8; |
| 252 |
|
if ((cflags & REG_UCP) != 0) options |= PCRE_UCP; |
| 253 |
if ((cflags & REG_UNGREEDY) != 0) options |= PCRE_UNGREEDY; |
if ((cflags & REG_UNGREEDY) != 0) options |= PCRE_UNGREEDY; |
| 254 |
|
|
| 255 |
preg->re_pcre = pcre_compile2(pattern, options, &errorcode, &errorptr, |
preg->re_pcre = pcre_compile2(pattern, options, &errorcode, &errorptr, |