2
3
4
5
6
7
8
9
10
11
12
13
16#ifndef _PCRE2CPP_CONFIG_HPP_
17 #define _PCRE2CPP_CONFIG_HPP_
20
21
22
25
26
27
28
32
33
37
38
40 #pragma region VERSION
42
43
44
45 #define PCRE2CPP_VERSION_MAJOR 1
47
48
49
50 #define PCRE2CPP_VERSION_MINOR 3
52
53
54
55 #define PCRE2CPP_VERSION_PATCH 0
58
59
60
61 #define _PCRE2CPP_STRINGIFY_HELPER(x) #x
64
65
66
67 #define _PCRE2CPP_VERSION_TO_STRING(major, minor, patch)
70
71
72
73 #define _PCRE2CPP_VERSION_TO_INT(major, minor, patch) (major * 100
+ minor * 10
+ patch)
76
77
78
79 #define PCRE2CPP_VERSION_STRING
82
83
84
87
88
89
93 #pragma region LAST_UPDATE
95
96
97
98 #define PCRE2CPP_LAST_UPDATE_DAY 19
100
101
102
103 #define PCRE2CPP_LAST_UPDATE_MONTH 05
105
106
107
108 #define PCRE2CPP_LAST_UPDATE_YEAR 2026
111
112
113
114 #define _PCRE2CPP_LAST_UPDATE_DATE_HELPER(day, month, year)
118
119
120
121 #define PCRE2CPP_LAST_UPDATE_DATE
125 #pragma region CXX_VERSIONS
127
128
129
130
133 #define _PCRE2CPP_HAS_CXX17 __cplusplus
>= 201703l
136 #define _PCRE2CPP_HAS_CXX17 _HAS_CXX17
140
141
142
143
144 #ifndef PCRE2CPP_ENABLE_CXX20
145 #define _PCRE2CPP_HAS_CXX20 0
146 #elif !defined(_HAS_CXX20)
148 #define _PCRE2CPP_HAS_CXX20 __cplusplus >= 202002l
151 #define _PCRE2CPP_HAS_CXX20 _HAS_CXX20
156
157
158
159
162
163
164
165
167 #ifdef PCRE2CPP_CHANGE_ASSERTS_TO_EXCEPTIONS
168 #define _PCRE2CPP_HAS_EXCEPTIONS _PCRE2CPP_HAS_CXX17
169 #define _PCRE2CPP_HAS_ASSERTS 0
171 #define _PCRE2CPP_HAS_EXCEPTIONS 0
176 #define _PCRE2CPP_NOEXCEPT
178 #define _PCRE2CPP_NOEXCEPT noexcept
181 #pragma region UTFS_ENABLED
183
184
185
186
189
190
191
192
195
196
197
198
200 #ifdef PCRE2CPP_DISABLE_UTF8
201 #define _PCRE2CPP_HAS_UTF8 0
203 #define _PCRE2CPP_HAS_UTF8 1
206 #ifdef PCRE2CPP_DISABLE_UTF16
207 #define _PCRE2CPP_HAS_UTF16 0
209 #define _PCRE2CPP_HAS_UTF16 1
212 #ifdef PCRE2CPP_DISABLE_UTF32
213 #define _PCRE2CPP_HAS_UTF32 0
215 #define _PCRE2CPP_HAS_UTF32 1
219 #define PCRE2_CODE_UNIT_WIDTH 8
221 #define PCRE2_CODE_UNIT_WIDTH 16
223 #define PCRE2_CODE_UNIT_WIDTH 32
225 #define PCRE2_CODE_UNIT_WIDTH 0
229 #pragma region VERSION_SPECIFIC_VALUES
231
232
233
234
236 #define _PCRE2CPP_CONSTEXPR17 constexpr
238 #define _PCRE2CPP_CONSTEXPR17
242
243
244
245
248
249
250
251
253 #define _PCRE2CPP_CONSTEXPR20 constexpr
254 #define _PCRE2CPP_REQUIRES(condition) requires (condition)
256 #define _PCRE2CPP_CONSTEXPR20
257 #define _PCRE2CPP_REQUIRES(condition)
262
263
264
265
267 #ifdef PCRE2CPP_SHARED_LIBS
268 #define _PCRE2CPP_PCRE2_FUNC_CONSTEXPR17 inline const
270 #define _PCRE2CPP_PCRE2_FUNC_CONSTEXPR17 constexpr
273 #include <mstd/mstd.hpp>
276
277
278
279 #define _PCRE2CPP_MESSAGE(MESSAGE) _MSTD_MESSAGE(MESSAGE)
281
282
283
284 #define _PCRE2CPP_WARNING(MESSAGE) _MSTD_WARNING(MESSAGE)
286
287
288
289 #define _PCRE2CPP_ERROR(MESSAGE) _MSTD_ERROR(MESSAGE)
#define PCRE2CPP_VERSION_PATCH
pcre2cpp version patch number
Definition config.hpp:55
#define PCRE2CPP_LAST_UPDATE_MONTH
pcre2cpp last update month
Definition config.hpp:103
#define PCRE2CPP_LAST_UPDATE_YEAR
pcre2cpp last update year
Definition config.hpp:108
#define PCRE2CPP_VERSION_STRING
pcre2cpp version string
Definition config.hpp:79
#define PCRE2CPP_VERSION_MAJOR
pcre2cpp version major number
Definition config.hpp:45
#define PCRE2CPP_VERSION_MINOR
pcre2cpp version minor number
Definition config.hpp:50
#define PCRE2CPP_LAST_UPDATE_DAY
pcre2cpp last update day
Definition config.hpp:98
#define _PCRE2CPP_LAST_UPDATE_DATE_HELPER(day, month, year)
converts last update date to string
Definition config.hpp:114
#define _PCRE2CPP_STRINGIFY_HELPER(x)
stringify helper
Definition config.hpp:61
#define _PCRE2CPP_HAS_UTF32
check if support for UTF-32 is enabled
Definition config.hpp:215
#define _PCRE2CPP_VERSION_TO_INT(major, minor, patch)
converts version number to int
Definition config.hpp:73
#define _PCRE2CPP_HAS_CXX17
check if compiler has c++ version greater or equal to c++17
Definition config.hpp:133
#define _PCRE2CPP_HAS_UTF8
check if support for UTF-8 is enabled
Definition config.hpp:203
#define _PCRE2CPP_HAS_UTF16
check if support for UTF-16 is enabled
Definition config.hpp:209
#define _PCRE2CPP_VERSION_TO_STRING(major, minor, patch)
converts version numbers to string
Definition config.hpp:67
#define _PCRE2CPP_HAS_CXX20
check if compiler has c++ version greater or equal to c++20 and if user enabled c++20 features using ...
Definition config.hpp:145
#define _PCRE2CPP_HAS_EXCEPTIONS
check if exceptions are enabled
Definition config.hpp:171