39#ifndef PCRE2_H_IDEMPOTENT_GUARD
40#define PCRE2_H_IDEMPOTENT_GUARD
46#define PCRE2_PRERELEASE
47#define PCRE2_DATE 2024-06-07
54#if defined(_WIN32) && !defined(PCRE2_STATIC)
55# ifndef PCRE2_EXP_DECL
56# define PCRE2_EXP_DECL extern __declspec(dllimport)
64# define PCRE2_EXP_DECL extern "C"
66# define PCRE2_EXP_DECL extern
80#ifndef PCRE2_CALL_CONVENTION
81#define PCRE2_CALL_CONVENTION
105#define PCRE2_ANCHORED 0x80000000u
106#define PCRE2_NO_UTF_CHECK 0x40000000u
107#define PCRE2_ENDANCHORED 0x20000000u
119#define PCRE2_ALLOW_EMPTY_CLASS 0x00000001u
120#define PCRE2_ALT_BSUX 0x00000002u
121#define PCRE2_AUTO_CALLOUT 0x00000004u
122#define PCRE2_CASELESS 0x00000008u
123#define PCRE2_DOLLAR_ENDONLY 0x00000010u
124#define PCRE2_DOTALL 0x00000020u
125#define PCRE2_DUPNAMES 0x00000040u
126#define PCRE2_EXTENDED 0x00000080u
127#define PCRE2_FIRSTLINE 0x00000100u
128#define PCRE2_MATCH_UNSET_BACKREF 0x00000200u
129#define PCRE2_MULTILINE 0x00000400u
130#define PCRE2_NEVER_UCP 0x00000800u
131#define PCRE2_NEVER_UTF 0x00001000u
132#define PCRE2_NO_AUTO_CAPTURE 0x00002000u
133#define PCRE2_NO_AUTO_POSSESS 0x00004000u
134#define PCRE2_NO_DOTSTAR_ANCHOR 0x00008000u
135#define PCRE2_NO_START_OPTIMIZE 0x00010000u
136#define PCRE2_UCP 0x00020000u
137#define PCRE2_UNGREEDY 0x00040000u
138#define PCRE2_UTF 0x00080000u
139#define PCRE2_NEVER_BACKSLASH_C 0x00100000u
140#define PCRE2_ALT_CIRCUMFLEX 0x00200000u
141#define PCRE2_ALT_VERBNAMES 0x00400000u
142#define PCRE2_USE_OFFSET_LIMIT 0x00800000u
143#define PCRE2_EXTENDED_MORE 0x01000000u
144#define PCRE2_LITERAL 0x02000000u
145#define PCRE2_MATCH_INVALID_UTF 0x04000000u
149#define PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES 0x00000001u
150#define PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL 0x00000002u
151#define PCRE2_EXTRA_MATCH_WORD 0x00000004u
152#define PCRE2_EXTRA_MATCH_LINE 0x00000008u
153#define PCRE2_EXTRA_ESCAPED_CR_IS_LF 0x00000010u
154#define PCRE2_EXTRA_ALT_BSUX 0x00000020u
155#define PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK 0x00000040u
156#define PCRE2_EXTRA_CASELESS_RESTRICT 0x00000080u
157#define PCRE2_EXTRA_ASCII_BSD 0x00000100u
158#define PCRE2_EXTRA_ASCII_BSS 0x00000200u
159#define PCRE2_EXTRA_ASCII_BSW 0x00000400u
160#define PCRE2_EXTRA_ASCII_POSIX 0x00000800u
161#define PCRE2_EXTRA_ASCII_DIGIT 0x00001000u
165#define PCRE2_JIT_COMPLETE 0x00000001u
166#define PCRE2_JIT_PARTIAL_SOFT 0x00000002u
167#define PCRE2_JIT_PARTIAL_HARD 0x00000004u
168#define PCRE2_JIT_INVALID_UTF 0x00000100u
176#define PCRE2_NOTBOL 0x00000001u
177#define PCRE2_NOTEOL 0x00000002u
178#define PCRE2_NOTEMPTY 0x00000004u
179#define PCRE2_NOTEMPTY_ATSTART 0x00000008u
180#define PCRE2_PARTIAL_SOFT 0x00000010u
181#define PCRE2_PARTIAL_HARD 0x00000020u
182#define PCRE2_DFA_RESTART 0x00000040u
183#define PCRE2_DFA_SHORTEST 0x00000080u
184#define PCRE2_SUBSTITUTE_GLOBAL 0x00000100u
185#define PCRE2_SUBSTITUTE_EXTENDED 0x00000200u
186#define PCRE2_SUBSTITUTE_UNSET_EMPTY 0x00000400u
187#define PCRE2_SUBSTITUTE_UNKNOWN_UNSET 0x00000800u
188#define PCRE2_SUBSTITUTE_OVERFLOW_LENGTH 0x00001000u
189#define PCRE2_NO_JIT 0x00002000u
190#define PCRE2_COPY_MATCHED_SUBJECT 0x00004000u
191#define PCRE2_SUBSTITUTE_LITERAL 0x00008000u
192#define PCRE2_SUBSTITUTE_MATCHED 0x00010000u
193#define PCRE2_SUBSTITUTE_REPLACEMENT_ONLY 0x00020000u
194#define PCRE2_DISABLE_RECURSELOOP_CHECK 0x00040000u
198#define PCRE2_CONVERT_UTF 0x00000001u
199#define PCRE2_CONVERT_NO_UTF_CHECK 0x00000002u
200#define PCRE2_CONVERT_POSIX_BASIC 0x00000004u
201#define PCRE2_CONVERT_POSIX_EXTENDED 0x00000008u
202#define PCRE2_CONVERT_GLOB 0x00000010u
203#define PCRE2_CONVERT_GLOB_NO_WILD_SEPARATOR 0x00000030u
204#define PCRE2_CONVERT_GLOB_NO_STARSTAR 0x00000050u
210#define PCRE2_NEWLINE_CR 1
211#define PCRE2_NEWLINE_LF 2
212#define PCRE2_NEWLINE_CRLF 3
213#define PCRE2_NEWLINE_ANY 4
214#define PCRE2_NEWLINE_ANYCRLF 5
215#define PCRE2_NEWLINE_NUL 6
217#define PCRE2_BSR_UNICODE 1
218#define PCRE2_BSR_ANYCRLF 2
223#define PCRE2_ERROR_END_BACKSLASH 101
224#define PCRE2_ERROR_END_BACKSLASH_C 102
225#define PCRE2_ERROR_UNKNOWN_ESCAPE 103
226#define PCRE2_ERROR_QUANTIFIER_OUT_OF_ORDER 104
227#define PCRE2_ERROR_QUANTIFIER_TOO_BIG 105
228#define PCRE2_ERROR_MISSING_SQUARE_BRACKET 106
229#define PCRE2_ERROR_ESCAPE_INVALID_IN_CLASS 107
230#define PCRE2_ERROR_CLASS_RANGE_ORDER 108
231#define PCRE2_ERROR_QUANTIFIER_INVALID 109
232#define PCRE2_ERROR_INTERNAL_UNEXPECTED_REPEAT 110
233#define PCRE2_ERROR_INVALID_AFTER_PARENS_QUERY 111
234#define PCRE2_ERROR_POSIX_CLASS_NOT_IN_CLASS 112
235#define PCRE2_ERROR_POSIX_NO_SUPPORT_COLLATING 113
236#define PCRE2_ERROR_MISSING_CLOSING_PARENTHESIS 114
237#define PCRE2_ERROR_BAD_SUBPATTERN_REFERENCE 115
238#define PCRE2_ERROR_NULL_PATTERN 116
239#define PCRE2_ERROR_BAD_OPTIONS 117
240#define PCRE2_ERROR_MISSING_COMMENT_CLOSING 118
241#define PCRE2_ERROR_PARENTHESES_NEST_TOO_DEEP 119
242#define PCRE2_ERROR_PATTERN_TOO_LARGE 120
243#define PCRE2_ERROR_HEAP_FAILED 121
244#define PCRE2_ERROR_UNMATCHED_CLOSING_PARENTHESIS 122
245#define PCRE2_ERROR_INTERNAL_CODE_OVERFLOW 123
246#define PCRE2_ERROR_MISSING_CONDITION_CLOSING 124
247#define PCRE2_ERROR_LOOKBEHIND_NOT_FIXED_LENGTH 125
248#define PCRE2_ERROR_ZERO_RELATIVE_REFERENCE 126
249#define PCRE2_ERROR_TOO_MANY_CONDITION_BRANCHES 127
250#define PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED 128
251#define PCRE2_ERROR_BAD_RELATIVE_REFERENCE 129
252#define PCRE2_ERROR_UNKNOWN_POSIX_CLASS 130
253#define PCRE2_ERROR_INTERNAL_STUDY_ERROR 131
254#define PCRE2_ERROR_UNICODE_NOT_SUPPORTED 132
255#define PCRE2_ERROR_PARENTHESES_STACK_CHECK 133
256#define PCRE2_ERROR_CODE_POINT_TOO_BIG 134
257#define PCRE2_ERROR_LOOKBEHIND_TOO_COMPLICATED 135
258#define PCRE2_ERROR_LOOKBEHIND_INVALID_BACKSLASH_C 136
259#define PCRE2_ERROR_UNSUPPORTED_ESCAPE_SEQUENCE 137
260#define PCRE2_ERROR_CALLOUT_NUMBER_TOO_BIG 138
261#define PCRE2_ERROR_MISSING_CALLOUT_CLOSING 139
262#define PCRE2_ERROR_ESCAPE_INVALID_IN_VERB 140
263#define PCRE2_ERROR_UNRECOGNIZED_AFTER_QUERY_P 141
264#define PCRE2_ERROR_MISSING_NAME_TERMINATOR 142
265#define PCRE2_ERROR_DUPLICATE_SUBPATTERN_NAME 143
266#define PCRE2_ERROR_INVALID_SUBPATTERN_NAME 144
267#define PCRE2_ERROR_UNICODE_PROPERTIES_UNAVAILABLE 145
268#define PCRE2_ERROR_MALFORMED_UNICODE_PROPERTY 146
269#define PCRE2_ERROR_UNKNOWN_UNICODE_PROPERTY 147
270#define PCRE2_ERROR_SUBPATTERN_NAME_TOO_LONG 148
271#define PCRE2_ERROR_TOO_MANY_NAMED_SUBPATTERNS 149
272#define PCRE2_ERROR_CLASS_INVALID_RANGE 150
273#define PCRE2_ERROR_OCTAL_BYTE_TOO_BIG 151
274#define PCRE2_ERROR_INTERNAL_OVERRAN_WORKSPACE 152
275#define PCRE2_ERROR_INTERNAL_MISSING_SUBPATTERN 153
276#define PCRE2_ERROR_DEFINE_TOO_MANY_BRANCHES 154
277#define PCRE2_ERROR_BACKSLASH_O_MISSING_BRACE 155
278#define PCRE2_ERROR_INTERNAL_UNKNOWN_NEWLINE 156
279#define PCRE2_ERROR_BACKSLASH_G_SYNTAX 157
280#define PCRE2_ERROR_PARENS_QUERY_R_MISSING_CLOSING 158
282#define PCRE2_ERROR_VERB_ARGUMENT_NOT_ALLOWED 159
283#define PCRE2_ERROR_VERB_UNKNOWN 160
284#define PCRE2_ERROR_SUBPATTERN_NUMBER_TOO_BIG 161
285#define PCRE2_ERROR_SUBPATTERN_NAME_EXPECTED 162
286#define PCRE2_ERROR_INTERNAL_PARSED_OVERFLOW 163
287#define PCRE2_ERROR_INVALID_OCTAL 164
288#define PCRE2_ERROR_SUBPATTERN_NAMES_MISMATCH 165
289#define PCRE2_ERROR_MARK_MISSING_ARGUMENT 166
290#define PCRE2_ERROR_INVALID_HEXADECIMAL 167
291#define PCRE2_ERROR_BACKSLASH_C_SYNTAX 168
292#define PCRE2_ERROR_BACKSLASH_K_SYNTAX 169
293#define PCRE2_ERROR_INTERNAL_BAD_CODE_LOOKBEHINDS 170
294#define PCRE2_ERROR_BACKSLASH_N_IN_CLASS 171
295#define PCRE2_ERROR_CALLOUT_STRING_TOO_LONG 172
296#define PCRE2_ERROR_UNICODE_DISALLOWED_CODE_POINT 173
297#define PCRE2_ERROR_UTF_IS_DISABLED 174
298#define PCRE2_ERROR_UCP_IS_DISABLED 175
299#define PCRE2_ERROR_VERB_NAME_TOO_LONG 176
300#define PCRE2_ERROR_BACKSLASH_U_CODE_POINT_TOO_BIG 177
301#define PCRE2_ERROR_MISSING_OCTAL_OR_HEX_DIGITS 178
302#define PCRE2_ERROR_VERSION_CONDITION_SYNTAX 179
303#define PCRE2_ERROR_INTERNAL_BAD_CODE_AUTO_POSSESS 180
304#define PCRE2_ERROR_CALLOUT_NO_STRING_DELIMITER 181
305#define PCRE2_ERROR_CALLOUT_BAD_STRING_DELIMITER 182
306#define PCRE2_ERROR_BACKSLASH_C_CALLER_DISABLED 183
307#define PCRE2_ERROR_QUERY_BARJX_NEST_TOO_DEEP 184
308#define PCRE2_ERROR_BACKSLASH_C_LIBRARY_DISABLED 185
309#define PCRE2_ERROR_PATTERN_TOO_COMPLICATED 186
310#define PCRE2_ERROR_LOOKBEHIND_TOO_LONG 187
311#define PCRE2_ERROR_PATTERN_STRING_TOO_LONG 188
312#define PCRE2_ERROR_INTERNAL_BAD_CODE 189
313#define PCRE2_ERROR_INTERNAL_BAD_CODE_IN_SKIP 190
314#define PCRE2_ERROR_NO_SURROGATES_IN_UTF16 191
315#define PCRE2_ERROR_BAD_LITERAL_OPTIONS 192
316#define PCRE2_ERROR_SUPPORTED_ONLY_IN_UNICODE 193
317#define PCRE2_ERROR_INVALID_HYPHEN_IN_OPTIONS 194
318#define PCRE2_ERROR_ALPHA_ASSERTION_UNKNOWN 195
319#define PCRE2_ERROR_SCRIPT_RUN_NOT_AVAILABLE 196
320#define PCRE2_ERROR_TOO_MANY_CAPTURES 197
321#define PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED 198
322#define PCRE2_ERROR_BACKSLASH_K_IN_LOOKAROUND 199
327#define PCRE2_ERROR_NOMATCH (-1)
328#define PCRE2_ERROR_PARTIAL (-2)
332#define PCRE2_ERROR_UTF8_ERR1 (-3)
333#define PCRE2_ERROR_UTF8_ERR2 (-4)
334#define PCRE2_ERROR_UTF8_ERR3 (-5)
335#define PCRE2_ERROR_UTF8_ERR4 (-6)
336#define PCRE2_ERROR_UTF8_ERR5 (-7)
337#define PCRE2_ERROR_UTF8_ERR6 (-8)
338#define PCRE2_ERROR_UTF8_ERR7 (-9)
339#define PCRE2_ERROR_UTF8_ERR8 (-10)
340#define PCRE2_ERROR_UTF8_ERR9 (-11)
341#define PCRE2_ERROR_UTF8_ERR10 (-12)
342#define PCRE2_ERROR_UTF8_ERR11 (-13)
343#define PCRE2_ERROR_UTF8_ERR12 (-14)
344#define PCRE2_ERROR_UTF8_ERR13 (-15)
345#define PCRE2_ERROR_UTF8_ERR14 (-16)
346#define PCRE2_ERROR_UTF8_ERR15 (-17)
347#define PCRE2_ERROR_UTF8_ERR16 (-18)
348#define PCRE2_ERROR_UTF8_ERR17 (-19)
349#define PCRE2_ERROR_UTF8_ERR18 (-20)
350#define PCRE2_ERROR_UTF8_ERR19 (-21)
351#define PCRE2_ERROR_UTF8_ERR20 (-22)
352#define PCRE2_ERROR_UTF8_ERR21 (-23)
356#define PCRE2_ERROR_UTF16_ERR1 (-24)
357#define PCRE2_ERROR_UTF16_ERR2 (-25)
358#define PCRE2_ERROR_UTF16_ERR3 (-26)
362#define PCRE2_ERROR_UTF32_ERR1 (-27)
363#define PCRE2_ERROR_UTF32_ERR2 (-28)
370#define PCRE2_ERROR_BADDATA (-29)
371#define PCRE2_ERROR_MIXEDTABLES (-30)
372#define PCRE2_ERROR_BADMAGIC (-31)
373#define PCRE2_ERROR_BADMODE (-32)
374#define PCRE2_ERROR_BADOFFSET (-33)
375#define PCRE2_ERROR_BADOPTION (-34)
376#define PCRE2_ERROR_BADREPLACEMENT (-35)
377#define PCRE2_ERROR_BADUTFOFFSET (-36)
378#define PCRE2_ERROR_CALLOUT (-37)
379#define PCRE2_ERROR_DFA_BADRESTART (-38)
380#define PCRE2_ERROR_DFA_RECURSE (-39)
381#define PCRE2_ERROR_DFA_UCOND (-40)
382#define PCRE2_ERROR_DFA_UFUNC (-41)
383#define PCRE2_ERROR_DFA_UITEM (-42)
384#define PCRE2_ERROR_DFA_WSSIZE (-43)
385#define PCRE2_ERROR_INTERNAL (-44)
386#define PCRE2_ERROR_JIT_BADOPTION (-45)
387#define PCRE2_ERROR_JIT_STACKLIMIT (-46)
388#define PCRE2_ERROR_MATCHLIMIT (-47)
389#define PCRE2_ERROR_NOMEMORY (-48)
390#define PCRE2_ERROR_NOSUBSTRING (-49)
391#define PCRE2_ERROR_NOUNIQUESUBSTRING (-50)
392#define PCRE2_ERROR_NULL (-51)
393#define PCRE2_ERROR_RECURSELOOP (-52)
394#define PCRE2_ERROR_DEPTHLIMIT (-53)
395#define PCRE2_ERROR_RECURSIONLIMIT (-53)
396#define PCRE2_ERROR_UNAVAILABLE (-54)
397#define PCRE2_ERROR_UNSET (-55)
398#define PCRE2_ERROR_BADOFFSETLIMIT (-56)
399#define PCRE2_ERROR_BADREPESCAPE (-57)
400#define PCRE2_ERROR_REPMISSINGBRACE (-58)
401#define PCRE2_ERROR_BADSUBSTITUTION (-59)
402#define PCRE2_ERROR_BADSUBSPATTERN (-60)
403#define PCRE2_ERROR_TOOMANYREPLACE (-61)
404#define PCRE2_ERROR_BADSERIALIZEDDATA (-62)
405#define PCRE2_ERROR_HEAPLIMIT (-63)
406#define PCRE2_ERROR_CONVERT_SYNTAX (-64)
407#define PCRE2_ERROR_INTERNAL_DUPMATCH (-65)
408#define PCRE2_ERROR_DFA_UINVALID_UTF (-66)
409#define PCRE2_ERROR_INVALIDOFFSET (-67)
414#define PCRE2_INFO_ALLOPTIONS 0
415#define PCRE2_INFO_ARGOPTIONS 1
416#define PCRE2_INFO_BACKREFMAX 2
417#define PCRE2_INFO_BSR 3
418#define PCRE2_INFO_CAPTURECOUNT 4
419#define PCRE2_INFO_FIRSTCODEUNIT 5
420#define PCRE2_INFO_FIRSTCODETYPE 6
421#define PCRE2_INFO_FIRSTBITMAP 7
422#define PCRE2_INFO_HASCRORLF 8
423#define PCRE2_INFO_JCHANGED 9
424#define PCRE2_INFO_JITSIZE 10
425#define PCRE2_INFO_LASTCODEUNIT 11
426#define PCRE2_INFO_LASTCODETYPE 12
427#define PCRE2_INFO_MATCHEMPTY 13
428#define PCRE2_INFO_MATCHLIMIT 14
429#define PCRE2_INFO_MAXLOOKBEHIND 15
430#define PCRE2_INFO_MINLENGTH 16
431#define PCRE2_INFO_NAMECOUNT 17
432#define PCRE2_INFO_NAMEENTRYSIZE 18
433#define PCRE2_INFO_NAMETABLE 19
434#define PCRE2_INFO_NEWLINE 20
435#define PCRE2_INFO_DEPTHLIMIT 21
436#define PCRE2_INFO_RECURSIONLIMIT 21
437#define PCRE2_INFO_SIZE 22
438#define PCRE2_INFO_HASBACKSLASHC 23
439#define PCRE2_INFO_FRAMESIZE 24
440#define PCRE2_INFO_HEAPLIMIT 25
441#define PCRE2_INFO_EXTRAOPTIONS 26
445#define PCRE2_CONFIG_BSR 0
446#define PCRE2_CONFIG_JIT 1
447#define PCRE2_CONFIG_JITTARGET 2
448#define PCRE2_CONFIG_LINKSIZE 3
449#define PCRE2_CONFIG_MATCHLIMIT 4
450#define PCRE2_CONFIG_NEWLINE 5
451#define PCRE2_CONFIG_PARENSLIMIT 6
452#define PCRE2_CONFIG_DEPTHLIMIT 7
453#define PCRE2_CONFIG_RECURSIONLIMIT 7
454#define PCRE2_CONFIG_STACKRECURSE 8
455#define PCRE2_CONFIG_UNICODE 9
456#define PCRE2_CONFIG_UNICODE_VERSION 10
457#define PCRE2_CONFIG_VERSION 11
458#define PCRE2_CONFIG_HEAPLIMIT 12
459#define PCRE2_CONFIG_NEVER_BACKSLASH_C 13
460#define PCRE2_CONFIG_COMPILED_WIDTHS 14
461#define PCRE2_CONFIG_TABLES_LENGTH 15
479#define PCRE2_SIZE size_t
480#define PCRE2_SIZE_MAX SIZE_MAX
481#define PCRE2_ZERO_TERMINATED (~(PCRE2_SIZE)0)
482#define PCRE2_UNSET (~(PCRE2_SIZE)0)
487#define PCRE2_TYPES_LIST \
488struct pcre2_real_general_context; \
489typedef struct pcre2_real_general_context pcre2_general_context; \
491struct pcre2_real_compile_context; \
492typedef struct pcre2_real_compile_context pcre2_compile_context; \
494struct pcre2_real_match_context; \
495typedef struct pcre2_real_match_context pcre2_match_context; \
497struct pcre2_real_convert_context; \
498typedef struct pcre2_real_convert_context pcre2_convert_context; \
500struct pcre2_real_code; \
501typedef struct pcre2_real_code pcre2_code; \
503struct pcre2_real_match_data; \
504typedef struct pcre2_real_match_data pcre2_match_data; \
506struct pcre2_real_jit_stack; \
507typedef struct pcre2_real_jit_stack pcre2_jit_stack; \
509typedef pcre2_jit_stack *(*pcre2_jit_callback)(void *);
520#define PCRE2_CALLOUT_STARTMATCH 0x00000001u
521#define PCRE2_CALLOUT_BACKTRACK 0x00000002u
523#define PCRE2_STRUCTURE_LIST \
524typedef struct pcre2_callout_block { \
527 uint32_t callout_number; \
528 uint32_t capture_top; \
529 uint32_t capture_last; \
530 PCRE2_SIZE *offset_vector; \
532 PCRE2_SPTR subject; \
533 PCRE2_SIZE subject_length; \
534 PCRE2_SIZE start_match; \
535 PCRE2_SIZE current_position; \
536 PCRE2_SIZE pattern_position; \
537 PCRE2_SIZE next_item_length; \
539 PCRE2_SIZE callout_string_offset; \
540 PCRE2_SIZE callout_string_length; \
541 PCRE2_SPTR callout_string; \
543 uint32_t callout_flags; \
545} pcre2_callout_block; \
547typedef struct pcre2_callout_enumerate_block { \
550 PCRE2_SIZE pattern_position; \
551 PCRE2_SIZE next_item_length; \
552 uint32_t callout_number; \
553 PCRE2_SIZE callout_string_offset; \
554 PCRE2_SIZE callout_string_length; \
555 PCRE2_SPTR callout_string; \
557} pcre2_callout_enumerate_block; \
559typedef struct pcre2_substitute_callout_block { \
564 PCRE2_SIZE output_offsets[2]; \
565 PCRE2_SIZE *ovector; \
566 uint32_t oveccount; \
567 uint32_t subscount; \
569} pcre2_substitute_callout_block;
576#define PCRE2_GENERAL_INFO_FUNCTIONS \
577PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION pcre2_config(uint32_t, void *);
582#define PCRE2_GENERAL_CONTEXT_FUNCTIONS \
583PCRE2_EXP_DECL pcre2_general_context *PCRE2_CALL_CONVENTION \
584 pcre2_general_context_copy(pcre2_general_context *); \
585PCRE2_EXP_DECL pcre2_general_context *PCRE2_CALL_CONVENTION \
586 pcre2_general_context_create(void *(*)(size_t, void *), \
587 void (*)(void *, void *), void *); \
588PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
589 pcre2_general_context_free(pcre2_general_context *);
591#define PCRE2_COMPILE_CONTEXT_FUNCTIONS \
592PCRE2_EXP_DECL pcre2_compile_context *PCRE2_CALL_CONVENTION \
593 pcre2_compile_context_copy(pcre2_compile_context *); \
594PCRE2_EXP_DECL pcre2_compile_context *PCRE2_CALL_CONVENTION \
595 pcre2_compile_context_create(pcre2_general_context *);\
596PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
597 pcre2_compile_context_free(pcre2_compile_context *); \
598PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
599 pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
600PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
601 pcre2_set_character_tables(pcre2_compile_context *, const uint8_t *); \
602PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
603 pcre2_set_compile_extra_options(pcre2_compile_context *, uint32_t); \
604PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
605 pcre2_set_max_pattern_length(pcre2_compile_context *, PCRE2_SIZE); \
606PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
607 pcre2_set_max_pattern_compiled_length(pcre2_compile_context *, PCRE2_SIZE); \
608PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
609 pcre2_set_max_varlookbehind(pcre2_compile_context *, uint32_t); \
610PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
611 pcre2_set_newline(pcre2_compile_context *, uint32_t); \
612PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
613 pcre2_set_parens_nest_limit(pcre2_compile_context *, uint32_t); \
614PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
615 pcre2_set_compile_recursion_guard(pcre2_compile_context *, \
616 int (*)(uint32_t, void *), void *);
618#define PCRE2_MATCH_CONTEXT_FUNCTIONS \
619PCRE2_EXP_DECL pcre2_match_context *PCRE2_CALL_CONVENTION \
620 pcre2_match_context_copy(pcre2_match_context *); \
621PCRE2_EXP_DECL pcre2_match_context *PCRE2_CALL_CONVENTION \
622 pcre2_match_context_create(pcre2_general_context *); \
623PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
624 pcre2_match_context_free(pcre2_match_context *); \
625PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
626 pcre2_set_callout(pcre2_match_context *, \
627 int (*)(pcre2_callout_block *, void *), void *); \
628PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
629 pcre2_set_substitute_callout(pcre2_match_context *, \
630 int (*)(pcre2_substitute_callout_block *, void *), void *); \
631PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
632 pcre2_set_depth_limit(pcre2_match_context *, uint32_t); \
633PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
634 pcre2_set_heap_limit(pcre2_match_context *, uint32_t); \
635PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
636 pcre2_set_match_limit(pcre2_match_context *, uint32_t); \
637PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
638 pcre2_set_offset_limit(pcre2_match_context *, PCRE2_SIZE); \
639PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
640 pcre2_set_recursion_limit(pcre2_match_context *, uint32_t); \
641PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
642 pcre2_set_recursion_memory_management(pcre2_match_context *, \
643 void *(*)(size_t, void *), void (*)(void *, void *), void *);
645#define PCRE2_CONVERT_CONTEXT_FUNCTIONS \
646PCRE2_EXP_DECL pcre2_convert_context *PCRE2_CALL_CONVENTION \
647 pcre2_convert_context_copy(pcre2_convert_context *); \
648PCRE2_EXP_DECL pcre2_convert_context *PCRE2_CALL_CONVENTION \
649 pcre2_convert_context_create(pcre2_general_context *); \
650PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
651 pcre2_convert_context_free(pcre2_convert_context *); \
652PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
653 pcre2_set_glob_escape(pcre2_convert_context *, uint32_t); \
654PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
655 pcre2_set_glob_separator(pcre2_convert_context *, uint32_t);
660#define PCRE2_COMPILE_FUNCTIONS \
661PCRE2_EXP_DECL pcre2_code *PCRE2_CALL_CONVENTION \
662 pcre2_compile(PCRE2_SPTR, PCRE2_SIZE, uint32_t, int *, PCRE2_SIZE *, \
663 pcre2_compile_context *); \
664PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
665 pcre2_code_free(pcre2_code *); \
666PCRE2_EXP_DECL pcre2_code *PCRE2_CALL_CONVENTION \
667 pcre2_code_copy(const pcre2_code *); \
668PCRE2_EXP_DECL pcre2_code *PCRE2_CALL_CONVENTION \
669 pcre2_code_copy_with_tables(const pcre2_code *);
674#define PCRE2_PATTERN_INFO_FUNCTIONS \
675PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
676 pcre2_pattern_info(const pcre2_code *, uint32_t, void *); \
677PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
678 pcre2_callout_enumerate(const pcre2_code *, \
679 int (*)(pcre2_callout_enumerate_block *, void *), void *);
684#define PCRE2_MATCH_FUNCTIONS \
685PCRE2_EXP_DECL pcre2_match_data *PCRE2_CALL_CONVENTION \
686 pcre2_match_data_create(uint32_t, pcre2_general_context *); \
687PCRE2_EXP_DECL pcre2_match_data *PCRE2_CALL_CONVENTION \
688 pcre2_match_data_create_from_pattern(const pcre2_code *, \
689 pcre2_general_context *); \
690PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
691 pcre2_dfa_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
692 uint32_t, pcre2_match_data *, pcre2_match_context *, int *, PCRE2_SIZE); \
693PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
694 pcre2_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
695 uint32_t, pcre2_match_data *, pcre2_match_context *); \
696PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
697 pcre2_match_data_free(pcre2_match_data *); \
698PCRE2_EXP_DECL PCRE2_SPTR PCRE2_CALL_CONVENTION \
699 pcre2_get_mark(pcre2_match_data *); \
700PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
701 pcre2_get_match_data_size(pcre2_match_data *); \
702PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
703 pcre2_get_match_data_heapframes_size(pcre2_match_data *); \
704PCRE2_EXP_DECL uint32_t PCRE2_CALL_CONVENTION \
705 pcre2_get_ovector_count(pcre2_match_data *); \
706PCRE2_EXP_DECL PCRE2_SIZE *PCRE2_CALL_CONVENTION \
707 pcre2_get_ovector_pointer(pcre2_match_data *); \
708PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
709 pcre2_get_startchar(pcre2_match_data *);
714#define PCRE2_SUBSTRING_FUNCTIONS \
715PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
716 pcre2_substring_copy_byname(pcre2_match_data *, PCRE2_SPTR, PCRE2_UCHAR *, \
718PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
719 pcre2_substring_copy_bynumber(pcre2_match_data *, uint32_t, PCRE2_UCHAR *, \
721PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
722 pcre2_substring_free(PCRE2_UCHAR *); \
723PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
724 pcre2_substring_get_byname(pcre2_match_data *, PCRE2_SPTR, PCRE2_UCHAR **, \
726PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
727 pcre2_substring_get_bynumber(pcre2_match_data *, uint32_t, PCRE2_UCHAR **, \
729PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
730 pcre2_substring_length_byname(pcre2_match_data *, PCRE2_SPTR, PCRE2_SIZE *); \
731PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
732 pcre2_substring_length_bynumber(pcre2_match_data *, uint32_t, PCRE2_SIZE *); \
733PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
734 pcre2_substring_nametable_scan(const pcre2_code *, PCRE2_SPTR, PCRE2_SPTR *, \
736PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
737 pcre2_substring_number_from_name(const pcre2_code *, PCRE2_SPTR); \
738PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
739 pcre2_substring_list_free(PCRE2_UCHAR **); \
740PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
741 pcre2_substring_list_get(pcre2_match_data *, PCRE2_UCHAR ***, PCRE2_SIZE **);
745#define PCRE2_SERIALIZE_FUNCTIONS \
746PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION \
747 pcre2_serialize_encode(const pcre2_code **, int32_t, uint8_t **, \
748 PCRE2_SIZE *, pcre2_general_context *); \
749PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION \
750 pcre2_serialize_decode(pcre2_code **, int32_t, const uint8_t *, \
751 pcre2_general_context *); \
752PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION \
753 pcre2_serialize_get_number_of_codes(const uint8_t *); \
754PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
755 pcre2_serialize_free(uint8_t *);
760#define PCRE2_SUBSTITUTE_FUNCTION \
761PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
762 pcre2_substitute(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
763 uint32_t, pcre2_match_data *, pcre2_match_context *, PCRE2_SPTR, \
764 PCRE2_SIZE, PCRE2_UCHAR *, PCRE2_SIZE *);
769#define PCRE2_CONVERT_FUNCTIONS \
770PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
771 pcre2_pattern_convert(PCRE2_SPTR, PCRE2_SIZE, uint32_t, PCRE2_UCHAR **, \
772 PCRE2_SIZE *, pcre2_convert_context *); \
773PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
774 pcre2_converted_pattern_free(PCRE2_UCHAR *);
779#define PCRE2_JIT_FUNCTIONS \
780PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
781 pcre2_jit_compile(pcre2_code *, uint32_t); \
782PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
783 pcre2_jit_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \
784 uint32_t, pcre2_match_data *, pcre2_match_context *); \
785PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
786 pcre2_jit_free_unused_memory(pcre2_general_context *); \
787PCRE2_EXP_DECL pcre2_jit_stack *PCRE2_CALL_CONVENTION \
788 pcre2_jit_stack_create(size_t, size_t, pcre2_general_context *); \
789PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
790 pcre2_jit_stack_assign(pcre2_match_context *, pcre2_jit_callback, void *); \
791PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
792 pcre2_jit_stack_free(pcre2_jit_stack *);
797#define PCRE2_OTHER_FUNCTIONS \
798PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
799 pcre2_get_error_message(int, PCRE2_UCHAR *, PCRE2_SIZE); \
800PCRE2_EXP_DECL const uint8_t *PCRE2_CALL_CONVENTION \
801 pcre2_maketables(pcre2_general_context *); \
802PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
803 pcre2_maketables_free(pcre2_general_context *, const uint8_t *);
812#define PCRE2_JOIN(a,b) a ## b
813#define PCRE2_GLUE(a,b) PCRE2_JOIN(a,b)
814#define PCRE2_SUFFIX(a) PCRE2_GLUE(a,PCRE2_LOCAL_WIDTH)
819#define PCRE2_UCHAR PCRE2_SUFFIX(PCRE2_UCHAR)
820#define PCRE2_SPTR PCRE2_SUFFIX(PCRE2_SPTR)
822#define pcre2_code PCRE2_SUFFIX(pcre2_code_)
823#define pcre2_jit_callback PCRE2_SUFFIX(pcre2_jit_callback_)
824#define pcre2_jit_stack PCRE2_SUFFIX(pcre2_jit_stack_)
826#define pcre2_real_code PCRE2_SUFFIX(pcre2_real_code_)
827#define pcre2_real_general_context PCRE2_SUFFIX(pcre2_real_general_context_)
828#define pcre2_real_compile_context PCRE2_SUFFIX(pcre2_real_compile_context_)
829#define pcre2_real_convert_context PCRE2_SUFFIX(pcre2_real_convert_context_)
830#define pcre2_real_match_context PCRE2_SUFFIX(pcre2_real_match_context_)
831#define pcre2_real_jit_stack PCRE2_SUFFIX(pcre2_real_jit_stack_)
832#define pcre2_real_match_data PCRE2_SUFFIX(pcre2_real_match_data_)
837#define pcre2_callout_block PCRE2_SUFFIX(pcre2_callout_block_)
838#define pcre2_callout_enumerate_block PCRE2_SUFFIX(pcre2_callout_enumerate_block_)
839#define pcre2_substitute_callout_block PCRE2_SUFFIX(pcre2_substitute_callout_block_)
840#define pcre2_general_context PCRE2_SUFFIX(pcre2_general_context_)
841#define pcre2_compile_context PCRE2_SUFFIX(pcre2_compile_context_)
842#define pcre2_convert_context PCRE2_SUFFIX(pcre2_convert_context_)
843#define pcre2_match_context PCRE2_SUFFIX(pcre2_match_context_)
844#define pcre2_match_data PCRE2_SUFFIX(pcre2_match_data_)
849#define pcre2_callout_enumerate PCRE2_SUFFIX(pcre2_callout_enumerate_)
850#define pcre2_code_copy PCRE2_SUFFIX(pcre2_code_copy_)
851#define pcre2_code_copy_with_tables PCRE2_SUFFIX(pcre2_code_copy_with_tables_)
852#define pcre2_code_free PCRE2_SUFFIX(pcre2_code_free_)
853#define pcre2_compile PCRE2_SUFFIX(pcre2_compile_)
854#define pcre2_compile_context_copy PCRE2_SUFFIX(pcre2_compile_context_copy_)
855#define pcre2_compile_context_create PCRE2_SUFFIX(pcre2_compile_context_create_)
856#define pcre2_compile_context_free PCRE2_SUFFIX(pcre2_compile_context_free_)
857#define pcre2_config PCRE2_SUFFIX(pcre2_config_)
858#define pcre2_convert_context_copy PCRE2_SUFFIX(pcre2_convert_context_copy_)
859#define pcre2_convert_context_create PCRE2_SUFFIX(pcre2_convert_context_create_)
860#define pcre2_convert_context_free PCRE2_SUFFIX(pcre2_convert_context_free_)
861#define pcre2_converted_pattern_free PCRE2_SUFFIX(pcre2_converted_pattern_free_)
862#define pcre2_dfa_match PCRE2_SUFFIX(pcre2_dfa_match_)
863#define pcre2_general_context_copy PCRE2_SUFFIX(pcre2_general_context_copy_)
864#define pcre2_general_context_create PCRE2_SUFFIX(pcre2_general_context_create_)
865#define pcre2_general_context_free PCRE2_SUFFIX(pcre2_general_context_free_)
866#define pcre2_get_error_message PCRE2_SUFFIX(pcre2_get_error_message_)
867#define pcre2_get_mark PCRE2_SUFFIX(pcre2_get_mark_)
868#define pcre2_get_match_data_heapframes_size PCRE2_SUFFIX(pcre2_get_match_data_heapframes_size_)
869#define pcre2_get_match_data_size PCRE2_SUFFIX(pcre2_get_match_data_size_)
870#define pcre2_get_ovector_pointer PCRE2_SUFFIX(pcre2_get_ovector_pointer_)
871#define pcre2_get_ovector_count PCRE2_SUFFIX(pcre2_get_ovector_count_)
872#define pcre2_get_startchar PCRE2_SUFFIX(pcre2_get_startchar_)
873#define pcre2_jit_compile PCRE2_SUFFIX(pcre2_jit_compile_)
874#define pcre2_jit_match PCRE2_SUFFIX(pcre2_jit_match_)
875#define pcre2_jit_free_unused_memory PCRE2_SUFFIX(pcre2_jit_free_unused_memory_)
876#define pcre2_jit_stack_assign PCRE2_SUFFIX(pcre2_jit_stack_assign_)
877#define pcre2_jit_stack_create PCRE2_SUFFIX(pcre2_jit_stack_create_)
878#define pcre2_jit_stack_free PCRE2_SUFFIX(pcre2_jit_stack_free_)
879#define pcre2_maketables PCRE2_SUFFIX(pcre2_maketables_)
880#define pcre2_maketables_free PCRE2_SUFFIX(pcre2_maketables_free_)
881#define pcre2_match PCRE2_SUFFIX(pcre2_match_)
882#define pcre2_match_context_copy PCRE2_SUFFIX(pcre2_match_context_copy_)
883#define pcre2_match_context_create PCRE2_SUFFIX(pcre2_match_context_create_)
884#define pcre2_match_context_free PCRE2_SUFFIX(pcre2_match_context_free_)
885#define pcre2_match_data_create PCRE2_SUFFIX(pcre2_match_data_create_)
886#define pcre2_match_data_create_from_pattern PCRE2_SUFFIX(pcre2_match_data_create_from_pattern_)
887#define pcre2_match_data_free PCRE2_SUFFIX(pcre2_match_data_free_)
888#define pcre2_pattern_convert PCRE2_SUFFIX(pcre2_pattern_convert_)
889#define pcre2_pattern_info PCRE2_SUFFIX(pcre2_pattern_info_)
890#define pcre2_serialize_decode PCRE2_SUFFIX(pcre2_serialize_decode_)
891#define pcre2_serialize_encode PCRE2_SUFFIX(pcre2_serialize_encode_)
892#define pcre2_serialize_free PCRE2_SUFFIX(pcre2_serialize_free_)
893#define pcre2_serialize_get_number_of_codes PCRE2_SUFFIX(pcre2_serialize_get_number_of_codes_)
894#define pcre2_set_bsr PCRE2_SUFFIX(pcre2_set_bsr_)
895#define pcre2_set_callout PCRE2_SUFFIX(pcre2_set_callout_)
896#define pcre2_set_character_tables PCRE2_SUFFIX(pcre2_set_character_tables_)
897#define pcre2_set_compile_extra_options PCRE2_SUFFIX(pcre2_set_compile_extra_options_)
898#define pcre2_set_compile_recursion_guard PCRE2_SUFFIX(pcre2_set_compile_recursion_guard_)
899#define pcre2_set_depth_limit PCRE2_SUFFIX(pcre2_set_depth_limit_)
900#define pcre2_set_glob_escape PCRE2_SUFFIX(pcre2_set_glob_escape_)
901#define pcre2_set_glob_separator PCRE2_SUFFIX(pcre2_set_glob_separator_)
902#define pcre2_set_heap_limit PCRE2_SUFFIX(pcre2_set_heap_limit_)
903#define pcre2_set_match_limit PCRE2_SUFFIX(pcre2_set_match_limit_)
904#define pcre2_set_max_varlookbehind PCRE2_SUFFIX(pcre2_set_max_varlookbehind_)
905#define pcre2_set_max_pattern_length PCRE2_SUFFIX(pcre2_set_max_pattern_length_)
906#define pcre2_set_max_pattern_compiled_length PCRE2_SUFFIX(pcre2_set_max_pattern_compiled_length_)
907#define pcre2_set_newline PCRE2_SUFFIX(pcre2_set_newline_)
908#define pcre2_set_parens_nest_limit PCRE2_SUFFIX(pcre2_set_parens_nest_limit_)
909#define pcre2_set_offset_limit PCRE2_SUFFIX(pcre2_set_offset_limit_)
910#define pcre2_set_substitute_callout PCRE2_SUFFIX(pcre2_set_substitute_callout_)
911#define pcre2_substitute PCRE2_SUFFIX(pcre2_substitute_)
912#define pcre2_substring_copy_byname PCRE2_SUFFIX(pcre2_substring_copy_byname_)
913#define pcre2_substring_copy_bynumber PCRE2_SUFFIX(pcre2_substring_copy_bynumber_)
914#define pcre2_substring_free PCRE2_SUFFIX(pcre2_substring_free_)
915#define pcre2_substring_get_byname PCRE2_SUFFIX(pcre2_substring_get_byname_)
916#define pcre2_substring_get_bynumber PCRE2_SUFFIX(pcre2_substring_get_bynumber_)
917#define pcre2_substring_length_byname PCRE2_SUFFIX(pcre2_substring_length_byname_)
918#define pcre2_substring_length_bynumber PCRE2_SUFFIX(pcre2_substring_length_bynumber_)
919#define pcre2_substring_list_get PCRE2_SUFFIX(pcre2_substring_list_get_)
920#define pcre2_substring_list_free PCRE2_SUFFIX(pcre2_substring_list_free_)
921#define pcre2_substring_nametable_scan PCRE2_SUFFIX(pcre2_substring_nametable_scan_)
922#define pcre2_substring_number_from_name PCRE2_SUFFIX(pcre2_substring_number_from_name_)
925#define pcre2_set_recursion_limit PCRE2_SUFFIX(pcre2_set_recursion_limit_)
928#define pcre2_set_recursion_memory_management PCRE2_SUFFIX(pcre2_set_recursion_memory_management_)
933#define PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS \
935PCRE2_STRUCTURE_LIST \
936PCRE2_GENERAL_INFO_FUNCTIONS \
937PCRE2_GENERAL_CONTEXT_FUNCTIONS \
938PCRE2_COMPILE_CONTEXT_FUNCTIONS \
939PCRE2_CONVERT_CONTEXT_FUNCTIONS \
940PCRE2_CONVERT_FUNCTIONS \
941PCRE2_MATCH_CONTEXT_FUNCTIONS \
942PCRE2_COMPILE_FUNCTIONS \
943PCRE2_PATTERN_INFO_FUNCTIONS \
944PCRE2_MATCH_FUNCTIONS \
945PCRE2_SUBSTRING_FUNCTIONS \
946PCRE2_SERIALIZE_FUNCTIONS \
947PCRE2_SUBSTITUTE_FUNCTION \
951#define PCRE2_LOCAL_WIDTH 8
953#undef PCRE2_LOCAL_WIDTH
955#define PCRE2_LOCAL_WIDTH 16
957#undef PCRE2_LOCAL_WIDTH
959#define PCRE2_LOCAL_WIDTH 32
961#undef PCRE2_LOCAL_WIDTH
965#undef PCRE2_TYPES_LIST
966#undef PCRE2_STRUCTURE_LIST
967#undef PCRE2_GENERAL_INFO_FUNCTIONS
968#undef PCRE2_GENERAL_CONTEXT_FUNCTIONS
969#undef PCRE2_COMPILE_CONTEXT_FUNCTIONS
970#undef PCRE2_CONVERT_CONTEXT_FUNCTIONS
971#undef PCRE2_MATCH_CONTEXT_FUNCTIONS
972#undef PCRE2_COMPILE_FUNCTIONS
973#undef PCRE2_PATTERN_INFO_FUNCTIONS
974#undef PCRE2_MATCH_FUNCTIONS
975#undef PCRE2_SUBSTRING_FUNCTIONS
976#undef PCRE2_SERIALIZE_FUNCTIONS
977#undef PCRE2_SUBSTITUTE_FUNCTION
978#undef PCRE2_JIT_FUNCTIONS
979#undef PCRE2_OTHER_FUNCTIONS
980#undef PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
987#ifndef PCRE2_CODE_UNIT_WIDTH
988#error PCRE2_CODE_UNIT_WIDTH must be defined before including pcre2.h.
989#error Use 8, 16, or 32; or 0 for a multi-width application.
991#if PCRE2_CODE_UNIT_WIDTH == 8 || \
992 PCRE2_CODE_UNIT_WIDTH == 16 || \
993 PCRE2_CODE_UNIT_WIDTH == 32
994#define PCRE2_SUFFIX(a) PCRE2_GLUE(a, PCRE2_CODE_UNIT_WIDTH)
995#elif PCRE2_CODE_UNIT_WIDTH == 0
998#define PCRE2_SUFFIX(a) a
1000#error PCRE2_CODE_UNIT_WIDTH must be 0, 8, 16, or 32.
const PCRE2_UCHAR8 * PCRE2_SPTR8
const PCRE2_UCHAR16 * PCRE2_SPTR16
const PCRE2_UCHAR32 * PCRE2_SPTR32
#define PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS