diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-10 17:10:05 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-10 17:10:05 +0200 |
commit | 582b500cd996c96054615870fd13d6ab0ea77428 (patch) | |
tree | ac17afc801d6c2449910e3fcbb6f45eed401feba /external-libs/pcre/doc/pcre_copy_named_substring.3 | |
parent | 9e1a25fc55534ac05ef73727819970217b3e488c (diff) | |
download | qpdf-582b500cd996c96054615870fd13d6ab0ea77428.tar.zst |
start integrating windows port
git-svn-id: svn+q:///qpdf/trunk@757 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'external-libs/pcre/doc/pcre_copy_named_substring.3')
-rw-r--r-- | external-libs/pcre/doc/pcre_copy_named_substring.3 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/external-libs/pcre/doc/pcre_copy_named_substring.3 b/external-libs/pcre/doc/pcre_copy_named_substring.3 new file mode 100644 index 00000000..915bd0a5 --- /dev/null +++ b/external-libs/pcre/doc/pcre_copy_named_substring.3 @@ -0,0 +1,40 @@ +.TH PCRE 3 +.SH NAME +PCRE - Perl-compatible regular expressions +.SH SYNOPSIS +.rs +.sp +.B #include <pcre.h> +.PP +.SM +.br +.B int pcre_copy_named_substring(const pcre *\fIcode\fR, +.ti +5n +.B const char *\fIsubject\fR, int *\fIovector\fR, +.ti +5n +.B int \fIstringcount\fR, const char *\fIstringname\fR, +.ti +5n +.B char *\fIbuffer\fR, int \fIbuffersize\fR); + +.SH DESCRIPTION +.rs +.sp +This is a convenience function for extracting a captured substring, identified +by name, into a given buffer. The arguments are: + + \fIcode\fR Pattern that was successfully matched + \fIsubject\fR Subject that has been successfully matched + \fIovector\fR Offset vector that \fBpcre_exec()\fR used + \fIstringcount\fR Value returned by \fBpcre_exec()\fR + \fIstringname\fR Name of the required substring + \fIbuffer\fR Buffer to receive the string + \fIbuffersize\fR Size of buffer + +The yield is the length of the substring, PCRE_ERROR_NOMEMORY if the buffer was +too small, or PCRE_ERROR_NOSUBSTRING if the string name is invalid. + +There is a complete description of the PCRE API in the +.\" HREF +\fBpcreapi\fR +.\" +page. |