276 |
For this reason, it must be the last modifier. The given locale is set, |
For this reason, it must be the last modifier. The given locale is set, |
277 |
\fBpcre_maketables()\fP is called to build a set of character tables for the |
\fBpcre_maketables()\fP is called to build a set of character tables for the |
278 |
locale, and this is then passed to \fBpcre_compile()\fP when compiling the |
locale, and this is then passed to \fBpcre_compile()\fP when compiling the |
279 |
regular expression. Without an \fB/L\fP modifier, NULL is passed as the tables |
regular expression. Without an \fB/L\fP (or \fB/T\fP) modifier, NULL is passed |
280 |
pointer; that is, \fB/L\fP applies only to the expression on which it appears. |
as the tables pointer; that is, \fB/L\fP applies only to the expression on |
281 |
|
which it appears. |
282 |
.P |
.P |
283 |
The \fB/M\fP modifier causes the size of memory block used to hold the compiled |
The \fB/M\fP modifier causes the size of memory block used to hold the compiled |
284 |
pattern to be output. |
pattern to be output. |
286 |
The \fB/S\fP modifier causes \fBpcre_study()\fP to be called after the |
The \fB/S\fP modifier causes \fBpcre_study()\fP to be called after the |
287 |
expression has been compiled, and the results used when the expression is |
expression has been compiled, and the results used when the expression is |
288 |
matched. |
matched. |
289 |
|
.P |
290 |
|
The \fB/T\fP modifier must be followed by a single digit. It causes a specific |
291 |
|
set of built-in character tables to be passed to \fBpcre_compile()\fP. It is |
292 |
|
used in the standard PCRE tests to check behaviour with different character |
293 |
|
tables. The digit specifies the tables as follows: |
294 |
|
.sp |
295 |
|
0 the default ASCII tables, as distributed in |
296 |
|
pcre_chartables.c.dist |
297 |
|
1 a set of tables defining ISO 8859 characters |
298 |
|
.sp |
299 |
|
In table 1, some characters whose codes are greater than 128 are identified as |
300 |
|
letters, digits, spaces, etc. |
301 |
. |
. |
302 |
. |
. |
303 |
.SS "Using the POSIX wrapper API" |
.SS "Using the POSIX wrapper API" |
763 |
.rs |
.rs |
764 |
.sp |
.sp |
765 |
.nf |
.nf |
766 |
Last updated: 16 May 2010 |
Last updated: 14 June 2010 |
767 |
Copyright (c) 1997-2010 University of Cambridge. |
Copyright (c) 1997-2010 University of Cambridge. |
768 |
.fi |
.fi |