ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log

Revision 99 - (show annotations)
Tue Mar 6 12:27:42 2007 UTC (13 years, 7 months ago) by ph10
File size: 2603 byte(s)
1. Move the comment about version numbers from pcre.h.in to configure.ac 
because that's where they are now set.
2. Update all the man pages to remove the use of .br and .in because this
causes trouble for some HTML converters. Also standardised the final sections 
giving author information and revision date.
3. Update the maintain/132html man page converter to handle .nf/.fi and to barf 
at .br/.in.
3 PCRE - Perl-compatible regular expressions
5 .rs
6 .sp
7 .B #include <pcre.h>
8 .PP
9 .SM
10 .B pcre *pcre_compile2(const char *\fIpattern\fP, int \fIoptions\fP,
11 .ti +5n
12 .B int *\fIerrorcodeptr\fP,
13 .ti +5n
14 .B const char **\fIerrptr\fP, int *\fIerroffset\fP,
15 .ti +5n
16 .B const unsigned char *\fItableptr\fP);
17 .
19 .rs
20 .sp
21 This function compiles a regular expression into an internal form. It is the
22 same as \fBpcre_compile()\fP, except for the addition of the \fIerrorcodeptr\fP
23 argument. The arguments are:
25 .sp
26 \fIpattern\fR A zero-terminated string containing the
27 regular expression to be compiled
28 \fIoptions\fR Zero or more option bits
29 \fIerrorcodeptr\fP Where to put an error code
30 \fIerrptr\fR Where to put an error message
31 \fIerroffset\fR Offset in pattern where error was found
32 \fItableptr\fR Pointer to character tables, or NULL to
33 use the built-in default
34 .sp
35 The option bits are:
36 .sp
37 PCRE_ANCHORED Force pattern anchoring
38 PCRE_AUTO_CALLOUT Compile automatic callouts
39 PCRE_CASELESS Do caseless matching
40 PCRE_DOLLAR_ENDONLY $ not to match newline at end
41 PCRE_DOTALL . matches anything including NL
42 PCRE_DUPNAMES Allow duplicate names for subpatterns
43 PCRE_EXTENDED Ignore whitespace and # comments
44 PCRE_EXTRA PCRE extra features
45 (not much use currently)
46 PCRE_FIRSTLINE Force matching to be before newline
47 PCRE_MULTILINE ^ and $ match newlines within data
48 PCRE_NEWLINE_ANY Recognize any Unicode newline sequence
49 PCRE_NEWLINE_CR Set CR as the newline sequence
50 PCRE_NEWLINE_CRLF Set CRLF as the newline sequence
51 PCRE_NEWLINE_LF Set LF as the newline sequence
52 PCRE_NO_AUTO_CAPTURE Disable numbered capturing paren-
53 theses (named ones available)
54 PCRE_UNGREEDY Invert greediness of quantifiers
55 PCRE_UTF8 Run in UTF-8 mode
56 PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8
57 validity (only relevant if
58 PCRE_UTF8 is set)
59 .sp
60 PCRE must be built with UTF-8 support in order to use PCRE_UTF8 and
62 .P
63 The yield of the function is a pointer to a private data structure that
64 contains the compiled pattern, or NULL if an error was detected.
65 .P
66 There is a complete description of the PCRE native API in the
67 .\" HREF
68 \fBpcreapi\fR
69 .\"
70 page and a description of the POSIX API in the
71 .\" HREF
72 \fBpcreposix\fR
73 .\"
74 page.


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

  ViewVC Help
Powered by ViewVC 1.1.5