Correct tables argument data type for pcre2_set_character_tables() and fix
documentation for pcre2_maketables().
This commit is contained in:
parent
fe2df37c9f
commit
9319b5bb83
|
@ -114,6 +114,9 @@ within it, the nested lookbehind was not correctly processed. For example, if
|
|||
22. A branch that started with (*ACCEPT) was not being recognized as one that
|
||||
could match an empty string.
|
||||
|
||||
23. Corrected pcre2_set_character_tables() tables data type: was const unsigned
|
||||
char * instead of const uint8_t *, as generated by pcre2_maketables().
|
||||
|
||||
|
||||
Version 10.33 16-April-2019
|
||||
---------------------------
|
||||
|
|
|
@ -19,7 +19,7 @@ SYNOPSIS
|
|||
<b>#include <pcre2.h></b>
|
||||
</P>
|
||||
<P>
|
||||
<b>const unsigned char *pcre2_maketables(pcre2_general_context *<i>gcontext</i>);</b>
|
||||
<b>const uint8_t *pcre2_maketables(pcre2_general_context *<i>gcontext</i>);</b>
|
||||
</P>
|
||||
<br><b>
|
||||
DESCRIPTION
|
||||
|
|
|
@ -20,7 +20,7 @@ SYNOPSIS
|
|||
</P>
|
||||
<P>
|
||||
<b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b>
|
||||
<b> const unsigned char *<i>tables</i>);</b>
|
||||
<b> const uint8_t *<i>tables</i>);</b>
|
||||
</P>
|
||||
<br><b>
|
||||
DESCRIPTION
|
||||
|
|
|
@ -142,7 +142,7 @@ document for an overview of all the PCRE2 documentation.
|
|||
<br>
|
||||
<br>
|
||||
<b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b>
|
||||
<b> const unsigned char *<i>tables</i>);</b>
|
||||
<b> const uint8_t *<i>tables</i>);</b>
|
||||
<br>
|
||||
<br>
|
||||
<b>int pcre2_set_compile_extra_options(pcre2_compile_context *<i>ccontext</i>,</b>
|
||||
|
@ -791,7 +791,7 @@ interpreted matching functions, <i>pcre2_match()</i> and
|
|||
<br>
|
||||
<br>
|
||||
<b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b>
|
||||
<b> const unsigned char *<i>tables</i>);</b>
|
||||
<b> const uint8_t *<i>tables</i>);</b>
|
||||
<br>
|
||||
<br>
|
||||
The value must be the result of a call to <i>pcre2_maketables()</i>, whose only
|
||||
|
@ -3851,7 +3851,7 @@ Cambridge, England.
|
|||
</P>
|
||||
<br><a name="SEC42" href="#TOC1">REVISION</a><br>
|
||||
<P>
|
||||
Last updated: 22 July 2019
|
||||
Last updated: 28 July 2019
|
||||
<br>
|
||||
Copyright © 1997-2019 University of Cambridge.
|
||||
<br>
|
||||
|
|
|
@ -261,7 +261,7 @@ PCRE2 NATIVE API COMPILE CONTEXT FUNCTIONS
|
|||
uint32_t value);
|
||||
|
||||
int pcre2_set_character_tables(pcre2_compile_context *ccontext,
|
||||
const unsigned char *tables);
|
||||
const uint8_t *tables);
|
||||
|
||||
int pcre2_set_compile_extra_options(pcre2_compile_context *ccontext,
|
||||
uint32_t extra_options);
|
||||
|
@ -831,7 +831,7 @@ PCRE2 CONTEXTS
|
|||
pcre2_dfa_match().
|
||||
|
||||
int pcre2_set_character_tables(pcre2_compile_context *ccontext,
|
||||
const unsigned char *tables);
|
||||
const uint8_t *tables);
|
||||
|
||||
The value must be the result of a call to pcre2_maketables(), whose
|
||||
only argument is a general context. This function builds a set of char-
|
||||
|
@ -3706,7 +3706,7 @@ AUTHOR
|
|||
|
||||
REVISION
|
||||
|
||||
Last updated: 22 July 2019
|
||||
Last updated: 28 July 2019
|
||||
Copyright (c) 1997-2019 University of Cambridge.
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ PCRE2 - Perl-compatible regular expressions (revised API)
|
|||
.B #include <pcre2.h>
|
||||
.PP
|
||||
.SM
|
||||
.B const unsigned char *pcre2_maketables(pcre2_general_context *\fIgcontext\fP);
|
||||
.B const uint8_t *pcre2_maketables(pcre2_general_context *\fIgcontext\fP);
|
||||
.
|
||||
.SH DESCRIPTION
|
||||
.rs
|
||||
|
|
|
@ -8,7 +8,7 @@ PCRE2 - Perl-compatible regular expressions (revised API)
|
|||
.PP
|
||||
.nf
|
||||
.B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
|
||||
.B " const unsigned char *\fItables\fP);"
|
||||
.B " const uint8_t *\fItables\fP);"
|
||||
.fi
|
||||
.
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH PCRE2API 3 "22 July 2019" "PCRE2 10.34"
|
||||
.TH PCRE2API 3 "28 July 2019" "PCRE2 10.34"
|
||||
.SH NAME
|
||||
PCRE2 - Perl-compatible regular expressions (revised API)
|
||||
.sp
|
||||
|
@ -88,7 +88,7 @@ document for an overview of all the PCRE2 documentation.
|
|||
.B " uint32_t \fIvalue\fP);"
|
||||
.sp
|
||||
.B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
|
||||
.B " const unsigned char *\fItables\fP);"
|
||||
.B " const uint8_t *\fItables\fP);"
|
||||
.sp
|
||||
.B int pcre2_set_compile_extra_options(pcre2_compile_context *\fIccontext\fP,
|
||||
.B " uint32_t \fIextra_options\fP);"
|
||||
|
@ -725,7 +725,7 @@ interpreted matching functions, \fIpcre2_match()\fP and
|
|||
.sp
|
||||
.nf
|
||||
.B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
|
||||
.B " const unsigned char *\fItables\fP);"
|
||||
.B " const uint8_t *\fItables\fP);"
|
||||
.fi
|
||||
.sp
|
||||
The value must be the result of a call to \fIpcre2_maketables()\fP, whose only
|
||||
|
@ -3863,6 +3863,6 @@ Cambridge, England.
|
|||
.rs
|
||||
.sp
|
||||
.nf
|
||||
Last updated: 22 July 2019
|
||||
Last updated: 28 July 2019
|
||||
Copyright (c) 1997-2019 University of Cambridge.
|
||||
.fi
|
||||
|
|
|
@ -584,7 +584,7 @@ PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
|
|||
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
|
||||
pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
|
||||
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
|
||||
pcre2_set_character_tables(pcre2_compile_context *, const unsigned char *); \
|
||||
pcre2_set_character_tables(pcre2_compile_context *, const uint8_t *); \
|
||||
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
|
||||
pcre2_set_compile_extra_options(pcre2_compile_context *, uint32_t); \
|
||||
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
|
||||
|
|
|
@ -323,7 +323,7 @@ data. */
|
|||
|
||||
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
|
||||
pcre2_set_character_tables(pcre2_compile_context *ccontext,
|
||||
const unsigned char *tables)
|
||||
const uint8_t *tables)
|
||||
{
|
||||
ccontext->tables = tables;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue