7 |
.B #include <pcre.h> |
.B #include <pcre.h> |
8 |
.PP |
.PP |
9 |
.SM |
.SM |
|
.br |
|
10 |
.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP, |
.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP, |
11 |
.ti +5n |
.ti +5n |
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 |
.PP |
|
.br |
|
16 |
.B pcre *pcre_compile2(const char *\fIpattern\fP, int \fIoptions\fP, |
.B pcre *pcre_compile2(const char *\fIpattern\fP, int \fIoptions\fP, |
17 |
.ti +5n |
.ti +5n |
18 |
.B int *\fIerrorcodeptr\fP, |
.B int *\fIerrorcodeptr\fP, |
21 |
.ti +5n |
.ti +5n |
22 |
.B const unsigned char *\fItableptr\fP); |
.B const unsigned char *\fItableptr\fP); |
23 |
.PP |
.PP |
|
.br |
|
24 |
.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP, |
.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP, |
25 |
.ti +5n |
.ti +5n |
26 |
.B const char **\fIerrptr\fP); |
.B const char **\fIerrptr\fP); |
27 |
.PP |
.PP |
|
.br |
|
28 |
.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
29 |
.ti +5n |
.ti +5n |
30 |
.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP, |
.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP, |
31 |
.ti +5n |
.ti +5n |
32 |
.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP); |
.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP); |
33 |
.PP |
.PP |
|
.br |
|
34 |
.B int pcre_dfa_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
.B int pcre_dfa_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
35 |
.ti +5n |
.ti +5n |
36 |
.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP, |
.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP, |
39 |
.ti +5n |
.ti +5n |
40 |
.B int *\fIworkspace\fP, int \fIwscount\fP); |
.B int *\fIworkspace\fP, int \fIwscount\fP); |
41 |
.PP |
.PP |
|
.br |
|
42 |
.B int pcre_copy_named_substring(const pcre *\fIcode\fP, |
.B int pcre_copy_named_substring(const pcre *\fIcode\fP, |
43 |
.ti +5n |
.ti +5n |
44 |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
47 |
.ti +5n |
.ti +5n |
48 |
.B char *\fIbuffer\fP, int \fIbuffersize\fP); |
.B char *\fIbuffer\fP, int \fIbuffersize\fP); |
49 |
.PP |
.PP |
|
.br |
|
50 |
.B int pcre_copy_substring(const char *\fIsubject\fP, int *\fIovector\fP, |
.B int pcre_copy_substring(const char *\fIsubject\fP, int *\fIovector\fP, |
51 |
.ti +5n |
.ti +5n |
52 |
.B int \fIstringcount\fP, int \fIstringnumber\fP, char *\fIbuffer\fP, |
.B int \fIstringcount\fP, int \fIstringnumber\fP, char *\fIbuffer\fP, |
53 |
.ti +5n |
.ti +5n |
54 |
.B int \fIbuffersize\fP); |
.B int \fIbuffersize\fP); |
55 |
.PP |
.PP |
|
.br |
|
56 |
.B int pcre_get_named_substring(const pcre *\fIcode\fP, |
.B int pcre_get_named_substring(const pcre *\fIcode\fP, |
57 |
.ti +5n |
.ti +5n |
58 |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
61 |
.ti +5n |
.ti +5n |
62 |
.B const char **\fIstringptr\fP); |
.B const char **\fIstringptr\fP); |
63 |
.PP |
.PP |
|
.br |
|
64 |
.B int pcre_get_stringnumber(const pcre *\fIcode\fP, |
.B int pcre_get_stringnumber(const pcre *\fIcode\fP, |
65 |
.ti +5n |
.ti +5n |
66 |
.B const char *\fIname\fP); |
.B const char *\fIname\fP); |
67 |
.PP |
.PP |
|
.br |
|
68 |
.B int pcre_get_stringtable_entries(const pcre *\fIcode\fP, |
.B int pcre_get_stringtable_entries(const pcre *\fIcode\fP, |
69 |
.ti +5n |
.ti +5n |
70 |
.B const char *\fIname\fP, char **\fIfirst\fP, char **\fIlast\fP); |
.B const char *\fIname\fP, char **\fIfirst\fP, char **\fIlast\fP); |
71 |
.PP |
.PP |
|
.br |
|
72 |
.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP, |
.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP, |
73 |
.ti +5n |
.ti +5n |
74 |
.B int \fIstringcount\fP, int \fIstringnumber\fP, |
.B int \fIstringcount\fP, int \fIstringnumber\fP, |
75 |
.ti +5n |
.ti +5n |
76 |
.B const char **\fIstringptr\fP); |
.B const char **\fIstringptr\fP); |
77 |
.PP |
.PP |
|
.br |
|
78 |
.B int pcre_get_substring_list(const char *\fIsubject\fP, |
.B int pcre_get_substring_list(const char *\fIsubject\fP, |
79 |
.ti +5n |
.ti +5n |
80 |
.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);" |
.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);" |
81 |
.PP |
.PP |
|
.br |
|
82 |
.B void pcre_free_substring(const char *\fIstringptr\fP); |
.B void pcre_free_substring(const char *\fIstringptr\fP); |
83 |
.PP |
.PP |
|
.br |
|
84 |
.B void pcre_free_substring_list(const char **\fIstringptr\fP); |
.B void pcre_free_substring_list(const char **\fIstringptr\fP); |
85 |
.PP |
.PP |
|
.br |
|
86 |
.B const unsigned char *pcre_maketables(void); |
.B const unsigned char *pcre_maketables(void); |
87 |
.PP |
.PP |
|
.br |
|
88 |
.B int pcre_fullinfo(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
.B int pcre_fullinfo(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
89 |
.ti +5n |
.ti +5n |
90 |
.B int \fIwhat\fP, void *\fIwhere\fP); |
.B int \fIwhat\fP, void *\fIwhere\fP); |
91 |
.PP |
.PP |
|
.br |
|
92 |
.B int pcre_info(const pcre *\fIcode\fP, int *\fIoptptr\fP, int |
.B int pcre_info(const pcre *\fIcode\fP, int *\fIoptptr\fP, int |
93 |
.B *\fIfirstcharptr\fP); |
.B *\fIfirstcharptr\fP); |
94 |
.PP |
.PP |
|
.br |
|
95 |
.B int pcre_refcount(pcre *\fIcode\fP, int \fIadjust\fP); |
.B int pcre_refcount(pcre *\fIcode\fP, int \fIadjust\fP); |
96 |
.PP |
.PP |
|
.br |
|
97 |
.B int pcre_config(int \fIwhat\fP, void *\fIwhere\fP); |
.B int pcre_config(int \fIwhat\fP, void *\fIwhere\fP); |
98 |
.PP |
.PP |
|
.br |
|
99 |
.B char *pcre_version(void); |
.B char *pcre_version(void); |
100 |
.PP |
.PP |
|
.br |
|
101 |
.B void *(*pcre_malloc)(size_t); |
.B void *(*pcre_malloc)(size_t); |
102 |
.PP |
.PP |
|
.br |
|
103 |
.B void (*pcre_free)(void *); |
.B void (*pcre_free)(void *); |
104 |
.PP |
.PP |
|
.br |
|
105 |
.B void *(*pcre_stack_malloc)(size_t); |
.B void *(*pcre_stack_malloc)(size_t); |
106 |
.PP |
.PP |
|
.br |
|
107 |
.B void (*pcre_stack_free)(void *); |
.B void (*pcre_stack_free)(void *); |
108 |
.PP |
.PP |
|
.br |
|
109 |
.B int (*pcre_callout)(pcre_callout_block *); |
.B int (*pcre_callout)(pcre_callout_block *); |
110 |
. |
. |
111 |
. |
. |
1451 |
.ti +5n |
.ti +5n |
1452 |
.B int \fIbuffersize\fP); |
.B int \fIbuffersize\fP); |
1453 |
.PP |
.PP |
|
.br |
|
1454 |
.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP, |
.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP, |
1455 |
.ti +5n |
.ti +5n |
1456 |
.B int \fIstringcount\fP, int \fIstringnumber\fP, |
.B int \fIstringcount\fP, int \fIstringnumber\fP, |
1457 |
.ti +5n |
.ti +5n |
1458 |
.B const char **\fIstringptr\fP); |
.B const char **\fIstringptr\fP); |
1459 |
.PP |
.PP |
|
.br |
|
1460 |
.B int pcre_get_substring_list(const char *\fIsubject\fP, |
.B int pcre_get_substring_list(const char *\fIsubject\fP, |
1461 |
.ti +5n |
.ti +5n |
1462 |
.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);" |
.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);" |
1542 |
.ti +5n |
.ti +5n |
1543 |
.B const char *\fIname\fP); |
.B const char *\fIname\fP); |
1544 |
.PP |
.PP |
|
.br |
|
1545 |
.B int pcre_copy_named_substring(const pcre *\fIcode\fP, |
.B int pcre_copy_named_substring(const pcre *\fIcode\fP, |
1546 |
.ti +5n |
.ti +5n |
1547 |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
1550 |
.ti +5n |
.ti +5n |
1551 |
.B char *\fIbuffer\fP, int \fIbuffersize\fP); |
.B char *\fIbuffer\fP, int \fIbuffersize\fP); |
1552 |
.PP |
.PP |
|
.br |
|
1553 |
.B int pcre_get_named_substring(const pcre *\fIcode\fP, |
.B int pcre_get_named_substring(const pcre *\fIcode\fP, |
1554 |
.ti +5n |
.ti +5n |
1555 |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
1817 |
\fBpcrebuild\fP(3), \fBpcrecallout\fP(3), \fBpcrecpp(3)\fP(3), |
\fBpcrebuild\fP(3), \fBpcrecallout\fP(3), \fBpcrecpp(3)\fP(3), |
1818 |
\fBpcrematching\fP(3), \fBpcrepartial\fP(3), \fBpcreposix\fP(3), |
\fBpcrematching\fP(3), \fBpcrepartial\fP(3), \fBpcreposix\fP(3), |
1819 |
\fBpcreprecompile\fP(3), \fBpcresample\fP(3), \fBpcrestack\fP(3). |
\fBpcreprecompile\fP(3), \fBpcresample\fP(3), \fBpcrestack\fP(3). |
1820 |
.P |
. |
1821 |
.in 0 |
. |
1822 |
Last updated: 30 November 2006 |
.SH AUTHOR |
1823 |
.br |
.rs |
1824 |
Copyright (c) 1997-2006 University of Cambridge. |
.sp |
1825 |
|
.nf |
1826 |
|
Philip Hazel |
1827 |
|
University Computing Service |
1828 |
|
Cambridge CB2 3QH, England. |
1829 |
|
.fi |
1830 |
|
. |
1831 |
|
. |
1832 |
|
.SH REVISION |
1833 |
|
.rs |
1834 |
|
.sp |
1835 |
|
.nf |
1836 |
|
Last updated: 06 March 2007 |
1837 |
|
Copyright (c) 1997-2007 University of Cambridge. |
1838 |
|
.fi |