Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: pcre.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, to be #included by
[4] Fix | Delete
applications that call the PCRE functions.
[5] Fix | Delete
[6] Fix | Delete
Copyright (c) 1997-2014 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 _PCRE_H
[38] Fix | Delete
#define _PCRE_H
[39] Fix | Delete
[40] Fix | Delete
/* The current PCRE version information. */
[41] Fix | Delete
[42] Fix | Delete
#define PCRE_MAJOR 8
[43] Fix | Delete
#define PCRE_MINOR 42
[44] Fix | Delete
#define PCRE_PRERELEASE
[45] Fix | Delete
#define PCRE_DATE 2018-03-20
[46] Fix | Delete
[47] Fix | Delete
/* When an application links to a PCRE DLL in Windows, the symbols that are
[48] Fix | Delete
imported have to be identified as such. When building PCRE, the appropriate
[49] Fix | Delete
export setting is defined in pcre_internal.h, which includes this file. So we
[50] Fix | Delete
don't change existing definitions of PCRE_EXP_DECL and PCRECPP_EXP_DECL. */
[51] Fix | Delete
[52] Fix | Delete
#if defined(_WIN32) && !defined(PCRE_STATIC)
[53] Fix | Delete
# ifndef PCRE_EXP_DECL
[54] Fix | Delete
# define PCRE_EXP_DECL extern __declspec(dllimport)
[55] Fix | Delete
# endif
[56] Fix | Delete
# ifdef __cplusplus
[57] Fix | Delete
# ifndef PCRECPP_EXP_DECL
[58] Fix | Delete
# define PCRECPP_EXP_DECL extern __declspec(dllimport)
[59] Fix | Delete
# endif
[60] Fix | Delete
# ifndef PCRECPP_EXP_DEFN
[61] Fix | Delete
# define PCRECPP_EXP_DEFN __declspec(dllimport)
[62] Fix | Delete
# endif
[63] Fix | Delete
# endif
[64] Fix | Delete
#endif
[65] Fix | Delete
[66] Fix | Delete
/* By default, we use the standard "extern" declarations. */
[67] Fix | Delete
[68] Fix | Delete
#ifndef PCRE_EXP_DECL
[69] Fix | Delete
# ifdef __cplusplus
[70] Fix | Delete
# define PCRE_EXP_DECL extern "C"
[71] Fix | Delete
# else
[72] Fix | Delete
# define PCRE_EXP_DECL extern
[73] Fix | Delete
# endif
[74] Fix | Delete
#endif
[75] Fix | Delete
[76] Fix | Delete
#ifdef __cplusplus
[77] Fix | Delete
# ifndef PCRECPP_EXP_DECL
[78] Fix | Delete
# define PCRECPP_EXP_DECL extern
[79] Fix | Delete
# endif
[80] Fix | Delete
# ifndef PCRECPP_EXP_DEFN
[81] Fix | Delete
# define PCRECPP_EXP_DEFN
[82] Fix | Delete
# endif
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
/* Have to include stdlib.h in order to ensure that size_t is defined;
[86] Fix | Delete
it is needed here for malloc. */
[87] Fix | Delete
[88] Fix | Delete
#include <stdlib.h>
[89] Fix | Delete
[90] Fix | Delete
/* Allow for C++ users */
[91] Fix | Delete
[92] Fix | Delete
#ifdef __cplusplus
[93] Fix | Delete
extern "C" {
[94] Fix | Delete
#endif
[95] Fix | Delete
[96] Fix | Delete
/* Public options. Some are compile-time only, some are run-time only, and some
[97] Fix | Delete
are both. Most of the compile-time options are saved with the compiled regex so
[98] Fix | Delete
that they can be inspected during studying (and therefore JIT compiling). Note
[99] Fix | Delete
that pcre_study() has its own set of options. Originally, all the options
[100] Fix | Delete
defined here used distinct bits. However, almost all the bits in a 32-bit word
[101] Fix | Delete
are now used, so in order to conserve them, option bits that were previously
[102] Fix | Delete
only recognized at matching time (i.e. by pcre_exec() or pcre_dfa_exec()) may
[103] Fix | Delete
also be used for compile-time options that affect only compiling and are not
[104] Fix | Delete
relevant for studying or JIT compiling.
[105] Fix | Delete
[106] Fix | Delete
Some options for pcre_compile() change its behaviour but do not affect the
[107] Fix | Delete
behaviour of the execution functions. Other options are passed through to the
[108] Fix | Delete
execution functions and affect their behaviour, with or without affecting the
[109] Fix | Delete
behaviour of pcre_compile().
[110] Fix | Delete
[111] Fix | Delete
Options that can be passed to pcre_compile() are tagged Cx below, with these
[112] Fix | Delete
variants:
[113] Fix | Delete
[114] Fix | Delete
C1 Affects compile only
[115] Fix | Delete
C2 Does not affect compile; affects exec, dfa_exec
[116] Fix | Delete
C3 Affects compile, exec, dfa_exec
[117] Fix | Delete
C4 Affects compile, exec, dfa_exec, study
[118] Fix | Delete
C5 Affects compile, exec, study
[119] Fix | Delete
[120] Fix | Delete
Options that can be set for pcre_exec() and/or pcre_dfa_exec() are flagged with
[121] Fix | Delete
E and D, respectively. They take precedence over C3, C4, and C5 settings passed
[122] Fix | Delete
from pcre_compile(). Those that are compatible with JIT execution are flagged
[123] Fix | Delete
with J. */
[124] Fix | Delete
[125] Fix | Delete
#define PCRE_CASELESS 0x00000001 /* C1 */
[126] Fix | Delete
#define PCRE_MULTILINE 0x00000002 /* C1 */
[127] Fix | Delete
#define PCRE_DOTALL 0x00000004 /* C1 */
[128] Fix | Delete
#define PCRE_EXTENDED 0x00000008 /* C1 */
[129] Fix | Delete
#define PCRE_ANCHORED 0x00000010 /* C4 E D */
[130] Fix | Delete
#define PCRE_DOLLAR_ENDONLY 0x00000020 /* C2 */
[131] Fix | Delete
#define PCRE_EXTRA 0x00000040 /* C1 */
[132] Fix | Delete
#define PCRE_NOTBOL 0x00000080 /* E D J */
[133] Fix | Delete
#define PCRE_NOTEOL 0x00000100 /* E D J */
[134] Fix | Delete
#define PCRE_UNGREEDY 0x00000200 /* C1 */
[135] Fix | Delete
#define PCRE_NOTEMPTY 0x00000400 /* E D J */
[136] Fix | Delete
#define PCRE_UTF8 0x00000800 /* C4 ) */
[137] Fix | Delete
#define PCRE_UTF16 0x00000800 /* C4 ) Synonyms */
[138] Fix | Delete
#define PCRE_UTF32 0x00000800 /* C4 ) */
[139] Fix | Delete
#define PCRE_NO_AUTO_CAPTURE 0x00001000 /* C1 */
[140] Fix | Delete
#define PCRE_NO_UTF8_CHECK 0x00002000 /* C1 E D J ) */
[141] Fix | Delete
#define PCRE_NO_UTF16_CHECK 0x00002000 /* C1 E D J ) Synonyms */
[142] Fix | Delete
#define PCRE_NO_UTF32_CHECK 0x00002000 /* C1 E D J ) */
[143] Fix | Delete
#define PCRE_AUTO_CALLOUT 0x00004000 /* C1 */
[144] Fix | Delete
#define PCRE_PARTIAL_SOFT 0x00008000 /* E D J ) Synonyms */
[145] Fix | Delete
#define PCRE_PARTIAL 0x00008000 /* E D J ) */
[146] Fix | Delete
[147] Fix | Delete
/* This pair use the same bit. */
[148] Fix | Delete
#define PCRE_NEVER_UTF 0x00010000 /* C1 ) Overlaid */
[149] Fix | Delete
#define PCRE_DFA_SHORTEST 0x00010000 /* D ) Overlaid */
[150] Fix | Delete
[151] Fix | Delete
/* This pair use the same bit. */
[152] Fix | Delete
#define PCRE_NO_AUTO_POSSESS 0x00020000 /* C1 ) Overlaid */
[153] Fix | Delete
#define PCRE_DFA_RESTART 0x00020000 /* D ) Overlaid */
[154] Fix | Delete
[155] Fix | Delete
#define PCRE_FIRSTLINE 0x00040000 /* C3 */
[156] Fix | Delete
#define PCRE_DUPNAMES 0x00080000 /* C1 */
[157] Fix | Delete
#define PCRE_NEWLINE_CR 0x00100000 /* C3 E D */
[158] Fix | Delete
#define PCRE_NEWLINE_LF 0x00200000 /* C3 E D */
[159] Fix | Delete
#define PCRE_NEWLINE_CRLF 0x00300000 /* C3 E D */
[160] Fix | Delete
#define PCRE_NEWLINE_ANY 0x00400000 /* C3 E D */
[161] Fix | Delete
#define PCRE_NEWLINE_ANYCRLF 0x00500000 /* C3 E D */
[162] Fix | Delete
#define PCRE_BSR_ANYCRLF 0x00800000 /* C3 E D */
[163] Fix | Delete
#define PCRE_BSR_UNICODE 0x01000000 /* C3 E D */
[164] Fix | Delete
#define PCRE_JAVASCRIPT_COMPAT 0x02000000 /* C5 */
[165] Fix | Delete
#define PCRE_NO_START_OPTIMIZE 0x04000000 /* C2 E D ) Synonyms */
[166] Fix | Delete
#define PCRE_NO_START_OPTIMISE 0x04000000 /* C2 E D ) */
[167] Fix | Delete
#define PCRE_PARTIAL_HARD 0x08000000 /* E D J */
[168] Fix | Delete
#define PCRE_NOTEMPTY_ATSTART 0x10000000 /* E D J */
[169] Fix | Delete
#define PCRE_UCP 0x20000000 /* C3 */
[170] Fix | Delete
[171] Fix | Delete
/* Exec-time and get/set-time error codes */
[172] Fix | Delete
[173] Fix | Delete
#define PCRE_ERROR_NOMATCH (-1)
[174] Fix | Delete
#define PCRE_ERROR_NULL (-2)
[175] Fix | Delete
#define PCRE_ERROR_BADOPTION (-3)
[176] Fix | Delete
#define PCRE_ERROR_BADMAGIC (-4)
[177] Fix | Delete
#define PCRE_ERROR_UNKNOWN_OPCODE (-5)
[178] Fix | Delete
#define PCRE_ERROR_UNKNOWN_NODE (-5) /* For backward compatibility */
[179] Fix | Delete
#define PCRE_ERROR_NOMEMORY (-6)
[180] Fix | Delete
#define PCRE_ERROR_NOSUBSTRING (-7)
[181] Fix | Delete
#define PCRE_ERROR_MATCHLIMIT (-8)
[182] Fix | Delete
#define PCRE_ERROR_CALLOUT (-9) /* Never used by PCRE itself */
[183] Fix | Delete
#define PCRE_ERROR_BADUTF8 (-10) /* Same for 8/16/32 */
[184] Fix | Delete
#define PCRE_ERROR_BADUTF16 (-10) /* Same for 8/16/32 */
[185] Fix | Delete
#define PCRE_ERROR_BADUTF32 (-10) /* Same for 8/16/32 */
[186] Fix | Delete
#define PCRE_ERROR_BADUTF8_OFFSET (-11) /* Same for 8/16 */
[187] Fix | Delete
#define PCRE_ERROR_BADUTF16_OFFSET (-11) /* Same for 8/16 */
[188] Fix | Delete
#define PCRE_ERROR_PARTIAL (-12)
[189] Fix | Delete
#define PCRE_ERROR_BADPARTIAL (-13)
[190] Fix | Delete
#define PCRE_ERROR_INTERNAL (-14)
[191] Fix | Delete
#define PCRE_ERROR_BADCOUNT (-15)
[192] Fix | Delete
#define PCRE_ERROR_DFA_UITEM (-16)
[193] Fix | Delete
#define PCRE_ERROR_DFA_UCOND (-17)
[194] Fix | Delete
#define PCRE_ERROR_DFA_UMLIMIT (-18)
[195] Fix | Delete
#define PCRE_ERROR_DFA_WSSIZE (-19)
[196] Fix | Delete
#define PCRE_ERROR_DFA_RECURSE (-20)
[197] Fix | Delete
#define PCRE_ERROR_RECURSIONLIMIT (-21)
[198] Fix | Delete
#define PCRE_ERROR_NULLWSLIMIT (-22) /* No longer actually used */
[199] Fix | Delete
#define PCRE_ERROR_BADNEWLINE (-23)
[200] Fix | Delete
#define PCRE_ERROR_BADOFFSET (-24)
[201] Fix | Delete
#define PCRE_ERROR_SHORTUTF8 (-25)
[202] Fix | Delete
#define PCRE_ERROR_SHORTUTF16 (-25) /* Same for 8/16 */
[203] Fix | Delete
#define PCRE_ERROR_RECURSELOOP (-26)
[204] Fix | Delete
#define PCRE_ERROR_JIT_STACKLIMIT (-27)
[205] Fix | Delete
#define PCRE_ERROR_BADMODE (-28)
[206] Fix | Delete
#define PCRE_ERROR_BADENDIANNESS (-29)
[207] Fix | Delete
#define PCRE_ERROR_DFA_BADRESTART (-30)
[208] Fix | Delete
#define PCRE_ERROR_JIT_BADOPTION (-31)
[209] Fix | Delete
#define PCRE_ERROR_BADLENGTH (-32)
[210] Fix | Delete
#define PCRE_ERROR_UNSET (-33)
[211] Fix | Delete
[212] Fix | Delete
/* Specific error codes for UTF-8 validity checks */
[213] Fix | Delete
[214] Fix | Delete
#define PCRE_UTF8_ERR0 0
[215] Fix | Delete
#define PCRE_UTF8_ERR1 1
[216] Fix | Delete
#define PCRE_UTF8_ERR2 2
[217] Fix | Delete
#define PCRE_UTF8_ERR3 3
[218] Fix | Delete
#define PCRE_UTF8_ERR4 4
[219] Fix | Delete
#define PCRE_UTF8_ERR5 5
[220] Fix | Delete
#define PCRE_UTF8_ERR6 6
[221] Fix | Delete
#define PCRE_UTF8_ERR7 7
[222] Fix | Delete
#define PCRE_UTF8_ERR8 8
[223] Fix | Delete
#define PCRE_UTF8_ERR9 9
[224] Fix | Delete
#define PCRE_UTF8_ERR10 10
[225] Fix | Delete
#define PCRE_UTF8_ERR11 11
[226] Fix | Delete
#define PCRE_UTF8_ERR12 12
[227] Fix | Delete
#define PCRE_UTF8_ERR13 13
[228] Fix | Delete
#define PCRE_UTF8_ERR14 14
[229] Fix | Delete
#define PCRE_UTF8_ERR15 15
[230] Fix | Delete
#define PCRE_UTF8_ERR16 16
[231] Fix | Delete
#define PCRE_UTF8_ERR17 17
[232] Fix | Delete
#define PCRE_UTF8_ERR18 18
[233] Fix | Delete
#define PCRE_UTF8_ERR19 19
[234] Fix | Delete
#define PCRE_UTF8_ERR20 20
[235] Fix | Delete
#define PCRE_UTF8_ERR21 21
[236] Fix | Delete
#define PCRE_UTF8_ERR22 22 /* Unused (was non-character) */
[237] Fix | Delete
[238] Fix | Delete
/* Specific error codes for UTF-16 validity checks */
[239] Fix | Delete
[240] Fix | Delete
#define PCRE_UTF16_ERR0 0
[241] Fix | Delete
#define PCRE_UTF16_ERR1 1
[242] Fix | Delete
#define PCRE_UTF16_ERR2 2
[243] Fix | Delete
#define PCRE_UTF16_ERR3 3
[244] Fix | Delete
#define PCRE_UTF16_ERR4 4 /* Unused (was non-character) */
[245] Fix | Delete
[246] Fix | Delete
/* Specific error codes for UTF-32 validity checks */
[247] Fix | Delete
[248] Fix | Delete
#define PCRE_UTF32_ERR0 0
[249] Fix | Delete
#define PCRE_UTF32_ERR1 1
[250] Fix | Delete
#define PCRE_UTF32_ERR2 2 /* Unused (was non-character) */
[251] Fix | Delete
#define PCRE_UTF32_ERR3 3
[252] Fix | Delete
[253] Fix | Delete
/* Request types for pcre_fullinfo() */
[254] Fix | Delete
[255] Fix | Delete
#define PCRE_INFO_OPTIONS 0
[256] Fix | Delete
#define PCRE_INFO_SIZE 1
[257] Fix | Delete
#define PCRE_INFO_CAPTURECOUNT 2
[258] Fix | Delete
#define PCRE_INFO_BACKREFMAX 3
[259] Fix | Delete
#define PCRE_INFO_FIRSTBYTE 4
[260] Fix | Delete
#define PCRE_INFO_FIRSTCHAR 4 /* For backwards compatibility */
[261] Fix | Delete
#define PCRE_INFO_FIRSTTABLE 5
[262] Fix | Delete
#define PCRE_INFO_LASTLITERAL 6
[263] Fix | Delete
#define PCRE_INFO_NAMEENTRYSIZE 7
[264] Fix | Delete
#define PCRE_INFO_NAMECOUNT 8
[265] Fix | Delete
#define PCRE_INFO_NAMETABLE 9
[266] Fix | Delete
#define PCRE_INFO_STUDYSIZE 10
[267] Fix | Delete
#define PCRE_INFO_DEFAULT_TABLES 11
[268] Fix | Delete
#define PCRE_INFO_OKPARTIAL 12
[269] Fix | Delete
#define PCRE_INFO_JCHANGED 13
[270] Fix | Delete
#define PCRE_INFO_HASCRORLF 14
[271] Fix | Delete
#define PCRE_INFO_MINLENGTH 15
[272] Fix | Delete
#define PCRE_INFO_JIT 16
[273] Fix | Delete
#define PCRE_INFO_JITSIZE 17
[274] Fix | Delete
#define PCRE_INFO_MAXLOOKBEHIND 18
[275] Fix | Delete
#define PCRE_INFO_FIRSTCHARACTER 19
[276] Fix | Delete
#define PCRE_INFO_FIRSTCHARACTERFLAGS 20
[277] Fix | Delete
#define PCRE_INFO_REQUIREDCHAR 21
[278] Fix | Delete
#define PCRE_INFO_REQUIREDCHARFLAGS 22
[279] Fix | Delete
#define PCRE_INFO_MATCHLIMIT 23
[280] Fix | Delete
#define PCRE_INFO_RECURSIONLIMIT 24
[281] Fix | Delete
#define PCRE_INFO_MATCH_EMPTY 25
[282] Fix | Delete
[283] Fix | Delete
/* Request types for pcre_config(). Do not re-arrange, in order to remain
[284] Fix | Delete
compatible. */
[285] Fix | Delete
[286] Fix | Delete
#define PCRE_CONFIG_UTF8 0
[287] Fix | Delete
#define PCRE_CONFIG_NEWLINE 1
[288] Fix | Delete
#define PCRE_CONFIG_LINK_SIZE 2
[289] Fix | Delete
#define PCRE_CONFIG_POSIX_MALLOC_THRESHOLD 3
[290] Fix | Delete
#define PCRE_CONFIG_MATCH_LIMIT 4
[291] Fix | Delete
#define PCRE_CONFIG_STACKRECURSE 5
[292] Fix | Delete
#define PCRE_CONFIG_UNICODE_PROPERTIES 6
[293] Fix | Delete
#define PCRE_CONFIG_MATCH_LIMIT_RECURSION 7
[294] Fix | Delete
#define PCRE_CONFIG_BSR 8
[295] Fix | Delete
#define PCRE_CONFIG_JIT 9
[296] Fix | Delete
#define PCRE_CONFIG_UTF16 10
[297] Fix | Delete
#define PCRE_CONFIG_JITTARGET 11
[298] Fix | Delete
#define PCRE_CONFIG_UTF32 12
[299] Fix | Delete
#define PCRE_CONFIG_PARENS_LIMIT 13
[300] Fix | Delete
[301] Fix | Delete
/* Request types for pcre_study(). Do not re-arrange, in order to remain
[302] Fix | Delete
compatible. */
[303] Fix | Delete
[304] Fix | Delete
#define PCRE_STUDY_JIT_COMPILE 0x0001
[305] Fix | Delete
#define PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE 0x0002
[306] Fix | Delete
#define PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE 0x0004
[307] Fix | Delete
#define PCRE_STUDY_EXTRA_NEEDED 0x0008
[308] Fix | Delete
[309] Fix | Delete
/* Bit flags for the pcre[16|32]_extra structure. Do not re-arrange or redefine
[310] Fix | Delete
these bits, just add new ones on the end, in order to remain compatible. */
[311] Fix | Delete
[312] Fix | Delete
#define PCRE_EXTRA_STUDY_DATA 0x0001
[313] Fix | Delete
#define PCRE_EXTRA_MATCH_LIMIT 0x0002
[314] Fix | Delete
#define PCRE_EXTRA_CALLOUT_DATA 0x0004
[315] Fix | Delete
#define PCRE_EXTRA_TABLES 0x0008
[316] Fix | Delete
#define PCRE_EXTRA_MATCH_LIMIT_RECURSION 0x0010
[317] Fix | Delete
#define PCRE_EXTRA_MARK 0x0020
[318] Fix | Delete
#define PCRE_EXTRA_EXECUTABLE_JIT 0x0040
[319] Fix | Delete
[320] Fix | Delete
/* Types */
[321] Fix | Delete
[322] Fix | Delete
struct real_pcre8_or_16; /* declaration; the definition is private */
[323] Fix | Delete
typedef struct real_pcre8_or_16 pcre;
[324] Fix | Delete
[325] Fix | Delete
struct real_pcre8_or_16; /* declaration; the definition is private */
[326] Fix | Delete
typedef struct real_pcre8_or_16 pcre16;
[327] Fix | Delete
[328] Fix | Delete
struct real_pcre32; /* declaration; the definition is private */
[329] Fix | Delete
typedef struct real_pcre32 pcre32;
[330] Fix | Delete
[331] Fix | Delete
struct real_pcre_jit_stack; /* declaration; the definition is private */
[332] Fix | Delete
typedef struct real_pcre_jit_stack pcre_jit_stack;
[333] Fix | Delete
[334] Fix | Delete
struct real_pcre16_jit_stack; /* declaration; the definition is private */
[335] Fix | Delete
typedef struct real_pcre16_jit_stack pcre16_jit_stack;
[336] Fix | Delete
[337] Fix | Delete
struct real_pcre32_jit_stack; /* declaration; the definition is private */
[338] Fix | Delete
typedef struct real_pcre32_jit_stack pcre32_jit_stack;
[339] Fix | Delete
[340] Fix | Delete
/* If PCRE is compiled with 16 bit character support, PCRE_UCHAR16 must contain
[341] Fix | Delete
a 16 bit wide signed data type. Otherwise it can be a dummy data type since
[342] Fix | Delete
pcre16 functions are not implemented. There is a check for this in pcre_internal.h. */
[343] Fix | Delete
#ifndef PCRE_UCHAR16
[344] Fix | Delete
#define PCRE_UCHAR16 unsigned short
[345] Fix | Delete
#endif
[346] Fix | Delete
[347] Fix | Delete
#ifndef PCRE_SPTR16
[348] Fix | Delete
#define PCRE_SPTR16 const PCRE_UCHAR16 *
[349] Fix | Delete
#endif
[350] Fix | Delete
[351] Fix | Delete
/* If PCRE is compiled with 32 bit character support, PCRE_UCHAR32 must contain
[352] Fix | Delete
a 32 bit wide signed data type. Otherwise it can be a dummy data type since
[353] Fix | Delete
pcre32 functions are not implemented. There is a check for this in pcre_internal.h. */
[354] Fix | Delete
#ifndef PCRE_UCHAR32
[355] Fix | Delete
#define PCRE_UCHAR32 unsigned int
[356] Fix | Delete
#endif
[357] Fix | Delete
[358] Fix | Delete
#ifndef PCRE_SPTR32
[359] Fix | Delete
#define PCRE_SPTR32 const PCRE_UCHAR32 *
[360] Fix | Delete
#endif
[361] Fix | Delete
[362] Fix | Delete
/* When PCRE is compiled as a C++ library, the subject pointer type can be
[363] Fix | Delete
replaced with a custom type. For conventional use, the public interface is a
[364] Fix | Delete
const char *. */
[365] Fix | Delete
[366] Fix | Delete
#ifndef PCRE_SPTR
[367] Fix | Delete
#define PCRE_SPTR const char *
[368] Fix | Delete
#endif
[369] Fix | Delete
[370] Fix | Delete
/* The structure for passing additional data to pcre_exec(). This is defined in
[371] Fix | Delete
such as way as to be extensible. Always add new fields at the end, in order to
[372] Fix | Delete
remain compatible. */
[373] Fix | Delete
[374] Fix | Delete
typedef struct pcre_extra {
[375] Fix | Delete
unsigned long int flags; /* Bits for which fields are set */
[376] Fix | Delete
void *study_data; /* Opaque data from pcre_study() */
[377] Fix | Delete
unsigned long int match_limit; /* Maximum number of calls to match() */
[378] Fix | Delete
void *callout_data; /* Data passed back in callouts */
[379] Fix | Delete
const unsigned char *tables; /* Pointer to character tables */
[380] Fix | Delete
unsigned long int match_limit_recursion; /* Max recursive calls to match() */
[381] Fix | Delete
unsigned char **mark; /* For passing back a mark pointer */
[382] Fix | Delete
void *executable_jit; /* Contains a pointer to a compiled jit code */
[383] Fix | Delete
} pcre_extra;
[384] Fix | Delete
[385] Fix | Delete
/* Same structure as above, but with 16 bit char pointers. */
[386] Fix | Delete
[387] Fix | Delete
typedef struct pcre16_extra {
[388] Fix | Delete
unsigned long int flags; /* Bits for which fields are set */
[389] Fix | Delete
void *study_data; /* Opaque data from pcre_study() */
[390] Fix | Delete
unsigned long int match_limit; /* Maximum number of calls to match() */
[391] Fix | Delete
void *callout_data; /* Data passed back in callouts */
[392] Fix | Delete
const unsigned char *tables; /* Pointer to character tables */
[393] Fix | Delete
unsigned long int match_limit_recursion; /* Max recursive calls to match() */
[394] Fix | Delete
PCRE_UCHAR16 **mark; /* For passing back a mark pointer */
[395] Fix | Delete
void *executable_jit; /* Contains a pointer to a compiled jit code */
[396] Fix | Delete
} pcre16_extra;
[397] Fix | Delete
[398] Fix | Delete
/* Same structure as above, but with 32 bit char pointers. */
[399] Fix | Delete
[400] Fix | Delete
typedef struct pcre32_extra {
[401] Fix | Delete
unsigned long int flags; /* Bits for which fields are set */
[402] Fix | Delete
void *study_data; /* Opaque data from pcre_study() */
[403] Fix | Delete
unsigned long int match_limit; /* Maximum number of calls to match() */
[404] Fix | Delete
void *callout_data; /* Data passed back in callouts */
[405] Fix | Delete
const unsigned char *tables; /* Pointer to character tables */
[406] Fix | Delete
unsigned long int match_limit_recursion; /* Max recursive calls to match() */
[407] Fix | Delete
PCRE_UCHAR32 **mark; /* For passing back a mark pointer */
[408] Fix | Delete
void *executable_jit; /* Contains a pointer to a compiled jit code */
[409] Fix | Delete
} pcre32_extra;
[410] Fix | Delete
[411] Fix | Delete
/* The structure for passing out data via the pcre_callout_function. We use a
[412] Fix | Delete
structure so that new fields can be added on the end in future versions,
[413] Fix | Delete
without changing the API of the function, thereby allowing old clients to work
[414] Fix | Delete
without modification. */
[415] Fix | Delete
[416] Fix | Delete
typedef struct pcre_callout_block {
[417] Fix | Delete
int version; /* Identifies version of block */
[418] Fix | Delete
/* ------------------------ Version 0 ------------------------------- */
[419] Fix | Delete
int callout_number; /* Number compiled into pattern */
[420] Fix | Delete
int *offset_vector; /* The offset vector */
[421] Fix | Delete
PCRE_SPTR subject; /* The subject being matched */
[422] Fix | Delete
int subject_length; /* The length of the subject */
[423] Fix | Delete
int start_match; /* Offset to start of this match attempt */
[424] Fix | Delete
int current_position; /* Where we currently are in the subject */
[425] Fix | Delete
int capture_top; /* Max current capture */
[426] Fix | Delete
int capture_last; /* Most recently closed capture */
[427] Fix | Delete
void *callout_data; /* Data passed in with the call */
[428] Fix | Delete
/* ------------------- Added for Version 1 -------------------------- */
[429] Fix | Delete
int pattern_position; /* Offset to next item in the pattern */
[430] Fix | Delete
int next_item_length; /* Length of next item in the pattern */
[431] Fix | Delete
/* ------------------- Added for Version 2 -------------------------- */
[432] Fix | Delete
const unsigned char *mark; /* Pointer to current mark or NULL */
[433] Fix | Delete
/* ------------------------------------------------------------------ */
[434] Fix | Delete
} pcre_callout_block;
[435] Fix | Delete
[436] Fix | Delete
/* Same structure as above, but with 16 bit char pointers. */
[437] Fix | Delete
[438] Fix | Delete
typedef struct pcre16_callout_block {
[439] Fix | Delete
int version; /* Identifies version of block */
[440] Fix | Delete
/* ------------------------ Version 0 ------------------------------- */
[441] Fix | Delete
int callout_number; /* Number compiled into pattern */
[442] Fix | Delete
int *offset_vector; /* The offset vector */
[443] Fix | Delete
PCRE_SPTR16 subject; /* The subject being matched */
[444] Fix | Delete
int subject_length; /* The length of the subject */
[445] Fix | Delete
int start_match; /* Offset to start of this match attempt */
[446] Fix | Delete
int current_position; /* Where we currently are in the subject */
[447] Fix | Delete
int capture_top; /* Max current capture */
[448] Fix | Delete
int capture_last; /* Most recently closed capture */
[449] Fix | Delete
void *callout_data; /* Data passed in with the call */
[450] Fix | Delete
/* ------------------- Added for Version 1 -------------------------- */
[451] Fix | Delete
int pattern_position; /* Offset to next item in the pattern */
[452] Fix | Delete
int next_item_length; /* Length of next item in the pattern */
[453] Fix | Delete
/* ------------------- Added for Version 2 -------------------------- */
[454] Fix | Delete
const PCRE_UCHAR16 *mark; /* Pointer to current mark or NULL */
[455] Fix | Delete
/* ------------------------------------------------------------------ */
[456] Fix | Delete
} pcre16_callout_block;
[457] Fix | Delete
[458] Fix | Delete
/* Same structure as above, but with 32 bit char pointers. */
[459] Fix | Delete
[460] Fix | Delete
typedef struct pcre32_callout_block {
[461] Fix | Delete
int version; /* Identifies version of block */
[462] Fix | Delete
/* ------------------------ Version 0 ------------------------------- */
[463] Fix | Delete
int callout_number; /* Number compiled into pattern */
[464] Fix | Delete
int *offset_vector; /* The offset vector */
[465] Fix | Delete
PCRE_SPTR32 subject; /* The subject being matched */
[466] Fix | Delete
int subject_length; /* The length of the subject */
[467] Fix | Delete
int start_match; /* Offset to start of this match attempt */
[468] Fix | Delete
int current_position; /* Where we currently are in the subject */
[469] Fix | Delete
int capture_top; /* Max current capture */
[470] Fix | Delete
int capture_last; /* Most recently closed capture */
[471] Fix | Delete
void *callout_data; /* Data passed in with the call */
[472] Fix | Delete
/* ------------------- Added for Version 1 -------------------------- */
[473] Fix | Delete
int pattern_position; /* Offset to next item in the pattern */
[474] Fix | Delete
int next_item_length; /* Length of next item in the pattern */
[475] Fix | Delete
/* ------------------- Added for Version 2 -------------------------- */
[476] Fix | Delete
const PCRE_UCHAR32 *mark; /* Pointer to current mark or NULL */
[477] Fix | Delete
/* ------------------------------------------------------------------ */
[478] Fix | Delete
} pcre32_callout_block;
[479] Fix | Delete
[480] Fix | Delete
/* Indirection for store get and free functions. These can be set to
[481] Fix | Delete
alternative malloc/free functions if required. Special ones are used in the
[482] Fix | Delete
non-recursive case for "frames". There is also an optional callout function
[483] Fix | Delete
that is triggered by the (?) regex item. For Virtual Pascal, these definitions
[484] Fix | Delete
have to take another form. */
[485] Fix | Delete
[486] Fix | Delete
#ifndef VPCOMPAT
[487] Fix | Delete
PCRE_EXP_DECL void *(*pcre_malloc)(size_t);
[488] Fix | Delete
PCRE_EXP_DECL void (*pcre_free)(void *);
[489] Fix | Delete
PCRE_EXP_DECL void *(*pcre_stack_malloc)(size_t);
[490] Fix | Delete
PCRE_EXP_DECL void (*pcre_stack_free)(void *);
[491] Fix | Delete
PCRE_EXP_DECL int (*pcre_callout)(pcre_callout_block *);
[492] Fix | Delete
PCRE_EXP_DECL int (*pcre_stack_guard)(void);
[493] Fix | Delete
[494] Fix | Delete
PCRE_EXP_DECL void *(*pcre16_malloc)(size_t);
[495] Fix | Delete
PCRE_EXP_DECL void (*pcre16_free)(void *);
[496] Fix | Delete
PCRE_EXP_DECL void *(*pcre16_stack_malloc)(size_t);
[497] Fix | Delete
PCRE_EXP_DECL void (*pcre16_stack_free)(void *);
[498] Fix | Delete
PCRE_EXP_DECL int (*pcre16_callout)(pcre16_callout_block *);
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function