doc: update names to pcre2
This commit is contained in:
parent
add3a924af
commit
79989e4e5e
|
@ -1794,7 +1794,7 @@ it is set, the effect of passing an invalid UTF string as a pattern is
|
|||
undefined. It may cause your program to crash or loop.
|
||||
.P
|
||||
Note that this option can also be passed to \fBpcre2_match()\fP and
|
||||
\fBpcre_dfa_match()\fP, to suppress UTF validity checking of the subject
|
||||
\fBpcre2_dfa_match()\fP, to suppress UTF validity checking of the subject
|
||||
string.
|
||||
.P
|
||||
Note also that setting PCRE2_NO_UTF_CHECK at compile time does not disable the
|
||||
|
@ -3848,7 +3848,7 @@ Here is an example of a simple call to \fBpcre2_dfa_match()\fP:
|
|||
wspace, /* working space vector */
|
||||
20); /* number of elements (NOT size in bytes) */
|
||||
.
|
||||
.SS "Option bits for \fBpcre_dfa_match()\fP"
|
||||
.SS "Option bits for \fBpcre2_dfa_match()\fP"
|
||||
.rs
|
||||
.sp
|
||||
The unused bits of the \fIoptions\fP argument for \fBpcre2_dfa_match()\fP must
|
||||
|
|
|
@ -47,7 +47,7 @@ format before being passed to the library functions. Results are converted back
|
|||
to 8-bit code units for output.
|
||||
.P
|
||||
In the rest of this document, the names of library functions and structures
|
||||
are given in generic form, for example, \fBpcre_compile()\fP. The actual
|
||||
are given in generic form, for example, \fBpcre2_compile()\fP. The actual
|
||||
names used in the libraries have a suffix _8, _16, or _32, as appropriate.
|
||||
.
|
||||
.
|
||||
|
|
|
@ -519,7 +519,7 @@ it is. This is called only in UTF-32 mode - we don't put a test within the
|
|||
macro because almost all calls are already within a block of UTF-32 only
|
||||
code.
|
||||
|
||||
These are all no-ops since all UTF-32 characters fit into one pcre_uchar. */
|
||||
These are all no-ops since all UTF-32 characters fit into one PCRE2_UCHAR. */
|
||||
|
||||
#define BACKCHAR(eptr) do { } while (0)
|
||||
|
||||
|
@ -764,7 +764,7 @@ typedef struct pcre2_real_jit_stack {
|
|||
} pcre2_real_jit_stack;
|
||||
|
||||
/* Structure for items in a linked list that represents an explicit recursive
|
||||
call within the pattern when running pcre_dfa_match(). */
|
||||
call within the pattern when running pcre2_dfa_match(). */
|
||||
|
||||
typedef struct dfa_recursion_info {
|
||||
struct dfa_recursion_info *prevrec;
|
||||
|
|
|
@ -13692,7 +13692,7 @@ if (!compiler)
|
|||
}
|
||||
common->compiler = compiler;
|
||||
|
||||
/* Main pcre_jit_exec entry. */
|
||||
/* Main pcre2_jit_exec entry. */
|
||||
sljit_emit_enter(compiler, 0, SLJIT_ARG1(SW), 5, 5, 0, 0, private_data_size);
|
||||
|
||||
/* Register init. */
|
||||
|
|
|
@ -120,7 +120,7 @@ else if ((options & PCRE2_PARTIAL_SOFT) != 0)
|
|||
if (functions == NULL || functions->executable_funcs[index] == NULL)
|
||||
return PCRE2_ERROR_JIT_BADOPTION;
|
||||
|
||||
/* Sanity checks should be handled by pcre_exec. */
|
||||
/* Sanity checks should be handled by pcre2_match. */
|
||||
arguments.str = subject + start_offset;
|
||||
arguments.begin = subject;
|
||||
arguments.end = subject + length;
|
||||
|
|
|
@ -108,7 +108,7 @@ int main(void)
|
|||
pcre2_config_32(PCRE2_CONFIG_JIT, &jit);
|
||||
#endif
|
||||
if (!jit) {
|
||||
printf("JIT must be enabled to run pcre_jit_test\n");
|
||||
printf("JIT must be enabled to run pcre2_jit_test\n");
|
||||
return 1;
|
||||
}
|
||||
return regression_tests()
|
||||
|
@ -1199,8 +1199,8 @@ static int regression_tests(void)
|
|||
#endif
|
||||
|
||||
/* This test compares the behaviour of interpreter and JIT. Although disabling
|
||||
utf or ucp may make tests fail, if the pcre_exec result is the SAME, it is
|
||||
still considered successful from pcre_jit_test point of view. */
|
||||
utf or ucp may make tests fail, if the pcre2_match result is the SAME, it is
|
||||
still considered successful from pcre2_jit_test point of view. */
|
||||
|
||||
#if defined SUPPORT_PCRE2_8
|
||||
pcre2_config_8(PCRE2_CONFIG_JITTARGET, &cpu_info);
|
||||
|
|
|
@ -1816,7 +1816,7 @@ to find all possible matches.
|
|||
Arguments:
|
||||
matchptr the start of the subject
|
||||
length the length of the subject to match
|
||||
options options for pcre_exec
|
||||
options options for pcre2_match
|
||||
startoffset where to start matching
|
||||
mrc address of where to put the result of pcre2_match()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This set of tests checks UTF and Unicode property support with the DFA
|
||||
# matching functionality of pcre_dfa_match(). A default subject modifier is
|
||||
# matching functionality of pcre2_dfa_match(). A default subject modifier is
|
||||
# used to force DFA matching for all tests.
|
||||
|
||||
#subject dfa
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This set of tests checks UTF and Unicode property support with the DFA
|
||||
# matching functionality of pcre_dfa_match(). A default subject modifier is
|
||||
# matching functionality of pcre2_dfa_match(). A default subject modifier is
|
||||
# used to force DFA matching for all tests.
|
||||
|
||||
#subject dfa
|
||||
|
|
Loading…
Reference in New Issue