79 lines
2.5 KiB
HTML
79 lines
2.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PCRE_GET_STRINGTABLE_ENTRIES</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PCRE_GET_STRINGTABLE_ENTRIES</H1>
|
|
Section: C Library Functions (3)<BR>Updated: 24 June 2012<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
PCRE - Perl-compatible regular expressions
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<P>
|
|
<B>#include <<A HREF="file:///usr/include/pcre.h">pcre.h</A>></B>
|
|
|
|
<P>
|
|
|
|
<PRE>
|
|
<B>int pcre_get_stringtable_entries(const pcre *</B><I>code</I>,
|
|
<B> const char *</B><I>name</I>, char **<I>first</I>, char **<I>last</I>);
|
|
|
|
<B>int pcre16_get_stringtable_entries(const pcre16 *</B><I>code</I>,
|
|
<B> PCRE_SPTR16 </B><I>name</I>, PCRE_UCHAR16 **<I>first</I>, PCRE_UCHAR16 **<I>last</I>);
|
|
|
|
<B>int pcre32_get_stringtable_entries(const pcre32 *</B><I>code</I>,
|
|
<B> PCRE_SPTR32 </B><I>name</I>, PCRE_UCHAR32 **<I>first</I>, PCRE_UCHAR32 **<I>last</I>);
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
This convenience function finds, for a compiled pattern, the first and last
|
|
entries for a given name in the table that translates capturing parenthesis
|
|
names into numbers. When names are required to be unique (PCRE_DUPNAMES is
|
|
<I>not</I> set), it is usually easier to use <B>pcre[16|32]_get_stringnumber()</B>
|
|
instead.
|
|
<P>
|
|
<BR> <I>code</I> Compiled regular expression
|
|
<BR> <I>name</I> Name whose entries required
|
|
<BR> <I>first</I> Where to return a pointer to the first entry
|
|
<BR> <I>last</I> Where to return a pointer to the last entry
|
|
<P>
|
|
The yield of the function is the length of each entry, or
|
|
PCRE_ERROR_NOSUBSTRING if none are found.
|
|
<P>
|
|
|
|
There is a complete description of the PCRE native API, including the format of
|
|
the table entries, in the
|
|
|
|
<B>pcreapi</B>
|
|
|
|
page, and a description of the POSIX API in the
|
|
|
|
<B>pcreposix</B>
|
|
|
|
page.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:51 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|