/[pcre]/code/trunk/doc/html/pcre_compile2.html
ViewVC logotype

Contents of /code/trunk/doc/html/pcre_compile2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 461 - (hide annotations) (download) (as text)
Mon Oct 5 10:59:35 2009 UTC (3 years, 7 months ago) by ph10
File MIME type: text/html
File size: 3625 byte(s)
Tidy up, remove trailing spaces, etc. for 8.00-RC1.

1 nigel 77 <html>
2     <head>
3     <title>pcre_compile2 specification</title>
4     </head>
5     <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6     <h1>pcre_compile2 man page</h1>
7     <p>
8     Return to the <a href="index.html">PCRE index page</a>.
9     </p>
10 ph10 111 <p>
11 nigel 77 This page is part of the PCRE HTML documentation. It was generated automatically
12     from the original man page. If there is any nonsense in it, please consult the
13     man page, in case the conversion went wrong.
14 ph10 111 <br>
15 nigel 77 <br><b>
16     SYNOPSIS
17     </b><br>
18     <P>
19     <b>#include &#60;pcre.h&#62;</b>
20     </P>
21     <P>
22     <b>pcre *pcre_compile2(const char *<i>pattern</i>, int <i>options</i>,</b>
23     <b>int *<i>errorcodeptr</i>,</b>
24     <b>const char **<i>errptr</i>, int *<i>erroffset</i>,</b>
25     <b>const unsigned char *<i>tableptr</i>);</b>
26     </P>
27     <br><b>
28     DESCRIPTION
29     </b><br>
30     <P>
31     This function compiles a regular expression into an internal form. It is the
32     same as <b>pcre_compile()</b>, except for the addition of the <i>errorcodeptr</i>
33     argument. The arguments are:
34     </P>
35     <P>
36     <pre>
37     <i>pattern</i> A zero-terminated string containing the
38     regular expression to be compiled
39     <i>options</i> Zero or more option bits
40     <i>errorcodeptr</i> Where to put an error code
41     <i>errptr</i> Where to put an error message
42     <i>erroffset</i> Offset in pattern where error was found
43     <i>tableptr</i> Pointer to character tables, or NULL to
44     use the built-in default
45     </pre>
46     The option bits are:
47     <pre>
48 ph10 461 PCRE_ANCHORED Force pattern anchoring
49     PCRE_AUTO_CALLOUT Compile automatic callouts
50     PCRE_BSR_ANYCRLF \R matches only CR, LF, or CRLF
51     PCRE_BSR_UNICODE \R matches all Unicode line endings
52     PCRE_CASELESS Do caseless matching
53     PCRE_DOLLAR_ENDONLY $ not to match newline at end
54     PCRE_DOTALL . matches anything including NL
55     PCRE_DUPNAMES Allow duplicate names for subpatterns
56     PCRE_EXTENDED Ignore whitespace and # comments
57     PCRE_EXTRA PCRE extra features
58     (not much use currently)
59     PCRE_FIRSTLINE Force matching to be before newline
60     PCRE_JAVASCRIPT_COMPAT JavaScript compatibility
61     PCRE_MULTILINE ^ and $ match newlines within data
62     PCRE_NEWLINE_ANY Recognize any Unicode newline sequence
63     PCRE_NEWLINE_ANYCRLF Recognize CR, LF, and CRLF as newline
64     sequences
65     PCRE_NEWLINE_CR Set CR as the newline sequence
66     PCRE_NEWLINE_CRLF Set CRLF as the newline sequence
67     PCRE_NEWLINE_LF Set LF as the newline sequence
68     PCRE_NO_AUTO_CAPTURE Disable numbered capturing paren-
69     theses (named ones available)
70     PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8
71     validity (only relevant if
72     PCRE_UTF8 is set)
73     PCRE_UNGREEDY Invert greediness of quantifiers
74     PCRE_UTF8 Run in UTF-8 mode
75 nigel 77 </pre>
76     PCRE must be built with UTF-8 support in order to use PCRE_UTF8 and
77     PCRE_NO_UTF8_CHECK.
78     </P>
79     <P>
80     The yield of the function is a pointer to a private data structure that
81 ph10 155 contains the compiled pattern, or NULL if an error was detected. Note that
82     compiling regular expressions with one version of PCRE for use with a different
83     version is not guaranteed to work and may cause crashes.
84 nigel 77 </P>
85     <P>
86     There is a complete description of the PCRE native API in the
87     <a href="pcreapi.html"><b>pcreapi</b></a>
88     page and a description of the POSIX API in the
89     <a href="pcreposix.html"><b>pcreposix</b></a>
90     page.
91     <p>
92     Return to the <a href="index.html">PCRE index page</a>.
93     </p>

Properties

Name Value
svn:eol-style native
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12