File indexing completed on 2025-07-12 08:55:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 #ifndef PCRE2_H_IDEMPOTENT_GUARD
0040 #define PCRE2_H_IDEMPOTENT_GUARD
0041
0042
0043
0044 #define PCRE2_MAJOR 10
0045 #define PCRE2_MINOR 44
0046 #define PCRE2_PRERELEASE
0047 #define PCRE2_DATE 2024-06-07
0048
0049
0050
0051
0052
0053
0054 #if defined(_WIN32) && !defined(PCRE2_STATIC)
0055 # ifndef PCRE2_EXP_DECL
0056 # define PCRE2_EXP_DECL extern __declspec(dllimport)
0057 # endif
0058 #endif
0059
0060
0061
0062 #ifndef PCRE2_EXP_DECL
0063 # ifdef __cplusplus
0064 # define PCRE2_EXP_DECL extern "C"
0065 # else
0066 # define PCRE2_EXP_DECL extern
0067 # endif
0068 #endif
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080 #ifndef PCRE2_CALL_CONVENTION
0081 #define PCRE2_CALL_CONVENTION
0082 #endif
0083
0084
0085
0086
0087
0088
0089
0090 #include <limits.h>
0091 #include <stdlib.h>
0092 #include <inttypes.h>
0093
0094
0095
0096 #ifdef __cplusplus
0097 extern "C" {
0098 #endif
0099
0100
0101
0102
0103
0104
0105 #define PCRE2_ANCHORED 0x80000000u
0106 #define PCRE2_NO_UTF_CHECK 0x40000000u
0107 #define PCRE2_ENDANCHORED 0x20000000u
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119 #define PCRE2_ALLOW_EMPTY_CLASS 0x00000001u
0120 #define PCRE2_ALT_BSUX 0x00000002u
0121 #define PCRE2_AUTO_CALLOUT 0x00000004u
0122 #define PCRE2_CASELESS 0x00000008u
0123 #define PCRE2_DOLLAR_ENDONLY 0x00000010u
0124 #define PCRE2_DOTALL 0x00000020u
0125 #define PCRE2_DUPNAMES 0x00000040u
0126 #define PCRE2_EXTENDED 0x00000080u
0127 #define PCRE2_FIRSTLINE 0x00000100u
0128 #define PCRE2_MATCH_UNSET_BACKREF 0x00000200u
0129 #define PCRE2_MULTILINE 0x00000400u
0130 #define PCRE2_NEVER_UCP 0x00000800u
0131 #define PCRE2_NEVER_UTF 0x00001000u
0132 #define PCRE2_NO_AUTO_CAPTURE 0x00002000u
0133 #define PCRE2_NO_AUTO_POSSESS 0x00004000u
0134 #define PCRE2_NO_DOTSTAR_ANCHOR 0x00008000u
0135 #define PCRE2_NO_START_OPTIMIZE 0x00010000u
0136 #define PCRE2_UCP 0x00020000u
0137 #define PCRE2_UNGREEDY 0x00040000u
0138 #define PCRE2_UTF 0x00080000u
0139 #define PCRE2_NEVER_BACKSLASH_C 0x00100000u
0140 #define PCRE2_ALT_CIRCUMFLEX 0x00200000u
0141 #define PCRE2_ALT_VERBNAMES 0x00400000u
0142 #define PCRE2_USE_OFFSET_LIMIT 0x00800000u
0143 #define PCRE2_EXTENDED_MORE 0x01000000u
0144 #define PCRE2_LITERAL 0x02000000u
0145 #define PCRE2_MATCH_INVALID_UTF 0x04000000u
0146
0147
0148
0149 #define PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES 0x00000001u
0150 #define PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL 0x00000002u
0151 #define PCRE2_EXTRA_MATCH_WORD 0x00000004u
0152 #define PCRE2_EXTRA_MATCH_LINE 0x00000008u
0153 #define PCRE2_EXTRA_ESCAPED_CR_IS_LF 0x00000010u
0154 #define PCRE2_EXTRA_ALT_BSUX 0x00000020u
0155 #define PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK 0x00000040u
0156 #define PCRE2_EXTRA_CASELESS_RESTRICT 0x00000080u
0157 #define PCRE2_EXTRA_ASCII_BSD 0x00000100u
0158 #define PCRE2_EXTRA_ASCII_BSS 0x00000200u
0159 #define PCRE2_EXTRA_ASCII_BSW 0x00000400u
0160 #define PCRE2_EXTRA_ASCII_POSIX 0x00000800u
0161 #define PCRE2_EXTRA_ASCII_DIGIT 0x00001000u
0162
0163
0164
0165 #define PCRE2_JIT_COMPLETE 0x00000001u
0166 #define PCRE2_JIT_PARTIAL_SOFT 0x00000002u
0167 #define PCRE2_JIT_PARTIAL_HARD 0x00000004u
0168 #define PCRE2_JIT_INVALID_UTF 0x00000100u
0169
0170
0171
0172
0173
0174
0175
0176 #define PCRE2_NOTBOL 0x00000001u
0177 #define PCRE2_NOTEOL 0x00000002u
0178 #define PCRE2_NOTEMPTY 0x00000004u
0179 #define PCRE2_NOTEMPTY_ATSTART 0x00000008u
0180 #define PCRE2_PARTIAL_SOFT 0x00000010u
0181 #define PCRE2_PARTIAL_HARD 0x00000020u
0182 #define PCRE2_DFA_RESTART 0x00000040u
0183 #define PCRE2_DFA_SHORTEST 0x00000080u
0184 #define PCRE2_SUBSTITUTE_GLOBAL 0x00000100u
0185 #define PCRE2_SUBSTITUTE_EXTENDED 0x00000200u
0186 #define PCRE2_SUBSTITUTE_UNSET_EMPTY 0x00000400u
0187 #define PCRE2_SUBSTITUTE_UNKNOWN_UNSET 0x00000800u
0188 #define PCRE2_SUBSTITUTE_OVERFLOW_LENGTH 0x00001000u
0189 #define PCRE2_NO_JIT 0x00002000u
0190 #define PCRE2_COPY_MATCHED_SUBJECT 0x00004000u
0191 #define PCRE2_SUBSTITUTE_LITERAL 0x00008000u
0192 #define PCRE2_SUBSTITUTE_MATCHED 0x00010000u
0193 #define PCRE2_SUBSTITUTE_REPLACEMENT_ONLY 0x00020000u
0194 #define PCRE2_DISABLE_RECURSELOOP_CHECK 0x00040000u
0195
0196
0197
0198 #define PCRE2_CONVERT_UTF 0x00000001u
0199 #define PCRE2_CONVERT_NO_UTF_CHECK 0x00000002u
0200 #define PCRE2_CONVERT_POSIX_BASIC 0x00000004u
0201 #define PCRE2_CONVERT_POSIX_EXTENDED 0x00000008u
0202 #define PCRE2_CONVERT_GLOB 0x00000010u
0203 #define PCRE2_CONVERT_GLOB_NO_WILD_SEPARATOR 0x00000030u
0204 #define PCRE2_CONVERT_GLOB_NO_STARSTAR 0x00000050u
0205
0206
0207
0208
0209
0210 #define PCRE2_NEWLINE_CR 1
0211 #define PCRE2_NEWLINE_LF 2
0212 #define PCRE2_NEWLINE_CRLF 3
0213 #define PCRE2_NEWLINE_ANY 4
0214 #define PCRE2_NEWLINE_ANYCRLF 5
0215 #define PCRE2_NEWLINE_NUL 6
0216
0217 #define PCRE2_BSR_UNICODE 1
0218 #define PCRE2_BSR_ANYCRLF 2
0219
0220
0221
0222
0223 #define PCRE2_ERROR_END_BACKSLASH 101
0224 #define PCRE2_ERROR_END_BACKSLASH_C 102
0225 #define PCRE2_ERROR_UNKNOWN_ESCAPE 103
0226 #define PCRE2_ERROR_QUANTIFIER_OUT_OF_ORDER 104
0227 #define PCRE2_ERROR_QUANTIFIER_TOO_BIG 105
0228 #define PCRE2_ERROR_MISSING_SQUARE_BRACKET 106
0229 #define PCRE2_ERROR_ESCAPE_INVALID_IN_CLASS 107
0230 #define PCRE2_ERROR_CLASS_RANGE_ORDER 108
0231 #define PCRE2_ERROR_QUANTIFIER_INVALID 109
0232 #define PCRE2_ERROR_INTERNAL_UNEXPECTED_REPEAT 110
0233 #define PCRE2_ERROR_INVALID_AFTER_PARENS_QUERY 111
0234 #define PCRE2_ERROR_POSIX_CLASS_NOT_IN_CLASS 112
0235 #define PCRE2_ERROR_POSIX_NO_SUPPORT_COLLATING 113
0236 #define PCRE2_ERROR_MISSING_CLOSING_PARENTHESIS 114
0237 #define PCRE2_ERROR_BAD_SUBPATTERN_REFERENCE 115
0238 #define PCRE2_ERROR_NULL_PATTERN 116
0239 #define PCRE2_ERROR_BAD_OPTIONS 117
0240 #define PCRE2_ERROR_MISSING_COMMENT_CLOSING 118
0241 #define PCRE2_ERROR_PARENTHESES_NEST_TOO_DEEP 119
0242 #define PCRE2_ERROR_PATTERN_TOO_LARGE 120
0243 #define PCRE2_ERROR_HEAP_FAILED 121
0244 #define PCRE2_ERROR_UNMATCHED_CLOSING_PARENTHESIS 122
0245 #define PCRE2_ERROR_INTERNAL_CODE_OVERFLOW 123
0246 #define PCRE2_ERROR_MISSING_CONDITION_CLOSING 124
0247 #define PCRE2_ERROR_LOOKBEHIND_NOT_FIXED_LENGTH 125
0248 #define PCRE2_ERROR_ZERO_RELATIVE_REFERENCE 126
0249 #define PCRE2_ERROR_TOO_MANY_CONDITION_BRANCHES 127
0250 #define PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED 128
0251 #define PCRE2_ERROR_BAD_RELATIVE_REFERENCE 129
0252 #define PCRE2_ERROR_UNKNOWN_POSIX_CLASS 130
0253 #define PCRE2_ERROR_INTERNAL_STUDY_ERROR 131
0254 #define PCRE2_ERROR_UNICODE_NOT_SUPPORTED 132
0255 #define PCRE2_ERROR_PARENTHESES_STACK_CHECK 133
0256 #define PCRE2_ERROR_CODE_POINT_TOO_BIG 134
0257 #define PCRE2_ERROR_LOOKBEHIND_TOO_COMPLICATED 135
0258 #define PCRE2_ERROR_LOOKBEHIND_INVALID_BACKSLASH_C 136
0259 #define PCRE2_ERROR_UNSUPPORTED_ESCAPE_SEQUENCE 137
0260 #define PCRE2_ERROR_CALLOUT_NUMBER_TOO_BIG 138
0261 #define PCRE2_ERROR_MISSING_CALLOUT_CLOSING 139
0262 #define PCRE2_ERROR_ESCAPE_INVALID_IN_VERB 140
0263 #define PCRE2_ERROR_UNRECOGNIZED_AFTER_QUERY_P 141
0264 #define PCRE2_ERROR_MISSING_NAME_TERMINATOR 142
0265 #define PCRE2_ERROR_DUPLICATE_SUBPATTERN_NAME 143
0266 #define PCRE2_ERROR_INVALID_SUBPATTERN_NAME 144
0267 #define PCRE2_ERROR_UNICODE_PROPERTIES_UNAVAILABLE 145
0268 #define PCRE2_ERROR_MALFORMED_UNICODE_PROPERTY 146
0269 #define PCRE2_ERROR_UNKNOWN_UNICODE_PROPERTY 147
0270 #define PCRE2_ERROR_SUBPATTERN_NAME_TOO_LONG 148
0271 #define PCRE2_ERROR_TOO_MANY_NAMED_SUBPATTERNS 149
0272 #define PCRE2_ERROR_CLASS_INVALID_RANGE 150
0273 #define PCRE2_ERROR_OCTAL_BYTE_TOO_BIG 151
0274 #define PCRE2_ERROR_INTERNAL_OVERRAN_WORKSPACE 152
0275 #define PCRE2_ERROR_INTERNAL_MISSING_SUBPATTERN 153
0276 #define PCRE2_ERROR_DEFINE_TOO_MANY_BRANCHES 154
0277 #define PCRE2_ERROR_BACKSLASH_O_MISSING_BRACE 155
0278 #define PCRE2_ERROR_INTERNAL_UNKNOWN_NEWLINE 156
0279 #define PCRE2_ERROR_BACKSLASH_G_SYNTAX 157
0280 #define PCRE2_ERROR_PARENS_QUERY_R_MISSING_CLOSING 158
0281
0282 #define PCRE2_ERROR_VERB_ARGUMENT_NOT_ALLOWED 159
0283 #define PCRE2_ERROR_VERB_UNKNOWN 160
0284 #define PCRE2_ERROR_SUBPATTERN_NUMBER_TOO_BIG 161
0285 #define PCRE2_ERROR_SUBPATTERN_NAME_EXPECTED 162
0286 #define PCRE2_ERROR_INTERNAL_PARSED_OVERFLOW 163
0287 #define PCRE2_ERROR_INVALID_OCTAL 164
0288 #define PCRE2_ERROR_SUBPATTERN_NAMES_MISMATCH 165
0289 #define PCRE2_ERROR_MARK_MISSING_ARGUMENT 166
0290 #define PCRE2_ERROR_INVALID_HEXADECIMAL 167
0291 #define PCRE2_ERROR_BACKSLASH_C_SYNTAX 168
0292 #define PCRE2_ERROR_BACKSLASH_K_SYNTAX 169
0293 #define PCRE2_ERROR_INTERNAL_BAD_CODE_LOOKBEHINDS 170
0294 #define PCRE2_ERROR_BACKSLASH_N_IN_CLASS 171
0295 #define PCRE2_ERROR_CALLOUT_STRING_TOO_LONG 172
0296 #define PCRE2_ERROR_UNICODE_DISALLOWED_CODE_POINT 173
0297 #define PCRE2_ERROR_UTF_IS_DISABLED 174
0298 #define PCRE2_ERROR_UCP_IS_DISABLED 175
0299 #define PCRE2_ERROR_VERB_NAME_TOO_LONG 176
0300 #define PCRE2_ERROR_BACKSLASH_U_CODE_POINT_TOO_BIG 177
0301 #define PCRE2_ERROR_MISSING_OCTAL_OR_HEX_DIGITS 178
0302 #define PCRE2_ERROR_VERSION_CONDITION_SYNTAX 179
0303 #define PCRE2_ERROR_INTERNAL_BAD_CODE_AUTO_POSSESS 180
0304 #define PCRE2_ERROR_CALLOUT_NO_STRING_DELIMITER 181
0305 #define PCRE2_ERROR_CALLOUT_BAD_STRING_DELIMITER 182
0306 #define PCRE2_ERROR_BACKSLASH_C_CALLER_DISABLED 183
0307 #define PCRE2_ERROR_QUERY_BARJX_NEST_TOO_DEEP 184
0308 #define PCRE2_ERROR_BACKSLASH_C_LIBRARY_DISABLED 185
0309 #define PCRE2_ERROR_PATTERN_TOO_COMPLICATED 186
0310 #define PCRE2_ERROR_LOOKBEHIND_TOO_LONG 187
0311 #define PCRE2_ERROR_PATTERN_STRING_TOO_LONG 188
0312 #define PCRE2_ERROR_INTERNAL_BAD_CODE 189
0313 #define PCRE2_ERROR_INTERNAL_BAD_CODE_IN_SKIP 190
0314 #define PCRE2_ERROR_NO_SURROGATES_IN_UTF16 191
0315 #define PCRE2_ERROR_BAD_LITERAL_OPTIONS 192
0316 #define PCRE2_ERROR_SUPPORTED_ONLY_IN_UNICODE 193
0317 #define PCRE2_ERROR_INVALID_HYPHEN_IN_OPTIONS 194
0318 #define PCRE2_ERROR_ALPHA_ASSERTION_UNKNOWN 195
0319 #define PCRE2_ERROR_SCRIPT_RUN_NOT_AVAILABLE 196
0320 #define PCRE2_ERROR_TOO_MANY_CAPTURES 197
0321 #define PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED 198
0322 #define PCRE2_ERROR_BACKSLASH_K_IN_LOOKAROUND 199
0323
0324
0325
0326
0327 #define PCRE2_ERROR_NOMATCH (-1)
0328 #define PCRE2_ERROR_PARTIAL (-2)
0329
0330
0331
0332 #define PCRE2_ERROR_UTF8_ERR1 (-3)
0333 #define PCRE2_ERROR_UTF8_ERR2 (-4)
0334 #define PCRE2_ERROR_UTF8_ERR3 (-5)
0335 #define PCRE2_ERROR_UTF8_ERR4 (-6)
0336 #define PCRE2_ERROR_UTF8_ERR5 (-7)
0337 #define PCRE2_ERROR_UTF8_ERR6 (-8)
0338 #define PCRE2_ERROR_UTF8_ERR7 (-9)
0339 #define PCRE2_ERROR_UTF8_ERR8 (-10)
0340 #define PCRE2_ERROR_UTF8_ERR9 (-11)
0341 #define PCRE2_ERROR_UTF8_ERR10 (-12)
0342 #define PCRE2_ERROR_UTF8_ERR11 (-13)
0343 #define PCRE2_ERROR_UTF8_ERR12 (-14)
0344 #define PCRE2_ERROR_UTF8_ERR13 (-15)
0345 #define PCRE2_ERROR_UTF8_ERR14 (-16)
0346 #define PCRE2_ERROR_UTF8_ERR15 (-17)
0347 #define PCRE2_ERROR_UTF8_ERR16 (-18)
0348 #define PCRE2_ERROR_UTF8_ERR17 (-19)
0349 #define PCRE2_ERROR_UTF8_ERR18 (-20)
0350 #define PCRE2_ERROR_UTF8_ERR19 (-21)
0351 #define PCRE2_ERROR_UTF8_ERR20 (-22)
0352 #define PCRE2_ERROR_UTF8_ERR21 (-23)
0353
0354
0355
0356 #define PCRE2_ERROR_UTF16_ERR1 (-24)
0357 #define PCRE2_ERROR_UTF16_ERR2 (-25)
0358 #define PCRE2_ERROR_UTF16_ERR3 (-26)
0359
0360
0361
0362 #define PCRE2_ERROR_UTF32_ERR1 (-27)
0363 #define PCRE2_ERROR_UTF32_ERR2 (-28)
0364
0365
0366
0367
0368
0369
0370 #define PCRE2_ERROR_BADDATA (-29)
0371 #define PCRE2_ERROR_MIXEDTABLES (-30)
0372 #define PCRE2_ERROR_BADMAGIC (-31)
0373 #define PCRE2_ERROR_BADMODE (-32)
0374 #define PCRE2_ERROR_BADOFFSET (-33)
0375 #define PCRE2_ERROR_BADOPTION (-34)
0376 #define PCRE2_ERROR_BADREPLACEMENT (-35)
0377 #define PCRE2_ERROR_BADUTFOFFSET (-36)
0378 #define PCRE2_ERROR_CALLOUT (-37)
0379 #define PCRE2_ERROR_DFA_BADRESTART (-38)
0380 #define PCRE2_ERROR_DFA_RECURSE (-39)
0381 #define PCRE2_ERROR_DFA_UCOND (-40)
0382 #define PCRE2_ERROR_DFA_UFUNC (-41)
0383 #define PCRE2_ERROR_DFA_UITEM (-42)
0384 #define PCRE2_ERROR_DFA_WSSIZE (-43)
0385 #define PCRE2_ERROR_INTERNAL (-44)
0386 #define PCRE2_ERROR_JIT_BADOPTION (-45)
0387 #define PCRE2_ERROR_JIT_STACKLIMIT (-46)
0388 #define PCRE2_ERROR_MATCHLIMIT (-47)
0389 #define PCRE2_ERROR_NOMEMORY (-48)
0390 #define PCRE2_ERROR_NOSUBSTRING (-49)
0391 #define PCRE2_ERROR_NOUNIQUESUBSTRING (-50)
0392 #define PCRE2_ERROR_NULL (-51)
0393 #define PCRE2_ERROR_RECURSELOOP (-52)
0394 #define PCRE2_ERROR_DEPTHLIMIT (-53)
0395 #define PCRE2_ERROR_RECURSIONLIMIT (-53)
0396 #define PCRE2_ERROR_UNAVAILABLE (-54)
0397 #define PCRE2_ERROR_UNSET (-55)
0398 #define PCRE2_ERROR_BADOFFSETLIMIT (-56)
0399 #define PCRE2_ERROR_BADREPESCAPE (-57)
0400 #define PCRE2_ERROR_REPMISSINGBRACE (-58)
0401 #define PCRE2_ERROR_BADSUBSTITUTION (-59)
0402 #define PCRE2_ERROR_BADSUBSPATTERN (-60)
0403 #define PCRE2_ERROR_TOOMANYREPLACE (-61)
0404 #define PCRE2_ERROR_BADSERIALIZEDDATA (-62)
0405 #define PCRE2_ERROR_HEAPLIMIT (-63)
0406 #define PCRE2_ERROR_CONVERT_SYNTAX (-64)
0407 #define PCRE2_ERROR_INTERNAL_DUPMATCH (-65)
0408 #define PCRE2_ERROR_DFA_UINVALID_UTF (-66)
0409 #define PCRE2_ERROR_INVALIDOFFSET (-67)
0410
0411
0412
0413
0414 #define PCRE2_INFO_ALLOPTIONS 0
0415 #define PCRE2_INFO_ARGOPTIONS 1
0416 #define PCRE2_INFO_BACKREFMAX 2
0417 #define PCRE2_INFO_BSR 3
0418 #define PCRE2_INFO_CAPTURECOUNT 4
0419 #define PCRE2_INFO_FIRSTCODEUNIT 5
0420 #define PCRE2_INFO_FIRSTCODETYPE 6
0421 #define PCRE2_INFO_FIRSTBITMAP 7
0422 #define PCRE2_INFO_HASCRORLF 8
0423 #define PCRE2_INFO_JCHANGED 9
0424 #define PCRE2_INFO_JITSIZE 10
0425 #define PCRE2_INFO_LASTCODEUNIT 11
0426 #define PCRE2_INFO_LASTCODETYPE 12
0427 #define PCRE2_INFO_MATCHEMPTY 13
0428 #define PCRE2_INFO_MATCHLIMIT 14
0429 #define PCRE2_INFO_MAXLOOKBEHIND 15
0430 #define PCRE2_INFO_MINLENGTH 16
0431 #define PCRE2_INFO_NAMECOUNT 17
0432 #define PCRE2_INFO_NAMEENTRYSIZE 18
0433 #define PCRE2_INFO_NAMETABLE 19
0434 #define PCRE2_INFO_NEWLINE 20
0435 #define PCRE2_INFO_DEPTHLIMIT 21
0436 #define PCRE2_INFO_RECURSIONLIMIT 21
0437 #define PCRE2_INFO_SIZE 22
0438 #define PCRE2_INFO_HASBACKSLASHC 23
0439 #define PCRE2_INFO_FRAMESIZE 24
0440 #define PCRE2_INFO_HEAPLIMIT 25
0441 #define PCRE2_INFO_EXTRAOPTIONS 26
0442
0443
0444
0445 #define PCRE2_CONFIG_BSR 0
0446 #define PCRE2_CONFIG_JIT 1
0447 #define PCRE2_CONFIG_JITTARGET 2
0448 #define PCRE2_CONFIG_LINKSIZE 3
0449 #define PCRE2_CONFIG_MATCHLIMIT 4
0450 #define PCRE2_CONFIG_NEWLINE 5
0451 #define PCRE2_CONFIG_PARENSLIMIT 6
0452 #define PCRE2_CONFIG_DEPTHLIMIT 7
0453 #define PCRE2_CONFIG_RECURSIONLIMIT 7
0454 #define PCRE2_CONFIG_STACKRECURSE 8
0455 #define PCRE2_CONFIG_UNICODE 9
0456 #define PCRE2_CONFIG_UNICODE_VERSION 10
0457 #define PCRE2_CONFIG_VERSION 11
0458 #define PCRE2_CONFIG_HEAPLIMIT 12
0459 #define PCRE2_CONFIG_NEVER_BACKSLASH_C 13
0460 #define PCRE2_CONFIG_COMPILED_WIDTHS 14
0461 #define PCRE2_CONFIG_TABLES_LENGTH 15
0462
0463
0464
0465
0466 typedef uint8_t PCRE2_UCHAR8;
0467 typedef uint16_t PCRE2_UCHAR16;
0468 typedef uint32_t PCRE2_UCHAR32;
0469
0470 typedef const PCRE2_UCHAR8 *PCRE2_SPTR8;
0471 typedef const PCRE2_UCHAR16 *PCRE2_SPTR16;
0472 typedef const PCRE2_UCHAR32 *PCRE2_SPTR32;
0473
0474
0475
0476
0477
0478
0479 #define PCRE2_SIZE size_t
0480 #define PCRE2_SIZE_MAX SIZE_MAX
0481 #define PCRE2_ZERO_TERMINATED (~(PCRE2_SIZE)0)
0482 #define PCRE2_UNSET (~(PCRE2_SIZE)0)
0483
0484
0485
0486
0487 #define PCRE2_TYPES_LIST \
0488 struct pcre2_real_general_context; \
0489 typedef struct pcre2_real_general_context pcre2_general_context; \
0490 \
0491 struct pcre2_real_compile_context; \
0492 typedef struct pcre2_real_compile_context pcre2_compile_context; \
0493 \
0494 struct pcre2_real_match_context; \
0495 typedef struct pcre2_real_match_context pcre2_match_context; \
0496 \
0497 struct pcre2_real_convert_context; \
0498 typedef struct pcre2_real_convert_context pcre2_convert_context; \
0499 \
0500 struct pcre2_real_code; \
0501 typedef struct pcre2_real_code pcre2_code; \
0502 \
0503 struct pcre2_real_match_data; \
0504 typedef struct pcre2_real_match_data pcre2_match_data; \
0505 \
0506 struct pcre2_real_jit_stack; \
0507 typedef struct pcre2_real_jit_stack pcre2_jit_stack; \
0508 \
0509 typedef pcre2_jit_stack *(*pcre2_jit_callback)(void *);
0510
0511
0512
0513
0514
0515
0516
0517
0518
0519
0520 #define PCRE2_CALLOUT_STARTMATCH 0x00000001u
0521 #define PCRE2_CALLOUT_BACKTRACK 0x00000002u
0522
0523 #define PCRE2_STRUCTURE_LIST \
0524 typedef struct pcre2_callout_block { \
0525 uint32_t version; \
0526 \
0527 uint32_t callout_number; \
0528 uint32_t capture_top; \
0529 uint32_t capture_last; \
0530 PCRE2_SIZE *offset_vector; \
0531 PCRE2_SPTR mark; \
0532 PCRE2_SPTR subject; \
0533 PCRE2_SIZE subject_length; \
0534 PCRE2_SIZE start_match; \
0535 PCRE2_SIZE current_position; \
0536 PCRE2_SIZE pattern_position; \
0537 PCRE2_SIZE next_item_length; \
0538 \
0539 PCRE2_SIZE callout_string_offset; \
0540 PCRE2_SIZE callout_string_length; \
0541 PCRE2_SPTR callout_string; \
0542 \
0543 uint32_t callout_flags; \
0544 \
0545 } pcre2_callout_block; \
0546 \
0547 typedef struct pcre2_callout_enumerate_block { \
0548 uint32_t version; \
0549 \
0550 PCRE2_SIZE pattern_position; \
0551 PCRE2_SIZE next_item_length; \
0552 uint32_t callout_number; \
0553 PCRE2_SIZE callout_string_offset; \
0554 PCRE2_SIZE callout_string_length; \
0555 PCRE2_SPTR callout_string; \
0556 \
0557 } pcre2_callout_enumerate_block; \
0558 \
0559 typedef struct pcre2_substitute_callout_block { \
0560 uint32_t version; \
0561 \
0562 PCRE2_SPTR input; \
0563 PCRE2_SPTR output; \
0564 PCRE2_SIZE output_offsets[2]; \
0565 PCRE2_SIZE *ovector; \
0566 uint32_t oveccount; \
0567 uint32_t subscount; \
0568 \
0569 } pcre2_substitute_callout_block;
0570
0571
0572
0573
0574
0575
0576 #define PCRE2_GENERAL_INFO_FUNCTIONS \
0577 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION pcre2_config(uint32_t, void *);
0578
0579
0580
0581
0582 #define PCRE2_GENERAL_CONTEXT_FUNCTIONS \
0583 PCRE2_EXP_DECL pcre2_general_context *PCRE2_CALL_CONVENTION \
0584 pcre2_general_context_copy(pcre2_general_context *); \
0585 PCRE2_EXP_DECL pcre2_general_context *PCRE2_CALL_CONVENTION \
0586 pcre2_general_context_create(void *(*)(size_t, void *), \
0587 void (*)(void *, void *), void *); \
0588 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0589 pcre2_general_context_free(pcre2_general_context *);
0590
0591 #define PCRE2_COMPILE_CONTEXT_FUNCTIONS \
0592 PCRE2_EXP_DECL pcre2_compile_context *PCRE2_CALL_CONVENTION \
0593 pcre2_compile_context_copy(pcre2_compile_context *); \
0594 PCRE2_EXP_DECL pcre2_compile_context *PCRE2_CALL_CONVENTION \
0595 pcre2_compile_context_create(pcre2_general_context *);\
0596 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0597 pcre2_compile_context_free(pcre2_compile_context *); \
0598 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0599 pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
0600 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0601 pcre2_set_character_tables(pcre2_compile_context *, const uint8_t *); \
0602 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0603 pcre2_set_compile_extra_options(pcre2_compile_context *, uint32_t); \
0604 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0605 pcre2_set_max_pattern_length(pcre2_compile_context *, PCRE2_SIZE); \
0606 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0607 pcre2_set_max_pattern_compiled_length(pcre2_compile_context *, PCRE2_SIZE); \
0608 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0609 pcre2_set_max_varlookbehind(pcre2_compile_context *, uint32_t); \
0610 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0611 pcre2_set_newline(pcre2_compile_context *, uint32_t); \
0612 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0613 pcre2_set_parens_nest_limit(pcre2_compile_context *, uint32_t); \
0614 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0615 pcre2_set_compile_recursion_guard(pcre2_compile_context *, \
0616 int (*)(uint32_t, void *), void *);
0617
0618 #define PCRE2_MATCH_CONTEXT_FUNCTIONS \
0619 PCRE2_EXP_DECL pcre2_match_context *PCRE2_CALL_CONVENTION \
0620 pcre2_match_context_copy(pcre2_match_context *); \
0621 PCRE2_EXP_DECL pcre2_match_context *PCRE2_CALL_CONVENTION \
0622 pcre2_match_context_create(pcre2_general_context *); \
0623 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0624 pcre2_match_context_free(pcre2_match_context *); \
0625 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0626 pcre2_set_callout(pcre2_match_context *, \
0627 int (*)(pcre2_callout_block *, void *), void *); \
0628 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0629 pcre2_set_substitute_callout(pcre2_match_context *, \
0630 int (*)(pcre2_substitute_callout_block *, void *), void *); \
0631 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0632 pcre2_set_depth_limit(pcre2_match_context *, uint32_t); \
0633 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0634 pcre2_set_heap_limit(pcre2_match_context *, uint32_t); \
0635 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0636 pcre2_set_match_limit(pcre2_match_context *, uint32_t); \
0637 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0638 pcre2_set_offset_limit(pcre2_match_context *, PCRE2_SIZE); \
0639 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0640 pcre2_set_recursion_limit(pcre2_match_context *, uint32_t); \
0641 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0642 pcre2_set_recursion_memory_management(pcre2_match_context *, \
0643 void *(*)(size_t, void *), void (*)(void *, void *), void *);
0644
0645 #define PCRE2_CONVERT_CONTEXT_FUNCTIONS \
0646 PCRE2_EXP_DECL pcre2_convert_context *PCRE2_CALL_CONVENTION \
0647 pcre2_convert_context_copy(pcre2_convert_context *); \
0648 PCRE2_EXP_DECL pcre2_convert_context *PCRE2_CALL_CONVENTION \
0649 pcre2_convert_context_create(pcre2_general_context *); \
0650 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0651 pcre2_convert_context_free(pcre2_convert_context *); \
0652 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0653 pcre2_set_glob_escape(pcre2_convert_context *, uint32_t); \
0654 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0655 pcre2_set_glob_separator(pcre2_convert_context *, uint32_t);
0656
0657
0658
0659
0660 #define PCRE2_COMPILE_FUNCTIONS \
0661 PCRE2_EXP_DECL pcre2_code *PCRE2_CALL_CONVENTION \
0662 pcre2_compile(PCRE2_SPTR, PCRE2_SIZE, uint32_t, int *, PCRE2_SIZE *, \
0663 pcre2_compile_context *); \
0664 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0665 pcre2_code_free(pcre2_code *); \
0666 PCRE2_EXP_DECL pcre2_code *PCRE2_CALL_CONVENTION \
0667 pcre2_code_copy(const pcre2_code *); \
0668 PCRE2_EXP_DECL pcre2_code *PCRE2_CALL_CONVENTION \
0669 pcre2_code_copy_with_tables(const pcre2_code *);
0670
0671
0672
0673
0674 #define PCRE2_PATTERN_INFO_FUNCTIONS \
0675 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0676 pcre2_pattern_info(const pcre2_code *, uint32_t, void *); \
0677 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0678 pcre2_callout_enumerate(const pcre2_code *, \
0679 int (*)(pcre2_callout_enumerate_block *, void *), void *);
0680
0681
0682
0683
0684 #define PCRE2_MATCH_FUNCTIONS \
0685 PCRE2_EXP_DECL pcre2_match_data *PCRE2_CALL_CONVENTION \
0686 pcre2_match_data_create(uint32_t, pcre2_general_context *); \
0687 PCRE2_EXP_DECL pcre2_match_data *PCRE2_CALL_CONVENTION \
0688 pcre2_match_data_create_from_pattern(const pcre2_code *, \
0689 pcre2_general_context *); \
0690 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0691 pcre2_dfa_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
0692 uint32_t, pcre2_match_data *, pcre2_match_context *, int *, PCRE2_SIZE); \
0693 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0694 pcre2_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
0695 uint32_t, pcre2_match_data *, pcre2_match_context *); \
0696 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0697 pcre2_match_data_free(pcre2_match_data *); \
0698 PCRE2_EXP_DECL PCRE2_SPTR PCRE2_CALL_CONVENTION \
0699 pcre2_get_mark(pcre2_match_data *); \
0700 PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
0701 pcre2_get_match_data_size(pcre2_match_data *); \
0702 PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
0703 pcre2_get_match_data_heapframes_size(pcre2_match_data *); \
0704 PCRE2_EXP_DECL uint32_t PCRE2_CALL_CONVENTION \
0705 pcre2_get_ovector_count(pcre2_match_data *); \
0706 PCRE2_EXP_DECL PCRE2_SIZE *PCRE2_CALL_CONVENTION \
0707 pcre2_get_ovector_pointer(pcre2_match_data *); \
0708 PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
0709 pcre2_get_startchar(pcre2_match_data *);
0710
0711
0712
0713
0714 #define PCRE2_SUBSTRING_FUNCTIONS \
0715 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0716 pcre2_substring_copy_byname(pcre2_match_data *, PCRE2_SPTR, PCRE2_UCHAR *, \
0717 PCRE2_SIZE *); \
0718 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0719 pcre2_substring_copy_bynumber(pcre2_match_data *, uint32_t, PCRE2_UCHAR *, \
0720 PCRE2_SIZE *); \
0721 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0722 pcre2_substring_free(PCRE2_UCHAR *); \
0723 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0724 pcre2_substring_get_byname(pcre2_match_data *, PCRE2_SPTR, PCRE2_UCHAR **, \
0725 PCRE2_SIZE *); \
0726 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0727 pcre2_substring_get_bynumber(pcre2_match_data *, uint32_t, PCRE2_UCHAR **, \
0728 PCRE2_SIZE *); \
0729 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0730 pcre2_substring_length_byname(pcre2_match_data *, PCRE2_SPTR, PCRE2_SIZE *); \
0731 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0732 pcre2_substring_length_bynumber(pcre2_match_data *, uint32_t, PCRE2_SIZE *); \
0733 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0734 pcre2_substring_nametable_scan(const pcre2_code *, PCRE2_SPTR, PCRE2_SPTR *, \
0735 PCRE2_SPTR *); \
0736 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0737 pcre2_substring_number_from_name(const pcre2_code *, PCRE2_SPTR); \
0738 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0739 pcre2_substring_list_free(PCRE2_UCHAR **); \
0740 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0741 pcre2_substring_list_get(pcre2_match_data *, PCRE2_UCHAR ***, PCRE2_SIZE **);
0742
0743
0744
0745 #define PCRE2_SERIALIZE_FUNCTIONS \
0746 PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION \
0747 pcre2_serialize_encode(const pcre2_code **, int32_t, uint8_t **, \
0748 PCRE2_SIZE *, pcre2_general_context *); \
0749 PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION \
0750 pcre2_serialize_decode(pcre2_code **, int32_t, const uint8_t *, \
0751 pcre2_general_context *); \
0752 PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION \
0753 pcre2_serialize_get_number_of_codes(const uint8_t *); \
0754 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0755 pcre2_serialize_free(uint8_t *);
0756
0757
0758
0759
0760 #define PCRE2_SUBSTITUTE_FUNCTION \
0761 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0762 pcre2_substitute(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
0763 uint32_t, pcre2_match_data *, pcre2_match_context *, PCRE2_SPTR, \
0764 PCRE2_SIZE, PCRE2_UCHAR *, PCRE2_SIZE *);
0765
0766
0767
0768
0769 #define PCRE2_CONVERT_FUNCTIONS \
0770 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0771 pcre2_pattern_convert(PCRE2_SPTR, PCRE2_SIZE, uint32_t, PCRE2_UCHAR **, \
0772 PCRE2_SIZE *, pcre2_convert_context *); \
0773 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0774 pcre2_converted_pattern_free(PCRE2_UCHAR *);
0775
0776
0777
0778
0779 #define PCRE2_JIT_FUNCTIONS \
0780 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0781 pcre2_jit_compile(pcre2_code *, uint32_t); \
0782 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0783 pcre2_jit_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
0784 uint32_t, pcre2_match_data *, pcre2_match_context *); \
0785 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0786 pcre2_jit_free_unused_memory(pcre2_general_context *); \
0787 PCRE2_EXP_DECL pcre2_jit_stack *PCRE2_CALL_CONVENTION \
0788 pcre2_jit_stack_create(size_t, size_t, pcre2_general_context *); \
0789 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0790 pcre2_jit_stack_assign(pcre2_match_context *, pcre2_jit_callback, void *); \
0791 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0792 pcre2_jit_stack_free(pcre2_jit_stack *);
0793
0794
0795
0796
0797 #define PCRE2_OTHER_FUNCTIONS \
0798 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
0799 pcre2_get_error_message(int, PCRE2_UCHAR *, PCRE2_SIZE); \
0800 PCRE2_EXP_DECL const uint8_t *PCRE2_CALL_CONVENTION \
0801 pcre2_maketables(pcre2_general_context *); \
0802 PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
0803 pcre2_maketables_free(pcre2_general_context *, const uint8_t *);
0804
0805
0806
0807
0808
0809
0810
0811
0812 #define PCRE2_JOIN(a,b) a ## b
0813 #define PCRE2_GLUE(a,b) PCRE2_JOIN(a,b)
0814 #define PCRE2_SUFFIX(a) PCRE2_GLUE(a,PCRE2_LOCAL_WIDTH)
0815
0816
0817
0818
0819 #define PCRE2_UCHAR PCRE2_SUFFIX(PCRE2_UCHAR)
0820 #define PCRE2_SPTR PCRE2_SUFFIX(PCRE2_SPTR)
0821
0822 #define pcre2_code PCRE2_SUFFIX(pcre2_code_)
0823 #define pcre2_jit_callback PCRE2_SUFFIX(pcre2_jit_callback_)
0824 #define pcre2_jit_stack PCRE2_SUFFIX(pcre2_jit_stack_)
0825
0826 #define pcre2_real_code PCRE2_SUFFIX(pcre2_real_code_)
0827 #define pcre2_real_general_context PCRE2_SUFFIX(pcre2_real_general_context_)
0828 #define pcre2_real_compile_context PCRE2_SUFFIX(pcre2_real_compile_context_)
0829 #define pcre2_real_convert_context PCRE2_SUFFIX(pcre2_real_convert_context_)
0830 #define pcre2_real_match_context PCRE2_SUFFIX(pcre2_real_match_context_)
0831 #define pcre2_real_jit_stack PCRE2_SUFFIX(pcre2_real_jit_stack_)
0832 #define pcre2_real_match_data PCRE2_SUFFIX(pcre2_real_match_data_)
0833
0834
0835
0836
0837 #define pcre2_callout_block PCRE2_SUFFIX(pcre2_callout_block_)
0838 #define pcre2_callout_enumerate_block PCRE2_SUFFIX(pcre2_callout_enumerate_block_)
0839 #define pcre2_substitute_callout_block PCRE2_SUFFIX(pcre2_substitute_callout_block_)
0840 #define pcre2_general_context PCRE2_SUFFIX(pcre2_general_context_)
0841 #define pcre2_compile_context PCRE2_SUFFIX(pcre2_compile_context_)
0842 #define pcre2_convert_context PCRE2_SUFFIX(pcre2_convert_context_)
0843 #define pcre2_match_context PCRE2_SUFFIX(pcre2_match_context_)
0844 #define pcre2_match_data PCRE2_SUFFIX(pcre2_match_data_)
0845
0846
0847
0848
0849 #define pcre2_callout_enumerate PCRE2_SUFFIX(pcre2_callout_enumerate_)
0850 #define pcre2_code_copy PCRE2_SUFFIX(pcre2_code_copy_)
0851 #define pcre2_code_copy_with_tables PCRE2_SUFFIX(pcre2_code_copy_with_tables_)
0852 #define pcre2_code_free PCRE2_SUFFIX(pcre2_code_free_)
0853 #define pcre2_compile PCRE2_SUFFIX(pcre2_compile_)
0854 #define pcre2_compile_context_copy PCRE2_SUFFIX(pcre2_compile_context_copy_)
0855 #define pcre2_compile_context_create PCRE2_SUFFIX(pcre2_compile_context_create_)
0856 #define pcre2_compile_context_free PCRE2_SUFFIX(pcre2_compile_context_free_)
0857 #define pcre2_config PCRE2_SUFFIX(pcre2_config_)
0858 #define pcre2_convert_context_copy PCRE2_SUFFIX(pcre2_convert_context_copy_)
0859 #define pcre2_convert_context_create PCRE2_SUFFIX(pcre2_convert_context_create_)
0860 #define pcre2_convert_context_free PCRE2_SUFFIX(pcre2_convert_context_free_)
0861 #define pcre2_converted_pattern_free PCRE2_SUFFIX(pcre2_converted_pattern_free_)
0862 #define pcre2_dfa_match PCRE2_SUFFIX(pcre2_dfa_match_)
0863 #define pcre2_general_context_copy PCRE2_SUFFIX(pcre2_general_context_copy_)
0864 #define pcre2_general_context_create PCRE2_SUFFIX(pcre2_general_context_create_)
0865 #define pcre2_general_context_free PCRE2_SUFFIX(pcre2_general_context_free_)
0866 #define pcre2_get_error_message PCRE2_SUFFIX(pcre2_get_error_message_)
0867 #define pcre2_get_mark PCRE2_SUFFIX(pcre2_get_mark_)
0868 #define pcre2_get_match_data_heapframes_size PCRE2_SUFFIX(pcre2_get_match_data_heapframes_size_)
0869 #define pcre2_get_match_data_size PCRE2_SUFFIX(pcre2_get_match_data_size_)
0870 #define pcre2_get_ovector_pointer PCRE2_SUFFIX(pcre2_get_ovector_pointer_)
0871 #define pcre2_get_ovector_count PCRE2_SUFFIX(pcre2_get_ovector_count_)
0872 #define pcre2_get_startchar PCRE2_SUFFIX(pcre2_get_startchar_)
0873 #define pcre2_jit_compile PCRE2_SUFFIX(pcre2_jit_compile_)
0874 #define pcre2_jit_match PCRE2_SUFFIX(pcre2_jit_match_)
0875 #define pcre2_jit_free_unused_memory PCRE2_SUFFIX(pcre2_jit_free_unused_memory_)
0876 #define pcre2_jit_stack_assign PCRE2_SUFFIX(pcre2_jit_stack_assign_)
0877 #define pcre2_jit_stack_create PCRE2_SUFFIX(pcre2_jit_stack_create_)
0878 #define pcre2_jit_stack_free PCRE2_SUFFIX(pcre2_jit_stack_free_)
0879 #define pcre2_maketables PCRE2_SUFFIX(pcre2_maketables_)
0880 #define pcre2_maketables_free PCRE2_SUFFIX(pcre2_maketables_free_)
0881 #define pcre2_match PCRE2_SUFFIX(pcre2_match_)
0882 #define pcre2_match_context_copy PCRE2_SUFFIX(pcre2_match_context_copy_)
0883 #define pcre2_match_context_create PCRE2_SUFFIX(pcre2_match_context_create_)
0884 #define pcre2_match_context_free PCRE2_SUFFIX(pcre2_match_context_free_)
0885 #define pcre2_match_data_create PCRE2_SUFFIX(pcre2_match_data_create_)
0886 #define pcre2_match_data_create_from_pattern PCRE2_SUFFIX(pcre2_match_data_create_from_pattern_)
0887 #define pcre2_match_data_free PCRE2_SUFFIX(pcre2_match_data_free_)
0888 #define pcre2_pattern_convert PCRE2_SUFFIX(pcre2_pattern_convert_)
0889 #define pcre2_pattern_info PCRE2_SUFFIX(pcre2_pattern_info_)
0890 #define pcre2_serialize_decode PCRE2_SUFFIX(pcre2_serialize_decode_)
0891 #define pcre2_serialize_encode PCRE2_SUFFIX(pcre2_serialize_encode_)
0892 #define pcre2_serialize_free PCRE2_SUFFIX(pcre2_serialize_free_)
0893 #define pcre2_serialize_get_number_of_codes PCRE2_SUFFIX(pcre2_serialize_get_number_of_codes_)
0894 #define pcre2_set_bsr PCRE2_SUFFIX(pcre2_set_bsr_)
0895 #define pcre2_set_callout PCRE2_SUFFIX(pcre2_set_callout_)
0896 #define pcre2_set_character_tables PCRE2_SUFFIX(pcre2_set_character_tables_)
0897 #define pcre2_set_compile_extra_options PCRE2_SUFFIX(pcre2_set_compile_extra_options_)
0898 #define pcre2_set_compile_recursion_guard PCRE2_SUFFIX(pcre2_set_compile_recursion_guard_)
0899 #define pcre2_set_depth_limit PCRE2_SUFFIX(pcre2_set_depth_limit_)
0900 #define pcre2_set_glob_escape PCRE2_SUFFIX(pcre2_set_glob_escape_)
0901 #define pcre2_set_glob_separator PCRE2_SUFFIX(pcre2_set_glob_separator_)
0902 #define pcre2_set_heap_limit PCRE2_SUFFIX(pcre2_set_heap_limit_)
0903 #define pcre2_set_match_limit PCRE2_SUFFIX(pcre2_set_match_limit_)
0904 #define pcre2_set_max_varlookbehind PCRE2_SUFFIX(pcre2_set_max_varlookbehind_)
0905 #define pcre2_set_max_pattern_length PCRE2_SUFFIX(pcre2_set_max_pattern_length_)
0906 #define pcre2_set_max_pattern_compiled_length PCRE2_SUFFIX(pcre2_set_max_pattern_compiled_length_)
0907 #define pcre2_set_newline PCRE2_SUFFIX(pcre2_set_newline_)
0908 #define pcre2_set_parens_nest_limit PCRE2_SUFFIX(pcre2_set_parens_nest_limit_)
0909 #define pcre2_set_offset_limit PCRE2_SUFFIX(pcre2_set_offset_limit_)
0910 #define pcre2_set_substitute_callout PCRE2_SUFFIX(pcre2_set_substitute_callout_)
0911 #define pcre2_substitute PCRE2_SUFFIX(pcre2_substitute_)
0912 #define pcre2_substring_copy_byname PCRE2_SUFFIX(pcre2_substring_copy_byname_)
0913 #define pcre2_substring_copy_bynumber PCRE2_SUFFIX(pcre2_substring_copy_bynumber_)
0914 #define pcre2_substring_free PCRE2_SUFFIX(pcre2_substring_free_)
0915 #define pcre2_substring_get_byname PCRE2_SUFFIX(pcre2_substring_get_byname_)
0916 #define pcre2_substring_get_bynumber PCRE2_SUFFIX(pcre2_substring_get_bynumber_)
0917 #define pcre2_substring_length_byname PCRE2_SUFFIX(pcre2_substring_length_byname_)
0918 #define pcre2_substring_length_bynumber PCRE2_SUFFIX(pcre2_substring_length_bynumber_)
0919 #define pcre2_substring_list_get PCRE2_SUFFIX(pcre2_substring_list_get_)
0920 #define pcre2_substring_list_free PCRE2_SUFFIX(pcre2_substring_list_free_)
0921 #define pcre2_substring_nametable_scan PCRE2_SUFFIX(pcre2_substring_nametable_scan_)
0922 #define pcre2_substring_number_from_name PCRE2_SUFFIX(pcre2_substring_number_from_name_)
0923
0924
0925 #define pcre2_set_recursion_limit PCRE2_SUFFIX(pcre2_set_recursion_limit_)
0926
0927
0928 #define pcre2_set_recursion_memory_management PCRE2_SUFFIX(pcre2_set_recursion_memory_management_)
0929
0930
0931
0932
0933 #define PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS \
0934 PCRE2_TYPES_LIST \
0935 PCRE2_STRUCTURE_LIST \
0936 PCRE2_GENERAL_INFO_FUNCTIONS \
0937 PCRE2_GENERAL_CONTEXT_FUNCTIONS \
0938 PCRE2_COMPILE_CONTEXT_FUNCTIONS \
0939 PCRE2_CONVERT_CONTEXT_FUNCTIONS \
0940 PCRE2_CONVERT_FUNCTIONS \
0941 PCRE2_MATCH_CONTEXT_FUNCTIONS \
0942 PCRE2_COMPILE_FUNCTIONS \
0943 PCRE2_PATTERN_INFO_FUNCTIONS \
0944 PCRE2_MATCH_FUNCTIONS \
0945 PCRE2_SUBSTRING_FUNCTIONS \
0946 PCRE2_SERIALIZE_FUNCTIONS \
0947 PCRE2_SUBSTITUTE_FUNCTION \
0948 PCRE2_JIT_FUNCTIONS \
0949 PCRE2_OTHER_FUNCTIONS
0950
0951 #define PCRE2_LOCAL_WIDTH 8
0952 PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
0953 #undef PCRE2_LOCAL_WIDTH
0954
0955 #define PCRE2_LOCAL_WIDTH 16
0956 PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
0957 #undef PCRE2_LOCAL_WIDTH
0958
0959 #define PCRE2_LOCAL_WIDTH 32
0960 PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
0961 #undef PCRE2_LOCAL_WIDTH
0962
0963
0964
0965 #undef PCRE2_TYPES_LIST
0966 #undef PCRE2_STRUCTURE_LIST
0967 #undef PCRE2_GENERAL_INFO_FUNCTIONS
0968 #undef PCRE2_GENERAL_CONTEXT_FUNCTIONS
0969 #undef PCRE2_COMPILE_CONTEXT_FUNCTIONS
0970 #undef PCRE2_CONVERT_CONTEXT_FUNCTIONS
0971 #undef PCRE2_MATCH_CONTEXT_FUNCTIONS
0972 #undef PCRE2_COMPILE_FUNCTIONS
0973 #undef PCRE2_PATTERN_INFO_FUNCTIONS
0974 #undef PCRE2_MATCH_FUNCTIONS
0975 #undef PCRE2_SUBSTRING_FUNCTIONS
0976 #undef PCRE2_SERIALIZE_FUNCTIONS
0977 #undef PCRE2_SUBSTITUTE_FUNCTION
0978 #undef PCRE2_JIT_FUNCTIONS
0979 #undef PCRE2_OTHER_FUNCTIONS
0980 #undef PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
0981
0982
0983
0984
0985
0986 #undef PCRE2_SUFFIX
0987 #ifndef PCRE2_CODE_UNIT_WIDTH
0988 #error PCRE2_CODE_UNIT_WIDTH must be defined before including pcre2.h.
0989 #error Use 8, 16, or 32; or 0 for a multi-width application.
0990 #else
0991 #if PCRE2_CODE_UNIT_WIDTH == 8 || \
0992 PCRE2_CODE_UNIT_WIDTH == 16 || \
0993 PCRE2_CODE_UNIT_WIDTH == 32
0994 #define PCRE2_SUFFIX(a) PCRE2_GLUE(a, PCRE2_CODE_UNIT_WIDTH)
0995 #elif PCRE2_CODE_UNIT_WIDTH == 0
0996 #undef PCRE2_JOIN
0997 #undef PCRE2_GLUE
0998 #define PCRE2_SUFFIX(a) a
0999 #else
1000 #error PCRE2_CODE_UNIT_WIDTH must be 0, 8, 16, or 32.
1001 #endif
1002 #endif
1003
1004 #ifdef __cplusplus
1005 }
1006 #endif
1007
1008 #endif
1009
1010