| 12 |
.B const char **\fIerrptr\fP, int *\fIerroffset\fP, |
.B const char **\fIerrptr\fP, int *\fIerroffset\fP, |
| 13 |
.ti +5n |
.ti +5n |
| 14 |
.B const unsigned char *\fItableptr\fP); |
.B const unsigned char *\fItableptr\fP); |
| 15 |
|
.PP |
| 16 |
|
.B pcre16 *pcre16_compile(PCRE_SPTR16 \fIpattern\fP, int \fIoptions\fP, |
| 17 |
|
.ti +5n |
| 18 |
|
.B const char **\fIerrptr\fP, int *\fIerroffset\fP, |
| 19 |
|
.ti +5n |
| 20 |
|
.B const unsigned char *\fItableptr\fP); |
| 21 |
. |
. |
| 22 |
.SH DESCRIPTION |
.SH DESCRIPTION |
| 23 |
.rs |
.rs |
| 24 |
.sp |
.sp |
| 25 |
This function compiles a regular expression into an internal form. It is the |
This function compiles a regular expression into an internal form. It is the |
| 26 |
same as \fBpcre_compile2()\fP, except for the absence of the \fIerrorcodeptr\fP |
same as \fBpcre[16]_compile2()\fP, except for the absence of the |
| 27 |
argument. Its arguments are: |
\fIerrorcodeptr\fP argument. Its arguments are: |
| 28 |
.sp |
.sp |
| 29 |
\fIpattern\fP A zero-terminated string containing the |
\fIpattern\fP A zero-terminated string containing the |
| 30 |
regular expression to be compiled |
regular expression to be compiled |
| 58 |
PCRE_NEWLINE_LF Set LF as the newline sequence |
PCRE_NEWLINE_LF Set LF as the newline sequence |
| 59 |
PCRE_NO_AUTO_CAPTURE Disable numbered capturing paren- |
PCRE_NO_AUTO_CAPTURE Disable numbered capturing paren- |
| 60 |
theses (named ones available) |
theses (named ones available) |
| 61 |
|
PCRE_NO_UTF16_CHECK Do not check the pattern for UTF-16 |
| 62 |
|
validity (only relevant if |
| 63 |
|
PCRE_UTF16 is set) |
| 64 |
PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8 |
PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8 |
| 65 |
validity (only relevant if |
validity (only relevant if |
| 66 |
PCRE_UTF8 is set) |
PCRE_UTF8 is set) |
| 67 |
PCRE_UCP Use Unicode properties for \ed, \ew, etc. |
PCRE_UCP Use Unicode properties for \ed, \ew, etc. |
| 68 |
PCRE_UNGREEDY Invert greediness of quantifiers |
PCRE_UNGREEDY Invert greediness of quantifiers |
| 69 |
PCRE_UTF8 Run in UTF-8 mode |
PCRE_UTF16 Run in \fBpcre16_compile()\fP UTF-16 mode |
| 70 |
|
PCRE_UTF8 Run in \fBpcre_compile()\fP UTF-8 mode |
| 71 |
.sp |
.sp |
| 72 |
PCRE must be built with UTF-8 support in order to use PCRE_UTF8 and |
PCRE must be built with UTF support in order to use PCRE_UTF8/16 and |
| 73 |
PCRE_NO_UTF8_CHECK, and with UCP support if PCRE_UCP is used. |
PCRE_NO_UTF8/16_CHECK, and with UCP support if PCRE_UCP is used. |
| 74 |
.P |
.P |
| 75 |
The yield of the function is a pointer to a private data structure that |
The yield of the function is a pointer to a private data structure that |
| 76 |
contains the compiled pattern, or NULL if an error was detected. Note that |
contains the compiled pattern, or NULL if an error was detected. Note that |