5
5
/* This is the public header file for the PCRE library, second API, to be
6
6
#included by applications that call PCRE2 functions.
7
7
8
- Copyright (c) 2016-2018 University of Cambridge
8
+ Copyright (c) 2016-2019 University of Cambridge
9
9
10
10
-----------------------------------------------------------------------------
11
11
Redistribution and use in source and binary forms, with or without
@@ -42,9 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
42
42
/* The current PCRE version information. */
43
43
44
44
#define PCRE2_MAJOR 10
45
- #define PCRE2_MINOR 33
45
+ #define PCRE2_MINOR 34
46
46
#define PCRE2_PRERELEASE
47
- #define PCRE2_DATE 2019-04-16
47
+ #define PCRE2_DATE 2019-11-21
48
48
49
49
/* When an application links to a PCRE DLL in Windows, the symbols that are
50
50
imported have to be identified as such. When building PCRE2, the appropriate
@@ -142,6 +142,7 @@ D is inspected during pcre2_dfa_match() execution
142
142
#define PCRE2_USE_OFFSET_LIMIT 0x00800000u /* J M D */
143
143
#define PCRE2_EXTENDED_MORE 0x01000000u /* C */
144
144
#define PCRE2_LITERAL 0x02000000u /* C */
145
+ #define PCRE2_MATCH_INVALID_UTF 0x04000000u /* J M D */
145
146
146
147
/* An additional compile options word is available in the compile context. */
147
148
@@ -305,6 +306,8 @@ pcre2_pattern_convert(). */
305
306
#define PCRE2_ERROR_INVALID_HYPHEN_IN_OPTIONS 194
306
307
#define PCRE2_ERROR_ALPHA_ASSERTION_UNKNOWN 195
307
308
#define PCRE2_ERROR_SCRIPT_RUN_NOT_AVAILABLE 196
309
+ #define PCRE2_ERROR_TOO_MANY_CAPTURES 197
310
+ #define PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED 198
308
311
309
312
310
313
/* "Expected" matching error codes: no match and partial match. */
@@ -390,6 +393,7 @@ released, the numbers must not be changed. */
390
393
#define PCRE2_ERROR_HEAPLIMIT (-63)
391
394
#define PCRE2_ERROR_CONVERT_SYNTAX (-64)
392
395
#define PCRE2_ERROR_INTERNAL_DUPMATCH (-65)
396
+ #define PCRE2_ERROR_DFA_UINVALID_UTF (-66)
393
397
394
398
395
399
/* Request types for pcre2_pattern_info() */
@@ -580,7 +584,7 @@ PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
580
584
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
581
585
pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
582
586
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
583
- pcre2_set_character_tables(pcre2_compile_context *, const unsigned char *); \
587
+ pcre2_set_character_tables(pcre2_compile_context *, const uint8_t *); \
584
588
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
585
589
pcre2_set_compile_extra_options(pcre2_compile_context *, uint32_t); \
586
590
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
@@ -675,6 +679,8 @@ PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
675
679
pcre2_match_data_free(pcre2_match_data *); \
676
680
PCRE2_EXP_DECL PCRE2_SPTR PCRE2_CALL_CONVENTION \
677
681
pcre2_get_mark(pcre2_match_data *); \
682
+ PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
683
+ pcre2_get_match_data_size(pcre2_match_data *); \
678
684
PCRE2_EXP_DECL uint32_t PCRE2_CALL_CONVENTION \
679
685
pcre2_get_ovector_count(pcre2_match_data *); \
680
686
PCRE2_EXP_DECL PCRE2_SIZE PCRE2_CALL_CONVENTION \
@@ -773,7 +779,8 @@ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
773
779
pcre2_get_error_message(int, PCRE2_UCHAR *, PCRE2_SIZE); \
774
780
PCRE2_EXP_DECL const uint8_t PCRE2_CALL_CONVENTION \
775
781
*pcre2_maketables(pcre2_general_context *); \
776
-
782
+ PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
783
+ pcre2_maketables_free(pcre2_general_context *, const uint8_t *);
777
784
778
785
/* Define macros that generate width-specific names from generic versions. The
779
786
three-level macro scheme is necessary to get the macros expanded when we want
@@ -838,6 +845,7 @@ pcre2_compile are called by application code. */
838
845
#define pcre2_general_context_free PCRE2_SUFFIX(pcre2_general_context_free_)
839
846
#define pcre2_get_error_message PCRE2_SUFFIX(pcre2_get_error_message_)
840
847
#define pcre2_get_mark PCRE2_SUFFIX(pcre2_get_mark_)
848
+ #define pcre2_get_match_data_size PCRE2_SUFFIX(pcre2_get_match_data_size_)
841
849
#define pcre2_get_ovector_pointer PCRE2_SUFFIX(pcre2_get_ovector_pointer_)
842
850
#define pcre2_get_ovector_count PCRE2_SUFFIX(pcre2_get_ovector_count_)
843
851
#define pcre2_get_startchar PCRE2_SUFFIX(pcre2_get_startchar_)
@@ -848,6 +856,7 @@ pcre2_compile are called by application code. */
848
856
#define pcre2_jit_stack_create PCRE2_SUFFIX(pcre2_jit_stack_create_)
849
857
#define pcre2_jit_stack_free PCRE2_SUFFIX(pcre2_jit_stack_free_)
850
858
#define pcre2_maketables PCRE2_SUFFIX(pcre2_maketables_)
859
+ #define pcre2_maketables_free PCRE2_SUFFIX(pcre2_maketables_free_)
851
860
#define pcre2_match PCRE2_SUFFIX(pcre2_match_)
852
861
#define pcre2_match_context_copy PCRE2_SUFFIX(pcre2_match_context_copy_)
853
862
#define pcre2_match_context_create PCRE2_SUFFIX(pcre2_match_context_create_)
0 commit comments