Home | History | Annotate | Download | only in dist

Lines Matching refs:DEFINE

47 #define PCRE_INTERNAL_H
49 /* Define PCRE_DEBUG to get debugging output on stdout. */
52 #define PCRE_DEBUG
58 #define COMPILE_PCRE8
65 #define SUPPORT_UTF 1
68 /* We define SUPPORT_UTF if SUPPORT_UTF8 is enabled for compatibility
72 #define SUPPORT_UTF 1
76 Until then we define it if SUPPORT_UTF is defined. */
79 #define SUPPORT_UTF8 1
99 #define DPRINTF(p) printf p
101 #define DPRINTF(p) /* Nothing */
151 # define PCRE_EXP_DECL extern __declspec(dllexport)
152 # define PCRE_EXP_DEFN __declspec(dllexport)
153 # define PCRE_EXP_DATA_DEFN __declspec(dllexport)
155 # define PCRE_EXP_DECL extern
156 # define PCRE_EXP_DEFN
157 # define PCRE_EXP_DATA_DEFN
161 # define PCRE_EXP_DECL extern "C"
163 # define PCRE_EXP_DECL extern
166 # define PCRE_EXP_DEFN PCRE_EXP_DECL
169 # define PCRE_EXP_DATA_DEFN
185 #define PCRE_CALL_CONVENTION
199 #define PCRE_UINT16_MAX USHRT_MAX
200 #define PCRE_INT16_MAX SHRT_MAX
204 #define PCRE_UINT16_MAX UINT_MAX
205 #define PCRE_INT16_MAX INT_MAX
213 #define PCRE_UINT32_MAX UINT_MAX
214 #define PCRE_INT32_MAX INT_MAX
218 #define PCRE_UINT32_MAX ULONG_MAX
219 #define PCRE_INT32_MAX LONG_MAX
228 stdint.h is available, include it; it may define INT64_MAX. Systems that do not
239 #define INT64_OR_DOUBLE int64_t
241 #define INT64_OR_DOUBLE double
264 #define IN_UCHARS(x) (x)
265 #define MAX_255(c) 1
266 #define TABLE_GET(c, table, default) ((table)[c])
277 #define UCHAR_SHIFT (1)
278 #define IN_UCHARS(x) ((x) << UCHAR_SHIFT)
279 #define MAX_255(c) ((c) <= 255u)
280 #define TABLE_GET(c, table, default) (MAX_255(c)? ((table)[c]):(default))
285 #define UCHAR_SHIFT (2)
286 #define IN_UCHARS(x) ((x) << UCHAR_SHIFT)
287 #define MAX_255(c) ((c) <= 255u)
288 #define TABLE_GET(c, table, default) (MAX_255(c)? ((table)[c]):(default))
298 #define NOTACHAR 0xffffffff
306 #define NLTYPE_FIXED 0 /* Newline is a fixed length string */
307 #define NLTYPE_ANY 1 /* Newline is any Unicode line ending */
308 #define NLTYPE_ANYCRLF 2 /* Newline is CR, LF, or CRLF */
312 #define IS_NEWLINE(p) \
326 #define WAS_NEWLINE(p) \
348 #define PCRE_PUCHAR CUSTOM_SUBJECT_PTR
350 #define PCRE_PUCHAR const pcre_uchar *
369 #define strlen(s) _strlen(s)
370 #define strncmp(s1,s2,m) _strncmp(s1,s2,m)
371 #define memcmp(s,c,n) _memcmp(s,c,n)
372 #define memcpy(d,s,n) _memcpy(d,s,n)
373 #define memmove(d,s,n) _memmove(d,s,n)
374 #define memset(s,c,n) _memset(s,c,n)
378 define a macro for memmove() if HAVE_MEMMOVE is false, provided that HAVE_BCOPY
385 #define memmove(a, b, c) bcopy(b, a, c)
406 #define memmove(a, b, c) pcre_memmove(a, b, c)
429 #define PUT(a,n,d) \
433 #define GET(a,n) \
436 #define MAX_PATTERN_SIZE (1 << 16)
441 #define PUT(a,n,d) \
446 #define GET(a,n) \
449 #define MAX_PATTERN_SIZE (1 << 24)
454 #define PUT(a,n,d) \
460 #define GET(a,n) \
464 #define MAX_PATTERN_SIZE (1 << 30)
476 #define LINK_SIZE 1
478 #define PUT(a,n,d) \
481 #define GET(a,n) \
484 #define MAX_PATTERN_SIZE (1 << 16)
490 #define LINK_SIZE 2
492 #define PUT(a,n,d) \
496 #define GET(a,n) \
500 #define MAX_PATTERN_SIZE (1 << 30)
511 #define LINK_SIZE 1
513 #define PUT(a,n,d) \
516 #define GET(a,n) \
520 #define MAX_PATTERN_SIZE (1 << 30)
528 #define PUTINC(a,n,d) PUT(a,n,d), a += LINK_SIZE
537 #define IMM2_SIZE 2
539 #define PUT2(a,n,d) \
547 #define GET2(a,n) \
552 #define IMM2_SIZE 1
554 #define PUT2(a,n,d) \
557 #define GET2(a,n) \
562 #define IMM2_SIZE 1
564 #define PUT2(a,n,d) \
567 #define GET2(a,n) \
574 #define PUT2INC(a,n,d) PUT2(a,n,d), a += IMM2_SIZE
580 #define MAX_MARK ((1u << 16) - 1)
582 #define MAX_MARK ((1u << 8) - 1)
595 #define UCHAR21(eptr) (*(eptr))
596 #define UCHAR21TEST(eptr) (*(eptr))
597 #define UCHAR21INC(eptr) (*(eptr)++)
598 #define UCHAR21INCTEST(eptr) (*(eptr)++)
605 UTF support is omitted, we don't even define them. */
609 /* #define MAX_VALUE_FOR_SINGLE_CHAR */
610 /* #define HAS_EXTRALEN(c) */
611 /* #define GET_EXTRALEN(c) */
612 /* #define NOT_FIRSTCHAR(c) */
613 #define GETCHAR(c, eptr) c = *eptr;
614 #define GETCHARTEST(c, eptr) c = *eptr;
615 #define GETCHARINC(c, eptr) c = *eptr++;
616 #define GETCHARINCTEST(c, eptr) c = *eptr++;
617 #define GETCHARLEN(c, eptr, len) c = *eptr;
618 /* #define GETCHARLENTEST(c, eptr, len) */
619 /* #define BACKCHAR(eptr) */
620 /* #define FORWARDCHAR(eptr) */
621 /* #define ACROSSCHAR(condition, eptr, action) */
627 #define HASUTF8EXTRALEN(c) ((c) >= 0xc0)
632 #define GETUTF8(c, eptr) \
654 #define GETUTF8INC(c, eptr) \
694 #define MAX_VALUE_FOR_SINGLE_CHAR 127
698 #define HAS_EXTRALEN(c) ((c) >= 0xc0)
703 #define GET_EXTRALEN(c) (PRIV(utf8_table4)[(c) & 0x3f])
708 #define NOT_FIRSTCHAR(c) (((c) & 0xc0) == 0x80)
713 #define GETCHAR(c, eptr) \
720 #define GETCHARTEST(c, eptr) \
727 #define GETCHARINC(c, eptr) \
734 #define GETCHARINCTEST(c, eptr) \
741 #define GETUTF8LEN(c, eptr, len) \
778 #define GETCHARLEN(c, eptr, len) \
786 #define GETCHARLENTEST(c, eptr, len) \
794 #define BACKCHAR(eptr) while((*eptr & 0xc0) == 0x80) eptr--
797 #define FORWARDCHAR(eptr) while((*eptr & 0xc0) == 0x80) eptr++
800 #define ACROSSCHAR(condition, eptr, action) \
807 #define MAX_VALUE_FOR_SINGLE_CHAR 65535
811 #define HAS_EXTRALEN(c) (((c) & 0xfc00) == 0xd800)
816 #define GET_EXTRALEN(c) 1
821 #define NOT_FIRSTCHAR(c) (((c) & 0xfc00) == 0xdc00)
826 #define GETUTF16(c, eptr) \
832 #define GETCHAR(c, eptr) \
839 #define GETCHARTEST(c, eptr) \
846 #define GETUTF16INC(c, eptr) \
852 #define GETCHARINC(c, eptr) \
859 #define GETCHARINCTEST(c, eptr) \
866 #define GETUTF16LEN(c, eptr, len) \
873 #define GETCHARLEN(c, eptr, len) \
881 #define GETCHARLENTEST(c, eptr, len) \
890 #define BACKCHAR(eptr) if ((*eptr & 0xfc00) == 0xdc00) eptr--
893 #define FORWARDCHAR(eptr) if ((*eptr & 0xfc00) == 0xdc00) eptr++
896 #define ACROSSCHAR(condition, eptr, action) \
903 #define MAX_VALUE_FOR_SINGLE_CHAR (0x10ffffu)
904 #define HAS_EXTRALEN(c) (0)
905 #define GET_EXTRALEN(c) (0)
906 #define NOT_FIRSTCHAR(c) (0)
911 #define GETCHAR(c, eptr) \
917 #define GETCHARTEST(c, eptr) \
923 #define GETCHARINC(c, eptr) \
929 #define GETCHARINCTEST(c, eptr) \
936 #define GETCHARLEN(c, eptr, len) \
943 #define GETCHARLENTEST(c, eptr, len) \
952 #define BACKCHAR(eptr) do { } while (0)
955 #define FORWARDCHAR(eptr) do { } while (0)
958 #define ACROSSCHAR(condition, eptr, action) do { } while (0)
975 macros that define the values are here so that all the definitions are
986 #define HSPACE_LIST \
992 #define HSPACE_MULTIBYTE_CASES \
1010 #define HSPACE_BYTE_CASES \
1015 #define HSPACE_CASES \
1019 #define VSPACE_LIST \
1022 #define VSPACE_MULTIBYTE_CASES \
1026 #define VSPACE_BYTE_CASES \
1033 #define VSPACE_CASES \
1040 #define HSPACE_LIST CHAR_HT, CHAR_SPACE
1042 #define HSPACE_BYTE_CASES \
1046 #define HSPACE_CASES HSPACE_BYTE_CASES
1049 #define VSPACE_LIST \
1052 #define VSPACE_LIST \
1056 #define VSPACE_BYTE_CASES \
1063 #define VSPACE_CASES VSPACE_BYTE_CASES
1077 #define PCRE_MODE8 0x00000001 /* compiled in 8 bit mode */
1078 #define PCRE_MODE16 0x00000002 /* compiled in 16 bit mode */
1079 #define PCRE_MODE32 0x00000004 /* compiled in 32 bit mode */
1080 #define PCRE_FIRSTSET 0x00000010 /* first_char is set */
1081 #define PCRE_FCH_CASELESS 0x00000020 /* caseless first char */
1082 #define PCRE_REQCHSET 0x00000040 /* req_byte is set */
1083 #define PCRE_RCH_CASELESS 0x00000080 /* caseless requested char */
1084 #define PCRE_STARTLINE 0x00000100 /* start after \n for multiline */
1085 #define PCRE_NOPARTIAL 0x00000200 /* can't use partial with this regex */
1086 #define PCRE_JCHANGED 0x00000400 /* j option used in regex */
1087 #define PCRE_HASCRORLF 0x00000800 /* explicit \r or \n in pattern */
1088 #define PCRE_HASTHEN 0x00001000 /* pattern contains (*THEN) */
1089 #define PCRE_MLSET 0x00002000 /* match limit set by regex */
1090 #define PCRE_RLSET 0x00004000 /* recursion limit set by regex */
1091 #define PCRE_MATCH_EMPTY 0x00008000 /* pattern can match empty string */
1094 #define PCRE_MODE PCRE_MODE8
1096 #define PCRE_MODE PCRE_MODE16
1098 #define PCRE_MODE PCRE_MODE32
1100 #define PCRE_MODE_MASK (PCRE_MODE8 | PCRE_MODE16 | PCRE_MODE32)
1104 #define PCRE_STUDY_MAPPED 0x0001 /* a map of starting chars exists */
1105 #define PCRE_STUDY_MINLEN 0x0002 /* a minimum length field exists */
1110 #define PCRE_NEWLINE_BITS (PCRE_NEWLINE_CR|PCRE_NEWLINE_LF|PCRE_NEWLINE_ANY| \
1113 #define PUBLIC_COMPILE_OPTIONS \
1121 #define PUBLIC_EXEC_OPTIONS \
1126 #define PUBLIC_DFA_EXEC_OPTIONS \
1132 #define PUBLIC_STUDY_OPTIONS \
1136 #define PUBLIC_JIT_EXEC_OPTIONS \
1142 #define MAGIC_NUMBER 0x50435245UL /* 'PCRE' */
1147 #define REVERSED_MAGIC_NUMBER 0x45524350UL /* 'ERCP' */
1152 #define REQ_BYTE_MAX 1000
1161 #define FALSE 0
1162 #define TRUE 1
1167 which is different from their ASCII/UTF-8 code. Instead we define macros for
1202 #define CHAR_NL '\x15'
1203 #define CHAR_NEL '\x25'
1204 #define STR_NL "\x15"
1205 #define STR_NEL "\x25"
1207 #define CHAR_NL '\x25'
1208 #define CHAR_NEL '\x15'
1209 #define STR_NL "\x25"
1210 #define STR_NEL "\x15"
1213 #define CHAR_LF CHAR_NL
1214 #define STR_LF STR_NL
1216 #define CHAR_ESC '\047'
1217 #define CHAR_DEL '\007'
1218 #define STR_ESC "\047"
1219 #define STR_DEL "\007"
1227 #define CHAR_LF '\n'
1228 #define CHAR_NL CHAR_LF
1229 #define CHAR_NEL ((unsigned char)'\x85')
1230 #define CHAR_ESC '\033'
1231 #define CHAR_DEL '\177'
1233 #define STR_LF "\n"
1234 #define STR_NL STR_LF
1235 #define STR_NEL "\x85"
1236 #define STR_ESC "\033"
1237 #define STR_DEL "\177"
1243 #define CHAR_NULL '\0'
1244 #define CHAR_HT '\t'
1245 #define CHAR_VT '\v'
1246 #define CHAR_FF '\f'
1247 #define CHAR_CR '\r'
1248 #define CHAR_BS '\b'
1249 #define CHAR_BEL '\a'
1251 #define CHAR_SPACE ' '
1252 #define CHAR_EXCLAMATION_MARK '!'
1253 #define CHAR_QUOTATION_MARK '"'
1254 #define CHAR_NUMBER_SIGN '#'
1255 #define CHAR_DOLLAR_SIGN '$'
1256 #define CHAR_PERCENT_SIGN '%'
1257 #define CHAR_AMPERSAND '&'
1258 #define CHAR_APOSTROPHE '\''
1259 #define CHAR_LEFT_PARENTHESIS '('
1260 #define CHAR_RIGHT_PARENTHESIS ')'
1261 #define CHAR_ASTERISK '*'
1262 #define CHAR_PLUS '+'
1263 #define CHAR_COMMA ','
1264 #define CHAR_MINUS '-'
1265 #define CHAR_DOT '.'
1266 #define CHAR_SLASH '/'
1267 #define CHAR_0 '0'
1268 #define CHAR_1 '1'
1269 #define CHAR_2 '2'
1270 #define CHAR_3 '3'
1271 #define CHAR_4 '4'
1272 #define CHAR_5 '5'
1273 #define CHAR_6 '6'
1274 #define CHAR_7 '7'
1275 #define CHAR_8 '8'
1276 #define CHAR_9 '9'
1277 #define CHAR_COLON ':'
1278 #define CHAR_SEMICOLON ';'
1279 #define CHAR_LESS_THAN_SIGN '<'
1280 #define CHAR_EQUALS_SIGN '='
1281 #define CHAR_GREATER_THAN_SIGN '>'
1282 #define CHAR_QUESTION_MARK '?'
1283 #define CHAR_COMMERCIAL_AT '@'
1284 #define CHAR_A 'A'
1285 #define CHAR_B 'B'
1286 #define CHAR_C 'C'
1287 #define CHAR_D 'D'
1288 #define CHAR_E 'E'
1289 #define CHAR_F 'F'
1290 #define CHAR_G 'G'
1291 #define CHAR_H 'H'
1292 #define CHAR_I 'I'
1293 #define CHAR_J 'J'
1294 #define CHAR_K 'K'
1295 #define CHAR_L 'L'
1296 #define CHAR_M 'M'
1297 #define CHAR_N 'N'
1298 #define CHAR_O 'O'
1299 #define CHAR_P 'P'
1300 #define CHAR_Q 'Q'
1301 #define CHAR_R 'R'
1302 #define CHAR_S 'S'
1303 #define CHAR_T 'T'
1304 #define CHAR_U 'U'
1305 #define CHAR_V 'V'
1306 #define CHAR_W 'W'
1307 #define CHAR_X 'X'
1308 #define CHAR_Y 'Y'
1309 #define CHAR_Z 'Z'
1310 #define CHAR_LEFT_SQUARE_BRACKET '['
1311 #define CHAR_BACKSLASH '\\'
1312 #define CHAR_RIGHT_SQUARE_BRACKET ']'
1313 #define CHAR_CIRCUMFLEX_ACCENT '^'
1314 #define CHAR_UNDERSCORE '_'
1315 #define CHAR_GRAVE_ACCENT '`'
1316 #define CHAR_a 'a'
1317 #define CHAR_b 'b'
1318 #define CHAR_c 'c'
1319 #define CHAR_d 'd'
1320 #define CHAR_e 'e'
1321 #define CHAR_f 'f'
1322 #define CHAR_g 'g'
1323 #define CHAR_h 'h'
1324 #define CHAR_i 'i'
1325 #define CHAR_j 'j'
1326 #define CHAR_k 'k'
1327 #define CHAR_l 'l'
1328 #define CHAR_m 'm'
1329 #define CHAR_n 'n'
1330 #define CHAR_o 'o'
1331 #define CHAR_p 'p'
1332 #define CHAR_q 'q'
1333 #define CHAR_r 'r'
1334 #define CHAR_s 's'
1335 #define CHAR_t 't'
1336 #define CHAR_u 'u'
1337 #define CHAR_v 'v'
1338 #define CHAR_w 'w'
1339 #define CHAR_x 'x'
1340 #define CHAR_y 'y'
1341 #define CHAR_z 'z'
1342 #define CHAR_LEFT_CURLY_BRACKET '{'
1343 #define CHAR_VERTICAL_LINE '|'
1344 #define CHAR_RIGHT_CURLY_BRACKET '}'
1345 #define CHAR_TILDE '~'
1347 #define STR_HT "\t"
1348 #define STR_VT "\v"
1349 #define STR_FF "\f"
1350 #define STR_CR "\r"
1351 #define STR_BS "\b"
1352 #define STR_BEL "\a"
1354 #define STR_SPACE " "
1355 #define STR_EXCLAMATION_MARK "!"
1356 #define STR_QUOTATION_MARK "\""
1357 #define STR_NUMBER_SIGN "#"
1358 #define STR_DOLLAR_SIGN "$"
1359 #define STR_PERCENT_SIGN "%"
1360 #define STR_AMPERSAND "&"
1361 #define STR_APOSTROPHE "'"
1362 #define STR_LEFT_PARENTHESIS "("
1363 #define STR_RIGHT_PARENTHESIS ")"
1364 #define STR_ASTERISK "*"
1365 #define STR_PLUS "+"
1366 #define STR_COMMA ","
1367 #define STR_MINUS "-"
1368 #define STR_DOT "."
1369 #define STR_SLASH "/"
1370 #define STR_0 "0"
1371 #define STR_1 "1"
1372 #define STR_2 "2"
1373 #define STR_3 "3"
1374 #define STR_4 "4"
1375 #define STR_5 "5"
1376 #define STR_6 "6"
1377 #define STR_7 "7"
1378 #define STR_8 "8"
1379 #define STR_9 "9"
1380 #define STR_COLON ":"
1381 #define STR_SEMICOLON ";"
1382 #define STR_LESS_THAN_SIGN "<"
1383 #define STR_EQUALS_SIGN "="
1384 #define STR_GREATER_THAN_SIGN ">"
1385 #define STR_QUESTION_MARK "?"
1386 #define STR_COMMERCIAL_AT "@"
1387 #define STR_A "A"
1388 #define STR_B "B"
1389 #define STR_C "C"
1390 #define STR_D "D"
1391 #define STR_E "E"
1392 #define STR_F "F"
1393 #define STR_G "G"
1394 #define STR_H "H"
1395 #define STR_I "I"
1396 #define STR_J "J"
1397 #define STR_K "K"
1398 #define STR_L "L"
1399 #define STR_M "M"
1400 #define STR_N "N"
1401 #define STR_O "O"
1402 #define STR_P "P"
1403 #define STR_Q "Q"
1404 #define STR_R "R"
1405 #define STR_S "S"
1406 #define STR_T "T"
1407 #define STR_U "U"
1408 #define STR_V "V"
1409 #define STR_W "W"
1410 #define STR_X "X"
1411 #define STR_Y "Y"
1412 #define STR_Z "Z"
1413 #define STR_LEFT_SQUARE_BRACKET "["
1414 #define STR_BACKSLASH "\\"
1415 #define STR_RIGHT_SQUARE_BRACKET "]"
1416 #define STR_CIRCUMFLEX_ACCENT "^"
1417 #define STR_UNDERSCORE "_"
1418 #define STR_GRAVE_ACCENT "`"
1419 #define STR_a "a"
1420 #define STR_b "b"
1421 #define STR_c "c"
1422 #define STR_d "d"
1423 #define
1424 #define STR_f "f"
1425 #define STR_g "g"
1426 #define STR_h "h"
1427 #define STR_i "i"
1428 #define STR_j "j"
1429 #define STR_k "k"
1430 #define STR_l "l"
1431 #define STR_m "m"
1432 #define STR_n "n"
1433 #define STR_o "o"
1434 #define STR_p "p"
1435 #define STR_q "q"
1436 #define STR_r "r"
1437 #define STR_s "s"
1438 #define STR_t "t"
1439 #define STR_u "u"
1440 #define STR_v "v"
1441 #define STR_w "w"
1442 #define STR_x "x"
1443 #define STR_y "y"
1444 #define STR_z "z"
1445 #define STR_LEFT_CURLY_BRACKET "{"
1446 #define STR_VERTICAL_LINE "|"
1447 #define STR_RIGHT_CURLY_BRACKET "}"
1448 #define STR_TILDE "~"
1450 #define STRING_ACCEPT0 "ACCEPT\0"
1451 #define STRING_COMMIT0 "COMMIT\0"
1452 #define STRING_F0 "F\0"
1453 #define STRING_FAIL0 "FAIL\0"
1454 #define STRING_MARK0 "MARK\0"
1455 #define STRING_PRUNE0 "PRUNE\0"
1456 #define STRING_SKIP0 "SKIP\0"
1457 #define STRING_THEN "THEN"
1459 #define STRING_alpha0 "alpha\0"
1460 #define STRING_lower0 "lower\0"
1461 #define STRING_upper0 "upper\0"
1462 #define STRING_alnum0 "alnum\0"
1463 #define STRING_ascii0 "ascii\0"
1464 #define STRING_blank0 "blank\0"
1465 #define STRING_cntrl0 "cntrl\0"
1466 #define STRING_digit0 "digit\0"
1467 #define STRING_graph0 "graph\0"
1468 #define STRING_print0 "print\0"
1469 #define STRING_punct0 "punct\0"
1470 #define STRING_space0 "space\0"
1471 #define STRING_word0 "word\0"
1472 #define STRING_xdigit "xdigit"
1474 #define STRING_DEFINE "DEFINE"
1475 #define STRING_WEIRD_STARTWORD "[:<:]]"
1476 #define STRING_WEIRD_ENDWORD "[:>:]]"
1478 #define STRING_CR_RIGHTPAR "CR)"
1479 #define STRING_LF_RIGHTPAR "LF)"
1480 #define STRING_CRLF_RIGHTPAR "CRLF)"
1481 #define STRING_ANY_RIGHTPAR "ANY)"
1482 #define STRING_ANYCRLF_RIGHTPAR "ANYCRLF)"
1483 #define STRING_BSR_ANYCRLF_RIGHTPAR "BSR_ANYCRLF)"
1484 #define STRING_BSR_UNICODE_RIGHTPAR "BSR_UNICODE)"
1485 #define STRING_UTF8_RIGHTPAR "UTF8)"
1486 #define STRING_UTF16_RIGHTPAR "UTF16)"
1487 #define STRING_UTF32_RIGHTPAR "UTF32)"
1488 #define STRING_UTF_RIGHTPAR "UTF)"
1489 #define STRING_UCP_RIGHTPAR "UCP)"
1490 #define STRING_NO_AUTO_POSSESS_RIGHTPAR "NO_AUTO_POSSESS)"
1491 #define STRING_NO_START_OPT_RIGHTPAR "NO_START_OPT)"
1492 #define STRING_LIMIT_MATCH_EQ "LIMIT_MATCH="
1493 #define STRING_LIMIT_RECURSION_EQ "LIMIT_RECURSION="
1501 #define CHAR_HT '\011'
1502 #define CHAR_VT '\013'
1503 #define CHAR_FF '\014'
1504 #define CHAR_CR '\015'
1505 #define CHAR_LF '\012'
1506 #define CHAR_NL CHAR_LF
1507 #define CHAR_NEL ((unsigned char)'\x85')
1508 #define CHAR_BS '\010'
1509 #define CHAR_BEL '\007'
1510 #define CHAR_ESC '\033'
1511 #define CHAR_DEL '\177'
1513 #define CHAR_NULL '\0'
1514 #define CHAR_SPACE '\040'
1515 #define CHAR_EXCLAMATION_MARK '\041'
1516 #define CHAR_QUOTATION_MARK '\042'
1517 #define CHAR_NUMBER_SIGN '\043'
1518 #define CHAR_DOLLAR_SIGN '\044'
1519 #define CHAR_PERCENT_SIGN '\045'
1520 #define CHAR_AMPERSAND '\046'
1521 #define CHAR_APOSTROPHE '\047'
1522 #define CHAR_LEFT_PARENTHESIS '\050'
1523 #define CHAR_RIGHT_PARENTHESIS '\051'
1524 #define CHAR_ASTERISK '\052'
1525 #define CHAR_PLUS '\053'
1526 #define CHAR_COMMA '\054'
1527 #define CHAR_MINUS '\055'
1528 #define CHAR_DOT '\056'
1529 #define CHAR_SLASH '\057'
1530 #define CHAR_0 '\060'
1531 #define CHAR_1 '\061'
1532 #define CHAR_2 '\062'
1533 #define CHAR_3 '\063'
1534 #define CHAR_4 '\064'
1535 #define CHAR_5 '\065'
1536 #define CHAR_6 '\066'
1537 #define CHAR_7 '\067'
1538 #define CHAR_8 '\070'
1539 #define CHAR_9 '\071'
1540 #define CHAR_COLON '\072'
1541 #define CHAR_SEMICOLON '\073'
1542 #define CHAR_LESS_THAN_SIGN '\074'
1543 #define CHAR_EQUALS_SIGN '\075'
1544 #define CHAR_GREATER_THAN_SIGN '\076'
1545 #define CHAR_QUESTION_MARK '\077'
1546 #define CHAR_COMMERCIAL_AT '\100'
1547 #define CHAR_A '\101'
1548 #define CHAR_B '\102'
1549 #define CHAR_C '\103'
1550 #define CHAR_D '\104'
1551 #define CHAR_E '\105'
1552 #define CHAR_F '\106'
1553 #define CHAR_G '\107'
1554 #define CHAR_H '\110'
1555 #define CHAR_I '\111'
1556 #define CHAR_J '\112'
1557 #define CHAR_K '\113'
1558 #define CHAR_L '\114'
1559 #define CHAR_M '\115'
1560 #define CHAR_N '\116'
1561 #define CHAR_O '\117'
1562 #define CHAR_P '\120'
1563 #define CHAR_Q '\121'
1564 #define CHAR_R '\122'
1565 #define CHAR_S '\123'
1566 #define CHAR_T '\124'
1567 #define CHAR_U '\125'
1568 #define CHAR_V '\126'
1569 #define CHAR_W '\127'
1570 #define CHAR_X '\130'
1571 #define CHAR_Y '\131'
1572 #define CHAR_Z '\132'
1573 #define CHAR_LEFT_SQUARE_BRACKET '\133'
1574 #define CHAR_BACKSLASH '\134'
1575 #define CHAR_RIGHT_SQUARE_BRACKET '\135'
1576 #define CHAR_CIRCUMFLEX_ACCENT '\136'
1577 #define CHAR_UNDERSCORE '\137'
1578 #define CHAR_GRAVE_ACCENT '\140'
1579 #define CHAR_a '\141'
1580 #define CHAR_b '\142'
1581 #define CHAR_c '\143'
1582 #define CHAR_d '\144'
1583 #define CHAR_e '\145'
1584 #define CHAR_f '\146'
1585 #define CHAR_g '\147'
1586 #define CHAR_h '\150'
1587 #define CHAR_i '\151'
1588 #define CHAR_j '\152'
1589 #define CHAR_k '\153'
1590 #define CHAR_l '\154'
1591 #define CHAR_m '\155'
1592 #define CHAR_n '\156'
1593 #define CHAR_o '\157'
1594 #define CHAR_p '\160'
1595 #define CHAR_q '\161'
1596 #define CHAR_r '\162'
1597 #define CHAR_s '\163'
1598 #define CHAR_t '\164'
1599 #define CHAR_u '\165'
1600 #define CHAR_v '\166'
1601 #define CHAR_w '\167'
1602 #define CHAR_x '\170'
1603 #define CHAR_y '\171'
1604 #define CHAR_z '\172'
1605 #define CHAR_LEFT_CURLY_BRACKET '\173'
1606 #define CHAR_VERTICAL_LINE '\174'
1607 #define CHAR_RIGHT_CURLY_BRACKET '\175'
1608 #define CHAR_TILDE '\176'
1610 #define STR_HT "\011"
1611 #define STR_VT "\013"
1612 #define STR_FF "\014"
1613 #define STR_CR "\015"
1614 #define STR_NL "\012"
1615 #define STR_BS "\010"
1616 #define STR_BEL "\007"
1617 #define STR_ESC "\033"
1618 #define STR_DEL "\177"
1620 #define STR_SPACE "\040"
1621 #define STR_EXCLAMATION_MARK "\041"
1622 #define STR_QUOTATION_MARK "\042"
1623 #define STR_NUMBER_SIGN "\043"
1624 #define STR_DOLLAR_SIGN "\044"
1625 #define STR_PERCENT_SIGN "\045"
1626 #define STR_AMPERSAND "\046"
1627 #define STR_APOSTROPHE "\047"
1628 #define STR_LEFT_PARENTHESIS "\050"
1629 #define STR_RIGHT_PARENTHESIS "\051"
1630 #define STR_ASTERISK "\052"
1631 #define STR_PLUS "\053"
1632 #define STR_COMMA "\054"
1633 #define STR_MINUS "\055"
1634 #define STR_DOT "\056"
1635 #define STR_SLASH "\057"
1636 #define STR_0 "\060"
1637 #define STR_1 "\061"
1638 #define STR_2 "\062"
1639 #define STR_3 "\063"
1640 #define STR_4 "\064"
1641 #define STR_5 "\065"
1642 #define STR_6 "\066"
1643 #define STR_7 "\067"
1644 #define STR_8 "\070"
1645 #define STR_9 "\071"
1646 #define STR_COLON "\072"
1647 #define STR_SEMICOLON "\073"
1648 #define STR_LESS_THAN_SIGN "\074"
1649 #define STR_EQUALS_SIGN "\075"
1650 #define STR_GREATER_THAN_SIGN "\076"
1651 #define STR_QUESTION_MARK "\077"
1652 #define STR_COMMERCIAL_AT "\100"
1653 #define STR_A "\101"
1654 #define STR_B "\102"
1655 #define STR_C "\103"
1656 #define STR_D "\104"
1657 #define STR_E "\105"
1658 #define STR_F "\106"
1659 #define STR_G "\107"
1660 #define STR_H "\110"
1661 #define STR_I "\111"
1662 #define STR_J "\112"
1663 #define STR_K "\113"
1664 #define STR_L "\114"
1665 #define STR_M "\115"
1666 #define STR_N "\116"
1667 #define STR_O "\117"
1668 #define STR_P "\120"
1669 #define STR_Q "\121"
1670 #define STR_R "\122"
1671 #define STR_S "\123"
1672 #define STR_T "\124"
1673 #define STR_U "\125"
1674 #define STR_V "\126"
1675 #define STR_W "\127"
1676 #define STR_X "\130"
1677 #define STR_Y "\131"
1678 #define STR_Z "\132"
1679 #define STR_LEFT_SQUARE_BRACKET "\133"
1680 #define STR_BACKSLASH "\134"
1681 #define STR_RIGHT_SQUARE_BRACKET "\135"
1682 #define STR_CIRCUMFLEX_ACCENT "\136"
1683 #define STR_UNDERSCORE "\137"
1684 #define STR_GRAVE_ACCENT "\140"
1685 #define STR_a "\141"
1686 #define STR_b "\142"
1687 #define STR_c "\143"
1688 #define STR_d "\144"
1689 #define STR_e "\145"
1690 #define STR_f "\146"
1691 #define STR_g "\147"
1692 #define STR_h "\150"
1693 #define STR_i "\151"
1694 #define STR_j "\152"
1695 #define STR_k "\153"
1696 #define STR_l "\154"
1697 #define STR_m "\155"
1698 #define STR_n "\156"
1699 #define STR_o "\157"
1700 #define STR_p "\160"
1701 #define STR_q "\161"
1702 #define STR_r "\162"
1703 #define STR_s "\163"
1704 #define STR_t "\164"
1705 #define STR_u "\165"
1706 #define STR_v "\166"
1707 #define STR_w "\167"
1708 #define STR_x "\170"
1709 #define STR_y "\171"
1710 #define STR_z "\172"
1711 #define STR_LEFT_CURLY_BRACKET "\173"
1712 #define STR_VERTICAL_LINE "\174"
1713 #define STR_RIGHT_CURLY_BRACKET "\175"
1714 #define STR_TILDE "\176"
1716 #define STRING_ACCEPT0 STR_A STR_C STR_C STR_E STR_P STR_T "\0"
1717 #define STRING_COMMIT0 STR_C STR_O STR_M STR_M STR_I STR_T "\0"
1718 #define STRING_F0 STR_F "\0"
1719 #define STRING_FAIL0 STR_F STR_A STR_I STR_L "\0"
1720 #define STRING_MARK0 STR_M STR_A STR_R STR_K "\0"
1721 #define STRING_PRUNE0 STR_P STR_R STR_U STR_N STR_E "\0"
1722 #define STRING_SKIP0 STR_S STR_K STR_I STR_P "\0"
1723 #define STRING_THEN STR_T STR_H STR_E STR_N
1725 #define STRING_alpha0 STR_a STR_l STR_p STR_h STR_a "\0"
1726 #define STRING_lower0 STR_l STR_o STR_w STR_e STR_r "\0"
1727 #define STRING_upper0 STR_u STR_p STR_p STR_e STR_r "\0"
1728 #define STRING_alnum0 STR_a STR_l STR_n STR_u STR_m "\0"
1729 #define STRING_ascii0 STR_a STR_s STR_c STR_i STR_i "\0"
1730 #define STRING_blank0 STR_b STR_l STR_a STR_n STR_k "\0"
1731 #define STRING_cntrl0 STR_c STR_n STR_t STR_r STR_l "\0"
1732 #define STRING_digit0 STR_d STR_i STR_g STR_i STR_t "\0"
1733 #define STRING_graph0 STR_g STR_r STR_a STR_p STR_h "\0"
1734 #define STRING_print0 STR_p STR_r STR_i STR_n STR_t "\0"
1735 #define STRING_punct0 STR_p STR_u STR_n STR_c STR_t "\0"
1736 #define STRING_space0 STR_s STR_p STR_a STR_c STR_e "\0"
1737 #define STRING_word0 STR_w STR_o STR_r STR_d "\0"
1738 #define STRING_xdigit STR_x STR_d STR_i STR_g STR_i STR_t
1740 #define STRING_DEFINE STR_D STR_E STR_F STR_I STR_N STR_E
1741 #define STRING_WEIRD_STARTWORD STR_LEFT_SQUARE_BRACKET STR_COLON STR_LESS_THAN_SIGN STR_COLON STR_RIGHT_SQUARE_BRACKET STR_RIGHT_SQUARE_BRACKET
1742 #define STRING_WEIRD_ENDWORD STR_LEFT_SQUARE_BRACKET STR_COLON STR_GREATER_THAN_SIGN STR_COLON STR_RIGHT_SQUARE_BRACKET STR_RIGHT_SQUARE_BRACKET
1744 #define STRING_CR_RIGHTPAR STR_C STR_R STR_RIGHT_PARENTHESIS
1745 #define STRING_LF_RIGHTPAR STR_L STR_F STR_RIGHT_PARENTHESIS
1746 #define STRING_CRLF_RIGHTPAR STR_C STR_R STR_L STR_F STR_RIGHT_PARENTHESIS
1747 #define STRING_ANY_RIGHTPAR STR_A STR_N STR_Y STR_RIGHT_PARENTHESIS
1748 #define STRING_ANYCRLF_RIGHTPAR STR_A STR_N STR_Y STR_C STR_R STR_L STR_F STR_RIGHT_PARENTHESIS
1749 #define STRING_BSR_ANYCRLF_RIGHTPAR STR_B STR_S STR_R STR_UNDERSCORE STR_A STR_N STR_Y STR_C STR_R STR_L STR_F STR_RIGHT_PARENTHESIS
1750 #define STRING_BSR_UNICODE_RIGHTPAR STR_B STR_S STR_R STR_UNDERSCORE STR_U STR_N STR_I STR_C STR_O STR_D STR_E STR_RIGHT_PARENTHESIS
1751 #define STRING_UTF8_RIGHTPAR STR_U STR_T STR_F STR_8 STR_RIGHT_PARENTHESIS
1752 #define STRING_UTF16_RIGHTPAR STR_U STR_T STR_F STR_1 STR_6 STR_RIGHT_PARENTHESIS
1753 #define STRING_UTF32_RIGHTPAR STR_U STR_T STR_F STR_3 STR_2 STR_RIGHT_PARENTHESIS
1754 #define STRING_UTF_RIGHTPAR STR_U STR_T STR_F STR_RIGHT_PARENTHESIS
1755 #define STRING_UCP_RIGHTPAR STR_U STR_C STR_P STR_RIGHT_PARENTHESIS
1756 #define STRING_NO_AUTO_POSSESS_RIGHTPAR STR_N STR_O STR_UNDERSCORE STR_A STR_U STR_T STR_O STR_UNDERSCORE STR_P STR_O STR_S STR_S STR_E STR_S STR_S STR_RIGHT_PARENTHESIS
1757 #define STRING_NO_START_OPT_RIGHTPAR STR_N STR_O STR_UNDERSCORE STR_S STR_T STR_A STR_R STR_T STR_UNDERSCORE STR_O STR_P STR_T STR_RIGHT_PARENTHESIS
1758 #define STRING_LIMIT_MATCH_EQ STR_L STR_I STR_M STR_I STR_T STR_UNDERSCORE STR_M STR_A STR_T STR_C STR_H STR_EQUALS_SIGN
1759 #define STRING_LIMIT_RECURSION_EQ STR_L STR_I STR_M STR_I STR_T STR_UNDERSCORE STR_R STR_E STR_C STR_U STR_R STR_S STR_I STR_O STR_N STR_EQUALS_SIGN
1766 #define ESC_e CHAR_ESC
1770 #define ESC_f CHAR_FF
1774 #define ESC_n CHAR_LF
1778 #define ESC_r CHAR_CR
1785 #define ESC_tee CHAR_HT
1790 #define PT_ANY 0 /* Any property - matches all chars */
1791 #define PT_LAMP 1 /* L& - the union of Lu, Ll, Lt */
1792 #define PT_GC 2 /* Specified general characteristic (e.g. L) */
1793 #define PT_PC 3 /* Specified particular characteristic (e.g. Lu) */
1794 #define PT_SC 4 /* Script (e.g. Han) */
1795 #define PT_ALNUM 5 /* Alphanumeric - the union of L and N */
1796 #define PT_SPACE 6 /* Perl space - Z plus 9,10,12,13 */
1797 #define PT_PXSPACE 7 /* POSIX space - Z plus 9,10,11,12,13 */
1798 #define PT_WORD 8 /* Word - L plus N plus underscore */
1799 #define PT_CLIST 9 /* Pseudo-property: match character list */
1800 #define PT_UCNC 10 /* Universal Character nameable character */
1801 #define PT_TABSIZE 11 /* Size of square table for autopossessify tests */
1809 #define PT_PXGRAPH 11 /* [:graph:] - characters that mark the paper */
1810 #define PT_PXPRINT 12 /* [:print:] - [:graph:] plus non-control spaces */
1811 #define PT_PXPUNCT 13 /* [:punct:] - punctuation characters */
1816 #define XCL_NOT 0x01 /* Flag: this is a negative class */
1817 #define XCL_MAP 0x02 /* Flag: a 32-byte map is present */
1818 #define XCL_HASPROP 0x04 /* Flag: property checks are present. */
1820 #define XCL_END 0 /* Marks end of individual items */
1821 #define XCL_SINGLE 1 /* Single item (one multibyte char) follows */
1822 #define XCL_RANGE 2 /* A range (two multibyte chars) follows */
1823 #define XCL_PROP 3 /* Unicode property (2-byte property code follows) */
1824 #define XCL_NOTPROP 4 /* Unicode inverted property (ditto) */
1874 #define FIRST_AUTOTAB_OP OP_NOT_DIGIT
1875 #define LAST_AUTOTAB_LEFT_OP OP_EXTUNI
1876 #define LAST_AUTOTAB_RIGHT_OP OP_DOLLM
2093 OP_DEF, /* 145 The DEFINE condition */
2139 #define OP_NAME_LIST \
2187 #define OP_LENGTHS \
2270 #define RREF_ANY 0xffff
2365 #define REAL_PCRE real_pcre
2367 #define REAL_PCRE real_pcre16
2369 #define REAL_PCRE real_pcre32
2379 #define REAL_PCRE_MAGIC(re) (((REAL_PCRE*)re)->magic_number)
2380 #define REAL_PCRE_SIZE(re) (((REAL_PCRE*)re)->size)
2381 #define REAL_PCRE_OPTIONS(re) (((REAL_PCRE*)re)->options)
2382 #define REAL_PCRE_FLAGS(re) (((REAL_PCRE*)re)->flags)
2569 #define ctype_space 0x01
2570 #define ctype_letter 0x02
2571 #define ctype_digit 0x04
2572 #define ctype_xdigit 0x08
2573 #define ctype_word 0x10 /* alphanumeric or '_' */
2574 #define ctype_meta 0x80 /* regexp meta char or zero (end pattern) */
2579 #define cbit_space 0 /* [:space:] or \s */
2580 #define cbit_xdigit 32 /* [:xdigit:] */
2581 #define cbit_digit 64 /* [:digit:] or \d */
2582 #define cbit_upper 96 /* [:upper:] */
2583 #define cbit_lower 128 /* [:lower:] */
2584 #define cbit_word 160 /* [:word:] or \w */
2585 #define cbit_graph 192 /* [:graph:] */
2586 #define cbit_print 224 /* [:print:] */
2587 #define cbit_punct 256 /* [:punct:] */
2588 #define cbit_cntrl 288 /* [:cntrl:] */
2589 #define cbit_length 320 /* Length of the cbits table */
2594 #define lcc_offset 0
2595 #define fcc_offset 256
2596 #define cbits_offset 512
2597 #define ctypes_offset (cbits_offset + cbit_length)
2598 #define tables_length (ctypes_offset + 256)
2604 #define PUBL(name) pcre_##name
2607 #define PRIV(name) _pcre_##name
2611 #define PUBL(name) pcre16_##name
2614 #define PRIV(name) _pcre16_##name
2618 #define PUBL(name) pcre32_##name
2621 #define PRIV(name) _pcre32_##name
2670 #define STRCMP_UC_UC(str1, str2) \
2672 #define STRCMP_UC_C8(str1, str2) \
2674 #define STRNCMP_UC_UC(str1, str2, num) \
2676 #define STRNCMP_UC_C8(str1, str2, num) \
2678 #define STRLEN_UC(str) strlen((const char *)str)
2692 #define STRCMP_UC_UC(str1, str2) \
2694 #define STRCMP_UC_C8(str1, str2) \
2696 #define STRNCMP_UC_UC(str1, str2, num) \
2698 #define STRNCMP_UC_C8(str1, str2, num) \
2700 #define STRLEN_UC(str) PRIV(strlen_uc)(str)
2706 #define STRCMP_UC_UC_TEST(str1, str2) STRCMP_UC_UC(str1, str2)
2707 #define STRCMP_UC_C8_TEST(str1, str2) STRCMP_UC_C8(str1, str2)
2716 #define STRCMP_UC_UC_TEST(str1, str2) \
2718 #define STRCMP_UC_C8_TEST(str1, str2) \
2765 #define UCD_BLOCK_SIZE 128
2766 #define GET_UCD(ch) (PRIV(ucd_records) + \
2770 #define UCD_CHARTYPE(ch) GET_UCD(ch)->chartype
2771 #define UCD_SCRIPT(ch) GET_UCD(ch)->script
2772 #define UCD_CATEGORY(ch) PRIV(ucp_gentype)[UCD_CHARTYPE(ch)]
2773 #define UCD_GRAPHBREAK(ch) GET_UCD(ch)->gbprop
2774 #define UCD_CASESET(ch) GET_UCD(ch)->caseset
2775 #define UCD_OTHERCASE(ch) ((pcre_uint32)((int)ch + (int)(GET_UCD(ch)->other_case)))