| 427 |
Otherwise, if compilation of a pattern fails, \fBpcre_compile()\fP returns |
Otherwise, if compilation of a pattern fails, \fBpcre_compile()\fP returns |
| 428 |
NULL, and sets the variable pointed to by \fIerrptr\fP to point to a textual |
NULL, and sets the variable pointed to by \fIerrptr\fP to point to a textual |
| 429 |
error message. This is a static string that is part of the library. You must |
error message. This is a static string that is part of the library. You must |
| 430 |
not try to free it. The offset from the start of the pattern to the character |
not try to free it. The byte offset from the start of the pattern to the |
| 431 |
where the error was discovered is placed in the variable pointed to by |
character that was being processes when the error was discovered is placed in |
| 432 |
\fIerroffset\fP, which must not be NULL. If it is, an immediate error is given. |
the variable pointed to by \fIerroffset\fP, which must not be NULL. If it is, |
| 433 |
|
an immediate error is given. Some errors are not detected until checks are |
| 434 |
|
carried out when the whole pattern has been scanned; in this case the offset is |
| 435 |
|
set to the end of the pattern. |
| 436 |
.P |
.P |
| 437 |
If \fBpcre_compile2()\fP is used instead of \fBpcre_compile()\fP, and the |
If \fBpcre_compile2()\fP is used instead of \fBpcre_compile()\fP, and the |
| 438 |
\fIerrorcodeptr\fP argument is not NULL, a non-zero error code number is |
\fIerrorcodeptr\fP argument is not NULL, a non-zero error code number is |
| 2023 |
.rs |
.rs |
| 2024 |
.sp |
.sp |
| 2025 |
.nf |
.nf |
| 2026 |
Last updated: 11 September 2009 |
Last updated: 22 September 2009 |
| 2027 |
Copyright (c) 1997-2009 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
| 2028 |
.fi |
.fi |