Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: pcre2.h
/*************************************************
[0] Fix | Delete
* Perl-Compatible Regular Expressions *
[1] Fix | Delete
*************************************************/
[2] Fix | Delete
[3] Fix | Delete
/* This is the public header file for the PCRE library, second API, to be
[4] Fix | Delete
#included by applications that call PCRE2 functions.
[5] Fix | Delete
[6] Fix | Delete
Copyright (c) 2016-2018 University of Cambridge
[7] Fix | Delete
[8] Fix | Delete
-----------------------------------------------------------------------------
[9] Fix | Delete
Redistribution and use in source and binary forms, with or without
[10] Fix | Delete
modification, are permitted provided that the following conditions are met:
[11] Fix | Delete
[12] Fix | Delete
* Redistributions of source code must retain the above copyright notice,
[13] Fix | Delete
this list of conditions and the following disclaimer.
[14] Fix | Delete
[15] Fix | Delete
* Redistributions in binary form must reproduce the above copyright
[16] Fix | Delete
notice, this list of conditions and the following disclaimer in the
[17] Fix | Delete
documentation and/or other materials provided with the distribution.
[18] Fix | Delete
[19] Fix | Delete
* Neither the name of the University of Cambridge nor the names of its
[20] Fix | Delete
contributors may be used to endorse or promote products derived from
[21] Fix | Delete
this software without specific prior written permission.
[22] Fix | Delete
[23] Fix | Delete
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[24] Fix | Delete
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[25] Fix | Delete
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[26] Fix | Delete
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
[27] Fix | Delete
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[28] Fix | Delete
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[29] Fix | Delete
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[30] Fix | Delete
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[31] Fix | Delete
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[32] Fix | Delete
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[33] Fix | Delete
POSSIBILITY OF SUCH DAMAGE.
[34] Fix | Delete
-----------------------------------------------------------------------------
[35] Fix | Delete
*/
[36] Fix | Delete
[37] Fix | Delete
#ifndef PCRE2_H_IDEMPOTENT_GUARD
[38] Fix | Delete
#define PCRE2_H_IDEMPOTENT_GUARD
[39] Fix | Delete
[40] Fix | Delete
/* The current PCRE version information. */
[41] Fix | Delete
[42] Fix | Delete
#define PCRE2_MAJOR 10
[43] Fix | Delete
#define PCRE2_MINOR 32
[44] Fix | Delete
#define PCRE2_PRERELEASE
[45] Fix | Delete
#define PCRE2_DATE 2018-09-10
[46] Fix | Delete
[47] Fix | Delete
/* For the benefit of systems without stdint.h, an alternative is to use
[48] Fix | Delete
inttypes.h. The existence of these headers is checked by configure or CMake. */
[49] Fix | Delete
[50] Fix | Delete
#define PCRE2_HAVE_STDINT_H 1
[51] Fix | Delete
#define PCRE2_HAVE_INTTYPES_H 1
[52] Fix | Delete
[53] Fix | Delete
/* When an application links to a PCRE DLL in Windows, the symbols that are
[54] Fix | Delete
imported have to be identified as such. When building PCRE2, the appropriate
[55] Fix | Delete
export setting is defined in pcre2_internal.h, which includes this file. So we
[56] Fix | Delete
don't change existing definitions of PCRE2_EXP_DECL. */
[57] Fix | Delete
[58] Fix | Delete
#if defined(_WIN32) && !defined(PCRE2_STATIC)
[59] Fix | Delete
# ifndef PCRE2_EXP_DECL
[60] Fix | Delete
# define PCRE2_EXP_DECL extern __declspec(dllimport)
[61] Fix | Delete
# endif
[62] Fix | Delete
#endif
[63] Fix | Delete
[64] Fix | Delete
/* By default, we use the standard "extern" declarations. */
[65] Fix | Delete
[66] Fix | Delete
#ifndef PCRE2_EXP_DECL
[67] Fix | Delete
# ifdef __cplusplus
[68] Fix | Delete
# define PCRE2_EXP_DECL extern "C"
[69] Fix | Delete
# else
[70] Fix | Delete
# define PCRE2_EXP_DECL extern
[71] Fix | Delete
# endif
[72] Fix | Delete
#endif
[73] Fix | Delete
[74] Fix | Delete
/* When compiling with the MSVC compiler, it is sometimes necessary to include
[75] Fix | Delete
a "calling convention" before exported function names. (This is secondhand
[76] Fix | Delete
information; I know nothing about MSVC myself). For example, something like
[77] Fix | Delete
[78] Fix | Delete
void __cdecl function(....)
[79] Fix | Delete
[80] Fix | Delete
might be needed. In order so make this easy, all the exported functions have
[81] Fix | Delete
PCRE2_CALL_CONVENTION just before their names. It is rarely needed; if not
[82] Fix | Delete
set, we ensure here that it has no effect. */
[83] Fix | Delete
[84] Fix | Delete
#ifndef PCRE2_CALL_CONVENTION
[85] Fix | Delete
#define PCRE2_CALL_CONVENTION
[86] Fix | Delete
#endif
[87] Fix | Delete
[88] Fix | Delete
/* Have to include limits.h, stdlib.h and stdint.h (or inttypes.h) to ensure
[89] Fix | Delete
that size_t and uint8_t, UCHAR_MAX, etc are defined. If the system has neither
[90] Fix | Delete
header, the relevant values must be provided by some other means. */
[91] Fix | Delete
[92] Fix | Delete
#include <limits.h>
[93] Fix | Delete
#include <stdlib.h>
[94] Fix | Delete
[95] Fix | Delete
#if PCRE2_HAVE_STDINT_H
[96] Fix | Delete
#include <stdint.h>
[97] Fix | Delete
#elif PCRE2_HAVE_INTTYPES_H
[98] Fix | Delete
#include <inttypes.h>
[99] Fix | Delete
#endif
[100] Fix | Delete
[101] Fix | Delete
/* Allow for C++ users compiling this directly. */
[102] Fix | Delete
[103] Fix | Delete
#ifdef __cplusplus
[104] Fix | Delete
extern "C" {
[105] Fix | Delete
#endif
[106] Fix | Delete
[107] Fix | Delete
/* The following option bits can be passed to pcre2_compile(), pcre2_match(),
[108] Fix | Delete
or pcre2_dfa_match(). PCRE2_NO_UTF_CHECK affects only the function to which it
[109] Fix | Delete
is passed. Put these bits at the most significant end of the options word so
[110] Fix | Delete
others can be added next to them */
[111] Fix | Delete
[112] Fix | Delete
#define PCRE2_ANCHORED 0x80000000u
[113] Fix | Delete
#define PCRE2_NO_UTF_CHECK 0x40000000u
[114] Fix | Delete
#define PCRE2_ENDANCHORED 0x20000000u
[115] Fix | Delete
[116] Fix | Delete
/* The following option bits can be passed only to pcre2_compile(). However,
[117] Fix | Delete
they may affect compilation, JIT compilation, and/or interpretive execution.
[118] Fix | Delete
The following tags indicate which:
[119] Fix | Delete
[120] Fix | Delete
C alters what is compiled by pcre2_compile()
[121] Fix | Delete
J alters what is compiled by pcre2_jit_compile()
[122] Fix | Delete
M is inspected during pcre2_match() execution
[123] Fix | Delete
D is inspected during pcre2_dfa_match() execution
[124] Fix | Delete
*/
[125] Fix | Delete
[126] Fix | Delete
#define PCRE2_ALLOW_EMPTY_CLASS 0x00000001u /* C */
[127] Fix | Delete
#define PCRE2_ALT_BSUX 0x00000002u /* C */
[128] Fix | Delete
#define PCRE2_AUTO_CALLOUT 0x00000004u /* C */
[129] Fix | Delete
#define PCRE2_CASELESS 0x00000008u /* C */
[130] Fix | Delete
#define PCRE2_DOLLAR_ENDONLY 0x00000010u /* J M D */
[131] Fix | Delete
#define PCRE2_DOTALL 0x00000020u /* C */
[132] Fix | Delete
#define PCRE2_DUPNAMES 0x00000040u /* C */
[133] Fix | Delete
#define PCRE2_EXTENDED 0x00000080u /* C */
[134] Fix | Delete
#define PCRE2_FIRSTLINE 0x00000100u /* J M D */
[135] Fix | Delete
#define PCRE2_MATCH_UNSET_BACKREF 0x00000200u /* C J M */
[136] Fix | Delete
#define PCRE2_MULTILINE 0x00000400u /* C */
[137] Fix | Delete
#define PCRE2_NEVER_UCP 0x00000800u /* C */
[138] Fix | Delete
#define PCRE2_NEVER_UTF 0x00001000u /* C */
[139] Fix | Delete
#define PCRE2_NO_AUTO_CAPTURE 0x00002000u /* C */
[140] Fix | Delete
#define PCRE2_NO_AUTO_POSSESS 0x00004000u /* C */
[141] Fix | Delete
#define PCRE2_NO_DOTSTAR_ANCHOR 0x00008000u /* C */
[142] Fix | Delete
#define PCRE2_NO_START_OPTIMIZE 0x00010000u /* J M D */
[143] Fix | Delete
#define PCRE2_UCP 0x00020000u /* C J M D */
[144] Fix | Delete
#define PCRE2_UNGREEDY 0x00040000u /* C */
[145] Fix | Delete
#define PCRE2_UTF 0x00080000u /* C J M D */
[146] Fix | Delete
#define PCRE2_NEVER_BACKSLASH_C 0x00100000u /* C */
[147] Fix | Delete
#define PCRE2_ALT_CIRCUMFLEX 0x00200000u /* J M D */
[148] Fix | Delete
#define PCRE2_ALT_VERBNAMES 0x00400000u /* C */
[149] Fix | Delete
#define PCRE2_USE_OFFSET_LIMIT 0x00800000u /* J M D */
[150] Fix | Delete
#define PCRE2_EXTENDED_MORE 0x01000000u /* C */
[151] Fix | Delete
#define PCRE2_LITERAL 0x02000000u /* C */
[152] Fix | Delete
[153] Fix | Delete
/* An additional compile options word is available in the compile context. */
[154] Fix | Delete
[155] Fix | Delete
#define PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES 0x00000001u /* C */
[156] Fix | Delete
#define PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL 0x00000002u /* C */
[157] Fix | Delete
#define PCRE2_EXTRA_MATCH_WORD 0x00000004u /* C */
[158] Fix | Delete
#define PCRE2_EXTRA_MATCH_LINE 0x00000008u /* C */
[159] Fix | Delete
[160] Fix | Delete
/* These are for pcre2_jit_compile(). */
[161] Fix | Delete
[162] Fix | Delete
#define PCRE2_JIT_COMPLETE 0x00000001u /* For full matching */
[163] Fix | Delete
#define PCRE2_JIT_PARTIAL_SOFT 0x00000002u
[164] Fix | Delete
#define PCRE2_JIT_PARTIAL_HARD 0x00000004u
[165] Fix | Delete
[166] Fix | Delete
/* These are for pcre2_match(), pcre2_dfa_match(), and pcre2_jit_match(). Note
[167] Fix | Delete
that PCRE2_ANCHORED and PCRE2_NO_UTF_CHECK can also be passed to these
[168] Fix | Delete
functions (though pcre2_jit_match() ignores the latter since it bypasses all
[169] Fix | Delete
sanity checks). */
[170] Fix | Delete
[171] Fix | Delete
#define PCRE2_NOTBOL 0x00000001u
[172] Fix | Delete
#define PCRE2_NOTEOL 0x00000002u
[173] Fix | Delete
#define PCRE2_NOTEMPTY 0x00000004u /* ) These two must be kept */
[174] Fix | Delete
#define PCRE2_NOTEMPTY_ATSTART 0x00000008u /* ) adjacent to each other. */
[175] Fix | Delete
#define PCRE2_PARTIAL_SOFT 0x00000010u
[176] Fix | Delete
#define PCRE2_PARTIAL_HARD 0x00000020u
[177] Fix | Delete
[178] Fix | Delete
/* These are additional options for pcre2_dfa_match(). */
[179] Fix | Delete
[180] Fix | Delete
#define PCRE2_DFA_RESTART 0x00000040u
[181] Fix | Delete
#define PCRE2_DFA_SHORTEST 0x00000080u
[182] Fix | Delete
[183] Fix | Delete
/* These are additional options for pcre2_substitute(), which passes any others
[184] Fix | Delete
through to pcre2_match(). */
[185] Fix | Delete
[186] Fix | Delete
#define PCRE2_SUBSTITUTE_GLOBAL 0x00000100u
[187] Fix | Delete
#define PCRE2_SUBSTITUTE_EXTENDED 0x00000200u
[188] Fix | Delete
#define PCRE2_SUBSTITUTE_UNSET_EMPTY 0x00000400u
[189] Fix | Delete
#define PCRE2_SUBSTITUTE_UNKNOWN_UNSET 0x00000800u
[190] Fix | Delete
#define PCRE2_SUBSTITUTE_OVERFLOW_LENGTH 0x00001000u
[191] Fix | Delete
[192] Fix | Delete
/* A further option for pcre2_match(), not allowed for pcre2_dfa_match(),
[193] Fix | Delete
ignored for pcre2_jit_match(). */
[194] Fix | Delete
[195] Fix | Delete
#define PCRE2_NO_JIT 0x00002000u
[196] Fix | Delete
[197] Fix | Delete
/* Options for pcre2_pattern_convert(). */
[198] Fix | Delete
[199] Fix | Delete
#define PCRE2_CONVERT_UTF 0x00000001u
[200] Fix | Delete
#define PCRE2_CONVERT_NO_UTF_CHECK 0x00000002u
[201] Fix | Delete
#define PCRE2_CONVERT_POSIX_BASIC 0x00000004u
[202] Fix | Delete
#define PCRE2_CONVERT_POSIX_EXTENDED 0x00000008u
[203] Fix | Delete
#define PCRE2_CONVERT_GLOB 0x00000010u
[204] Fix | Delete
#define PCRE2_CONVERT_GLOB_NO_WILD_SEPARATOR 0x00000030u
[205] Fix | Delete
#define PCRE2_CONVERT_GLOB_NO_STARSTAR 0x00000050u
[206] Fix | Delete
[207] Fix | Delete
/* Newline and \R settings, for use in compile contexts. The newline values
[208] Fix | Delete
must be kept in step with values set in config.h and both sets must all be
[209] Fix | Delete
greater than zero. */
[210] Fix | Delete
[211] Fix | Delete
#define PCRE2_NEWLINE_CR 1
[212] Fix | Delete
#define PCRE2_NEWLINE_LF 2
[213] Fix | Delete
#define PCRE2_NEWLINE_CRLF 3
[214] Fix | Delete
#define PCRE2_NEWLINE_ANY 4
[215] Fix | Delete
#define PCRE2_NEWLINE_ANYCRLF 5
[216] Fix | Delete
#define PCRE2_NEWLINE_NUL 6
[217] Fix | Delete
[218] Fix | Delete
#define PCRE2_BSR_UNICODE 1
[219] Fix | Delete
#define PCRE2_BSR_ANYCRLF 2
[220] Fix | Delete
[221] Fix | Delete
/* Error codes for pcre2_compile(). Some of these are also used by
[222] Fix | Delete
pcre2_pattern_convert(). */
[223] Fix | Delete
[224] Fix | Delete
#define PCRE2_ERROR_END_BACKSLASH 101
[225] Fix | Delete
#define PCRE2_ERROR_END_BACKSLASH_C 102
[226] Fix | Delete
#define PCRE2_ERROR_UNKNOWN_ESCAPE 103
[227] Fix | Delete
#define PCRE2_ERROR_QUANTIFIER_OUT_OF_ORDER 104
[228] Fix | Delete
#define PCRE2_ERROR_QUANTIFIER_TOO_BIG 105
[229] Fix | Delete
#define PCRE2_ERROR_MISSING_SQUARE_BRACKET 106
[230] Fix | Delete
#define PCRE2_ERROR_ESCAPE_INVALID_IN_CLASS 107
[231] Fix | Delete
#define PCRE2_ERROR_CLASS_RANGE_ORDER 108
[232] Fix | Delete
#define PCRE2_ERROR_QUANTIFIER_INVALID 109
[233] Fix | Delete
#define PCRE2_ERROR_INTERNAL_UNEXPECTED_REPEAT 110
[234] Fix | Delete
#define PCRE2_ERROR_INVALID_AFTER_PARENS_QUERY 111
[235] Fix | Delete
#define PCRE2_ERROR_POSIX_CLASS_NOT_IN_CLASS 112
[236] Fix | Delete
#define PCRE2_ERROR_POSIX_NO_SUPPORT_COLLATING 113
[237] Fix | Delete
#define PCRE2_ERROR_MISSING_CLOSING_PARENTHESIS 114
[238] Fix | Delete
#define PCRE2_ERROR_BAD_SUBPATTERN_REFERENCE 115
[239] Fix | Delete
#define PCRE2_ERROR_NULL_PATTERN 116
[240] Fix | Delete
#define PCRE2_ERROR_BAD_OPTIONS 117
[241] Fix | Delete
#define PCRE2_ERROR_MISSING_COMMENT_CLOSING 118
[242] Fix | Delete
#define PCRE2_ERROR_PARENTHESES_NEST_TOO_DEEP 119
[243] Fix | Delete
#define PCRE2_ERROR_PATTERN_TOO_LARGE 120
[244] Fix | Delete
#define PCRE2_ERROR_HEAP_FAILED 121
[245] Fix | Delete
#define PCRE2_ERROR_UNMATCHED_CLOSING_PARENTHESIS 122
[246] Fix | Delete
#define PCRE2_ERROR_INTERNAL_CODE_OVERFLOW 123
[247] Fix | Delete
#define PCRE2_ERROR_MISSING_CONDITION_CLOSING 124
[248] Fix | Delete
#define PCRE2_ERROR_LOOKBEHIND_NOT_FIXED_LENGTH 125
[249] Fix | Delete
#define PCRE2_ERROR_ZERO_RELATIVE_REFERENCE 126
[250] Fix | Delete
#define PCRE2_ERROR_TOO_MANY_CONDITION_BRANCHES 127
[251] Fix | Delete
#define PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED 128
[252] Fix | Delete
#define PCRE2_ERROR_BAD_RELATIVE_REFERENCE 129
[253] Fix | Delete
#define PCRE2_ERROR_UNKNOWN_POSIX_CLASS 130
[254] Fix | Delete
#define PCRE2_ERROR_INTERNAL_STUDY_ERROR 131
[255] Fix | Delete
#define PCRE2_ERROR_UNICODE_NOT_SUPPORTED 132
[256] Fix | Delete
#define PCRE2_ERROR_PARENTHESES_STACK_CHECK 133
[257] Fix | Delete
#define PCRE2_ERROR_CODE_POINT_TOO_BIG 134
[258] Fix | Delete
#define PCRE2_ERROR_LOOKBEHIND_TOO_COMPLICATED 135
[259] Fix | Delete
#define PCRE2_ERROR_LOOKBEHIND_INVALID_BACKSLASH_C 136
[260] Fix | Delete
#define PCRE2_ERROR_UNSUPPORTED_ESCAPE_SEQUENCE 137
[261] Fix | Delete
#define PCRE2_ERROR_CALLOUT_NUMBER_TOO_BIG 138
[262] Fix | Delete
#define PCRE2_ERROR_MISSING_CALLOUT_CLOSING 139
[263] Fix | Delete
#define PCRE2_ERROR_ESCAPE_INVALID_IN_VERB 140
[264] Fix | Delete
#define PCRE2_ERROR_UNRECOGNIZED_AFTER_QUERY_P 141
[265] Fix | Delete
#define PCRE2_ERROR_MISSING_NAME_TERMINATOR 142
[266] Fix | Delete
#define PCRE2_ERROR_DUPLICATE_SUBPATTERN_NAME 143
[267] Fix | Delete
#define PCRE2_ERROR_INVALID_SUBPATTERN_NAME 144
[268] Fix | Delete
#define PCRE2_ERROR_UNICODE_PROPERTIES_UNAVAILABLE 145
[269] Fix | Delete
#define PCRE2_ERROR_MALFORMED_UNICODE_PROPERTY 146
[270] Fix | Delete
#define PCRE2_ERROR_UNKNOWN_UNICODE_PROPERTY 147
[271] Fix | Delete
#define PCRE2_ERROR_SUBPATTERN_NAME_TOO_LONG 148
[272] Fix | Delete
#define PCRE2_ERROR_TOO_MANY_NAMED_SUBPATTERNS 149
[273] Fix | Delete
#define PCRE2_ERROR_CLASS_INVALID_RANGE 150
[274] Fix | Delete
#define PCRE2_ERROR_OCTAL_BYTE_TOO_BIG 151
[275] Fix | Delete
#define PCRE2_ERROR_INTERNAL_OVERRAN_WORKSPACE 152
[276] Fix | Delete
#define PCRE2_ERROR_INTERNAL_MISSING_SUBPATTERN 153
[277] Fix | Delete
#define PCRE2_ERROR_DEFINE_TOO_MANY_BRANCHES 154
[278] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_O_MISSING_BRACE 155
[279] Fix | Delete
#define PCRE2_ERROR_INTERNAL_UNKNOWN_NEWLINE 156
[280] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_G_SYNTAX 157
[281] Fix | Delete
#define PCRE2_ERROR_PARENS_QUERY_R_MISSING_CLOSING 158
[282] Fix | Delete
/* Error 159 is obsolete and should now never occur */
[283] Fix | Delete
#define PCRE2_ERROR_VERB_ARGUMENT_NOT_ALLOWED 159
[284] Fix | Delete
#define PCRE2_ERROR_VERB_UNKNOWN 160
[285] Fix | Delete
#define PCRE2_ERROR_SUBPATTERN_NUMBER_TOO_BIG 161
[286] Fix | Delete
#define PCRE2_ERROR_SUBPATTERN_NAME_EXPECTED 162
[287] Fix | Delete
#define PCRE2_ERROR_INTERNAL_PARSED_OVERFLOW 163
[288] Fix | Delete
#define PCRE2_ERROR_INVALID_OCTAL 164
[289] Fix | Delete
#define PCRE2_ERROR_SUBPATTERN_NAMES_MISMATCH 165
[290] Fix | Delete
#define PCRE2_ERROR_MARK_MISSING_ARGUMENT 166
[291] Fix | Delete
#define PCRE2_ERROR_INVALID_HEXADECIMAL 167
[292] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_C_SYNTAX 168
[293] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_K_SYNTAX 169
[294] Fix | Delete
#define PCRE2_ERROR_INTERNAL_BAD_CODE_LOOKBEHINDS 170
[295] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_N_IN_CLASS 171
[296] Fix | Delete
#define PCRE2_ERROR_CALLOUT_STRING_TOO_LONG 172
[297] Fix | Delete
#define PCRE2_ERROR_UNICODE_DISALLOWED_CODE_POINT 173
[298] Fix | Delete
#define PCRE2_ERROR_UTF_IS_DISABLED 174
[299] Fix | Delete
#define PCRE2_ERROR_UCP_IS_DISABLED 175
[300] Fix | Delete
#define PCRE2_ERROR_VERB_NAME_TOO_LONG 176
[301] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_U_CODE_POINT_TOO_BIG 177
[302] Fix | Delete
#define PCRE2_ERROR_MISSING_OCTAL_OR_HEX_DIGITS 178
[303] Fix | Delete
#define PCRE2_ERROR_VERSION_CONDITION_SYNTAX 179
[304] Fix | Delete
#define PCRE2_ERROR_INTERNAL_BAD_CODE_AUTO_POSSESS 180
[305] Fix | Delete
#define PCRE2_ERROR_CALLOUT_NO_STRING_DELIMITER 181
[306] Fix | Delete
#define PCRE2_ERROR_CALLOUT_BAD_STRING_DELIMITER 182
[307] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_C_CALLER_DISABLED 183
[308] Fix | Delete
#define PCRE2_ERROR_QUERY_BARJX_NEST_TOO_DEEP 184
[309] Fix | Delete
#define PCRE2_ERROR_BACKSLASH_C_LIBRARY_DISABLED 185
[310] Fix | Delete
#define PCRE2_ERROR_PATTERN_TOO_COMPLICATED 186
[311] Fix | Delete
#define PCRE2_ERROR_LOOKBEHIND_TOO_LONG 187
[312] Fix | Delete
#define PCRE2_ERROR_PATTERN_STRING_TOO_LONG 188
[313] Fix | Delete
#define PCRE2_ERROR_INTERNAL_BAD_CODE 189
[314] Fix | Delete
#define PCRE2_ERROR_INTERNAL_BAD_CODE_IN_SKIP 190
[315] Fix | Delete
#define PCRE2_ERROR_NO_SURROGATES_IN_UTF16 191
[316] Fix | Delete
#define PCRE2_ERROR_BAD_LITERAL_OPTIONS 192
[317] Fix | Delete
#define PCRE2_ERROR_SUPPORTED_ONLY_IN_UNICODE 193
[318] Fix | Delete
#define PCRE2_ERROR_INVALID_HYPHEN_IN_OPTIONS 194
[319] Fix | Delete
[320] Fix | Delete
[321] Fix | Delete
/* "Expected" matching error codes: no match and partial match. */
[322] Fix | Delete
[323] Fix | Delete
#define PCRE2_ERROR_NOMATCH (-1)
[324] Fix | Delete
#define PCRE2_ERROR_PARTIAL (-2)
[325] Fix | Delete
[326] Fix | Delete
/* Error codes for UTF-8 validity checks */
[327] Fix | Delete
[328] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR1 (-3)
[329] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR2 (-4)
[330] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR3 (-5)
[331] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR4 (-6)
[332] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR5 (-7)
[333] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR6 (-8)
[334] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR7 (-9)
[335] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR8 (-10)
[336] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR9 (-11)
[337] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR10 (-12)
[338] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR11 (-13)
[339] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR12 (-14)
[340] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR13 (-15)
[341] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR14 (-16)
[342] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR15 (-17)
[343] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR16 (-18)
[344] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR17 (-19)
[345] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR18 (-20)
[346] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR19 (-21)
[347] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR20 (-22)
[348] Fix | Delete
#define PCRE2_ERROR_UTF8_ERR21 (-23)
[349] Fix | Delete
[350] Fix | Delete
/* Error codes for UTF-16 validity checks */
[351] Fix | Delete
[352] Fix | Delete
#define PCRE2_ERROR_UTF16_ERR1 (-24)
[353] Fix | Delete
#define PCRE2_ERROR_UTF16_ERR2 (-25)
[354] Fix | Delete
#define PCRE2_ERROR_UTF16_ERR3 (-26)
[355] Fix | Delete
[356] Fix | Delete
/* Error codes for UTF-32 validity checks */
[357] Fix | Delete
[358] Fix | Delete
#define PCRE2_ERROR_UTF32_ERR1 (-27)
[359] Fix | Delete
#define PCRE2_ERROR_UTF32_ERR2 (-28)
[360] Fix | Delete
[361] Fix | Delete
/* Miscellaneous error codes for pcre2[_dfa]_match(), substring extraction
[362] Fix | Delete
functions, context functions, and serializing functions. They are in numerical
[363] Fix | Delete
order. Originally they were in alphabetical order too, but now that PCRE2 is
[364] Fix | Delete
released, the numbers must not be changed. */
[365] Fix | Delete
[366] Fix | Delete
#define PCRE2_ERROR_BADDATA (-29)
[367] Fix | Delete
#define PCRE2_ERROR_MIXEDTABLES (-30) /* Name was changed */
[368] Fix | Delete
#define PCRE2_ERROR_BADMAGIC (-31)
[369] Fix | Delete
#define PCRE2_ERROR_BADMODE (-32)
[370] Fix | Delete
#define PCRE2_ERROR_BADOFFSET (-33)
[371] Fix | Delete
#define PCRE2_ERROR_BADOPTION (-34)
[372] Fix | Delete
#define PCRE2_ERROR_BADREPLACEMENT (-35)
[373] Fix | Delete
#define PCRE2_ERROR_BADUTFOFFSET (-36)
[374] Fix | Delete
#define PCRE2_ERROR_CALLOUT (-37) /* Never used by PCRE2 itself */
[375] Fix | Delete
#define PCRE2_ERROR_DFA_BADRESTART (-38)
[376] Fix | Delete
#define PCRE2_ERROR_DFA_RECURSE (-39)
[377] Fix | Delete
#define PCRE2_ERROR_DFA_UCOND (-40)
[378] Fix | Delete
#define PCRE2_ERROR_DFA_UFUNC (-41)
[379] Fix | Delete
#define PCRE2_ERROR_DFA_UITEM (-42)
[380] Fix | Delete
#define PCRE2_ERROR_DFA_WSSIZE (-43)
[381] Fix | Delete
#define PCRE2_ERROR_INTERNAL (-44)
[382] Fix | Delete
#define PCRE2_ERROR_JIT_BADOPTION (-45)
[383] Fix | Delete
#define PCRE2_ERROR_JIT_STACKLIMIT (-46)
[384] Fix | Delete
#define PCRE2_ERROR_MATCHLIMIT (-47)
[385] Fix | Delete
#define PCRE2_ERROR_NOMEMORY (-48)
[386] Fix | Delete
#define PCRE2_ERROR_NOSUBSTRING (-49)
[387] Fix | Delete
#define PCRE2_ERROR_NOUNIQUESUBSTRING (-50)
[388] Fix | Delete
#define PCRE2_ERROR_NULL (-51)
[389] Fix | Delete
#define PCRE2_ERROR_RECURSELOOP (-52)
[390] Fix | Delete
#define PCRE2_ERROR_DEPTHLIMIT (-53)
[391] Fix | Delete
#define PCRE2_ERROR_RECURSIONLIMIT (-53) /* Obsolete synonym */
[392] Fix | Delete
#define PCRE2_ERROR_UNAVAILABLE (-54)
[393] Fix | Delete
#define PCRE2_ERROR_UNSET (-55)
[394] Fix | Delete
#define PCRE2_ERROR_BADOFFSETLIMIT (-56)
[395] Fix | Delete
#define PCRE2_ERROR_BADREPESCAPE (-57)
[396] Fix | Delete
#define PCRE2_ERROR_REPMISSINGBRACE (-58)
[397] Fix | Delete
#define PCRE2_ERROR_BADSUBSTITUTION (-59)
[398] Fix | Delete
#define PCRE2_ERROR_BADSUBSPATTERN (-60)
[399] Fix | Delete
#define PCRE2_ERROR_TOOMANYREPLACE (-61)
[400] Fix | Delete
#define PCRE2_ERROR_BADSERIALIZEDDATA (-62)
[401] Fix | Delete
#define PCRE2_ERROR_HEAPLIMIT (-63)
[402] Fix | Delete
#define PCRE2_ERROR_CONVERT_SYNTAX (-64)
[403] Fix | Delete
#define PCRE2_ERROR_INTERNAL_DUPMATCH (-65)
[404] Fix | Delete
[405] Fix | Delete
[406] Fix | Delete
/* Request types for pcre2_pattern_info() */
[407] Fix | Delete
[408] Fix | Delete
#define PCRE2_INFO_ALLOPTIONS 0
[409] Fix | Delete
#define PCRE2_INFO_ARGOPTIONS 1
[410] Fix | Delete
#define PCRE2_INFO_BACKREFMAX 2
[411] Fix | Delete
#define PCRE2_INFO_BSR 3
[412] Fix | Delete
#define PCRE2_INFO_CAPTURECOUNT 4
[413] Fix | Delete
#define PCRE2_INFO_FIRSTCODEUNIT 5
[414] Fix | Delete
#define PCRE2_INFO_FIRSTCODETYPE 6
[415] Fix | Delete
#define PCRE2_INFO_FIRSTBITMAP 7
[416] Fix | Delete
#define PCRE2_INFO_HASCRORLF 8
[417] Fix | Delete
#define PCRE2_INFO_JCHANGED 9
[418] Fix | Delete
#define PCRE2_INFO_JITSIZE 10
[419] Fix | Delete
#define PCRE2_INFO_LASTCODEUNIT 11
[420] Fix | Delete
#define PCRE2_INFO_LASTCODETYPE 12
[421] Fix | Delete
#define PCRE2_INFO_MATCHEMPTY 13
[422] Fix | Delete
#define PCRE2_INFO_MATCHLIMIT 14
[423] Fix | Delete
#define PCRE2_INFO_MAXLOOKBEHIND 15
[424] Fix | Delete
#define PCRE2_INFO_MINLENGTH 16
[425] Fix | Delete
#define PCRE2_INFO_NAMECOUNT 17
[426] Fix | Delete
#define PCRE2_INFO_NAMEENTRYSIZE 18
[427] Fix | Delete
#define PCRE2_INFO_NAMETABLE 19
[428] Fix | Delete
#define PCRE2_INFO_NEWLINE 20
[429] Fix | Delete
#define PCRE2_INFO_DEPTHLIMIT 21
[430] Fix | Delete
#define PCRE2_INFO_RECURSIONLIMIT 21 /* Obsolete synonym */
[431] Fix | Delete
#define PCRE2_INFO_SIZE 22
[432] Fix | Delete
#define PCRE2_INFO_HASBACKSLASHC 23
[433] Fix | Delete
#define PCRE2_INFO_FRAMESIZE 24
[434] Fix | Delete
#define PCRE2_INFO_HEAPLIMIT 25
[435] Fix | Delete
#define PCRE2_INFO_EXTRAOPTIONS 26
[436] Fix | Delete
[437] Fix | Delete
/* Request types for pcre2_config(). */
[438] Fix | Delete
[439] Fix | Delete
#define PCRE2_CONFIG_BSR 0
[440] Fix | Delete
#define PCRE2_CONFIG_JIT 1
[441] Fix | Delete
#define PCRE2_CONFIG_JITTARGET 2
[442] Fix | Delete
#define PCRE2_CONFIG_LINKSIZE 3
[443] Fix | Delete
#define PCRE2_CONFIG_MATCHLIMIT 4
[444] Fix | Delete
#define PCRE2_CONFIG_NEWLINE 5
[445] Fix | Delete
#define PCRE2_CONFIG_PARENSLIMIT 6
[446] Fix | Delete
#define PCRE2_CONFIG_DEPTHLIMIT 7
[447] Fix | Delete
#define PCRE2_CONFIG_RECURSIONLIMIT 7 /* Obsolete synonym */
[448] Fix | Delete
#define PCRE2_CONFIG_STACKRECURSE 8 /* Obsolete */
[449] Fix | Delete
#define PCRE2_CONFIG_UNICODE 9
[450] Fix | Delete
#define PCRE2_CONFIG_UNICODE_VERSION 10
[451] Fix | Delete
#define PCRE2_CONFIG_VERSION 11
[452] Fix | Delete
#define PCRE2_CONFIG_HEAPLIMIT 12
[453] Fix | Delete
#define PCRE2_CONFIG_NEVER_BACKSLASH_C 13
[454] Fix | Delete
#define PCRE2_CONFIG_COMPILED_WIDTHS 14
[455] Fix | Delete
[456] Fix | Delete
[457] Fix | Delete
/* Types for code units in patterns and subject strings. */
[458] Fix | Delete
[459] Fix | Delete
typedef uint8_t PCRE2_UCHAR8;
[460] Fix | Delete
typedef uint16_t PCRE2_UCHAR16;
[461] Fix | Delete
typedef uint32_t PCRE2_UCHAR32;
[462] Fix | Delete
[463] Fix | Delete
typedef const PCRE2_UCHAR8 *PCRE2_SPTR8;
[464] Fix | Delete
typedef const PCRE2_UCHAR16 *PCRE2_SPTR16;
[465] Fix | Delete
typedef const PCRE2_UCHAR32 *PCRE2_SPTR32;
[466] Fix | Delete
[467] Fix | Delete
/* The PCRE2_SIZE type is used for all string lengths and offsets in PCRE2,
[468] Fix | Delete
including pattern offsets for errors and subject offsets after a match. We
[469] Fix | Delete
define special values to indicate zero-terminated strings and unset offsets in
[470] Fix | Delete
the offset vector (ovector). */
[471] Fix | Delete
[472] Fix | Delete
#define PCRE2_SIZE size_t
[473] Fix | Delete
#define PCRE2_SIZE_MAX SIZE_MAX
[474] Fix | Delete
#define PCRE2_ZERO_TERMINATED (~(PCRE2_SIZE)0)
[475] Fix | Delete
#define PCRE2_UNSET (~(PCRE2_SIZE)0)
[476] Fix | Delete
[477] Fix | Delete
/* Generic types for opaque structures and JIT callback functions. These
[478] Fix | Delete
declarations are defined in a macro that is expanded for each width later. */
[479] Fix | Delete
[480] Fix | Delete
#define PCRE2_TYPES_LIST \
[481] Fix | Delete
struct pcre2_real_general_context; \
[482] Fix | Delete
typedef struct pcre2_real_general_context pcre2_general_context; \
[483] Fix | Delete
\
[484] Fix | Delete
struct pcre2_real_compile_context; \
[485] Fix | Delete
typedef struct pcre2_real_compile_context pcre2_compile_context; \
[486] Fix | Delete
\
[487] Fix | Delete
struct pcre2_real_match_context; \
[488] Fix | Delete
typedef struct pcre2_real_match_context pcre2_match_context; \
[489] Fix | Delete
\
[490] Fix | Delete
struct pcre2_real_convert_context; \
[491] Fix | Delete
typedef struct pcre2_real_convert_context pcre2_convert_context; \
[492] Fix | Delete
\
[493] Fix | Delete
struct pcre2_real_code; \
[494] Fix | Delete
typedef struct pcre2_real_code pcre2_code; \
[495] Fix | Delete
\
[496] Fix | Delete
struct pcre2_real_match_data; \
[497] Fix | Delete
typedef struct pcre2_real_match_data pcre2_match_data; \
[498] Fix | Delete
\
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function