/[pcre]/code/trunk/doc/pcretest.1
ViewVC logotype

Diff of /code/trunk/doc/pcretest.1

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 518 by ph10, Tue May 18 15:47:01 2010 UTC revision 545 by ph10, Wed Jun 16 10:51:15 2010 UTC
# Line 169  The following table shows additional mod Line 169  The following table shows additional mod
169  options that do not correspond to anything in Perl:  options that do not correspond to anything in Perl:
170  .sp  .sp
171    \fB/8\fP              PCRE_UTF8    \fB/8\fP              PCRE_UTF8
172    \fB/?\fP              PCRE_NO_UTF8_CHECK    \fB/?\fP              PCRE_NO_UTF8_CHECK
173    \fB/A\fP              PCRE_ANCHORED    \fB/A\fP              PCRE_ANCHORED
174    \fB/C\fP              PCRE_AUTO_CALLOUT    \fB/C\fP              PCRE_AUTO_CALLOUT
175    \fB/E\fP              PCRE_DOLLAR_ENDONLY    \fB/E\fP              PCRE_DOLLAR_ENDONLY
# Line 177  options that do not correspond to anythi Line 177  options that do not correspond to anythi
177    \fB/J\fP              PCRE_DUPNAMES    \fB/J\fP              PCRE_DUPNAMES
178    \fB/N\fP              PCRE_NO_AUTO_CAPTURE    \fB/N\fP              PCRE_NO_AUTO_CAPTURE
179    \fB/U\fP              PCRE_UNGREEDY    \fB/U\fP              PCRE_UNGREEDY
180    \fB/W\fP              PCRE_UCP    \fB/W\fP              PCRE_UCP
181    \fB/X\fP              PCRE_EXTRA    \fB/X\fP              PCRE_EXTRA
182    \fB/<JS>\fP           PCRE_JAVASCRIPT_COMPAT    \fB/<JS>\fP           PCRE_JAVASCRIPT_COMPAT
183    \fB/<cr>\fP           PCRE_NEWLINE_CR    \fB/<cr>\fP           PCRE_NEWLINE_CR
# Line 201  options are given in the Line 201  options are given in the
201  .\" HREF  .\" HREF
202  \fBpcreapi\fP  \fBpcreapi\fP
203  .\"  .\"
204  documentation.  documentation.
205  .  .
206  .  .
207  .SS "Finding all matches in a string"  .SS "Finding all matches in a string"
# Line 276  example, Line 276  example,
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.
# Line 285  pattern to be output. Line 286  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"
304  .rs  .rs
305  .sp  .sp
306  The \fB/P\fP modifier causes \fBpcretest\fP to call PCRE via the POSIX wrapper  The \fB/P\fP modifier causes \fBpcretest\fP to call PCRE via the POSIX wrapper
307  API rather than its native API. When \fB/P\fP is set, the following modifiers  API rather than its native API. When \fB/P\fP is set, the following modifiers
308  set options for the \fBregcomp()\fP function:  set options for the \fBregcomp()\fP function:
309  .sp  .sp
310    /i    REG_ICASE    /i    REG_ICASE
311    /m    REG_NEWLINE    /m    REG_NEWLINE
312    /N    REG_NOSUB    /N    REG_NOSUB
313    /s    REG_DOTALL     )    /s    REG_DOTALL     )
314    /U    REG_UNGREEDY   ) These options are not part of    /U    REG_UNGREEDY   ) These options are not part of
315    /W    REG_UCP        )   the POSIX standard    /W    REG_UCP        )   the POSIX standard
316    /8    REG_UTF8       )    /8    REG_UTF8       )
317  .sp  .sp
# Line 750  Cambridge CB2 3QH, England. Line 763  Cambridge CB2 3QH, England.
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

Legend:
Removed from v.518  
changed lines
  Added in v.545

  ViewVC Help
Powered by ViewVC 1.1.5