pcreconsts.inc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. const
  2. PCRE2_MAJOR = 10;
  3. PCRE2_MINOR = 39;
  4. PCRE2_DATE = '2021-10-29';
  5. PCRE2_ANCHORED = $80000000;
  6. PCRE2_NO_UTF_CHECK = $40000000;
  7. PCRE2_ENDANCHORED = $20000000;
  8. PCRE2_ALLOW_EMPTY_CLASS = $00000001;
  9. PCRE2_ALT_BSUX = $00000002;
  10. PCRE2_AUTO_CALLOUT = $00000004;
  11. PCRE2_CASELESS = $00000008;
  12. PCRE2_DOLLAR_ENDONLY = $00000010;
  13. PCRE2_DOTALL = $00000020;
  14. PCRE2_DUPNAMES = $00000040;
  15. PCRE2_EXTENDED = $00000080;
  16. PCRE2_FIRSTLINE = $00000100;
  17. PCRE2_MATCH_UNSET_BACKREF = $00000200;
  18. PCRE2_MULTILINE = $00000400;
  19. PCRE2_NEVER_UCP = $00000800;
  20. PCRE2_NEVER_UTF = $00001000;
  21. PCRE2_NO_AUTO_CAPTURE = $00002000;
  22. PCRE2_NO_AUTO_POSSESS = $00004000;
  23. PCRE2_NO_DOTSTAR_ANCHOR = $00008000;
  24. PCRE2_NO_START_OPTIMIZE = $00010000;
  25. PCRE2_UCP = $00020000;
  26. PCRE2_UNGREEDY = $00040000;
  27. PCRE2_UTF = $00080000;
  28. PCRE2_NEVER_BACKSLASH_C = $00100000;
  29. PCRE2_ALT_CIRCUMFLEX = $00200000;
  30. PCRE2_ALT_VERBNAMES = $00400000;
  31. PCRE2_USE_OFFSET_LIMIT = $00800000;
  32. PCRE2_EXTENDED_MORE = $01000000;
  33. PCRE2_LITERAL = $02000000;
  34. PCRE2_MATCH_INVALID_UTF = $04000000;
  35. PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES = $00000001;
  36. PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL = $00000002;
  37. PCRE2_EXTRA_MATCH_WORD = $00000004;
  38. PCRE2_EXTRA_MATCH_LINE = $00000008;
  39. PCRE2_EXTRA_ESCAPED_CR_IS_LF = $00000010;
  40. PCRE2_EXTRA_ALT_BSUX = $00000020;
  41. PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK = $00000040;
  42. PCRE2_JIT_COMPLETE = $00000001;
  43. PCRE2_JIT_PARTIAL_SOFT = $00000002;
  44. PCRE2_JIT_PARTIAL_HARD = $00000004;
  45. PCRE2_JIT_INVALID_UTF = $00000100;
  46. PCRE2_NOTBOL = $00000001;
  47. PCRE2_NOTEOL = $00000002;
  48. PCRE2_NOTEMPTY = $00000004;
  49. PCRE2_NOTEMPTY_ATSTART = $00000008;
  50. PCRE2_PARTIAL_SOFT = $00000010;
  51. PCRE2_PARTIAL_HARD = $00000020;
  52. PCRE2_DFA_RESTART = $00000040;
  53. PCRE2_DFA_SHORTEST = $00000080;
  54. PCRE2_SUBSTITUTE_GLOBAL = $00000100;
  55. PCRE2_SUBSTITUTE_EXTENDED = $00000200;
  56. PCRE2_SUBSTITUTE_UNSET_EMPTY = $00000400;
  57. PCRE2_SUBSTITUTE_UNKNOWN_UNSET = $00000800;
  58. PCRE2_SUBSTITUTE_OVERFLOW_LENGTH = $00001000;
  59. PCRE2_NO_JIT = $00002000;
  60. PCRE2_COPY_MATCHED_SUBJECT = $00004000;
  61. PCRE2_SUBSTITUTE_LITERAL = $00008000;
  62. PCRE2_SUBSTITUTE_MATCHED = $00010000;
  63. PCRE2_SUBSTITUTE_REPLACEMENT_ONLY = $00020000;
  64. PCRE2_CONVERT_UTF = $00000001;
  65. PCRE2_CONVERT_NO_UTF_CHECK = $00000002;
  66. PCRE2_CONVERT_POSIX_BASIC = $00000004;
  67. PCRE2_CONVERT_POSIX_EXTENDED = $00000008;
  68. PCRE2_CONVERT_GLOB = $00000010;
  69. PCRE2_CONVERT_GLOB_NO_WILD_SEPARATOR = $00000030;
  70. PCRE2_CONVERT_GLOB_NO_STARSTAR = $00000050;
  71. PCRE2_NEWLINE_CR = 1;
  72. PCRE2_NEWLINE_LF = 2;
  73. PCRE2_NEWLINE_CRLF = 3;
  74. PCRE2_NEWLINE_ANY = 4;
  75. PCRE2_NEWLINE_ANYCRLF = 5;
  76. PCRE2_NEWLINE_NUL = 6;
  77. PCRE2_BSR_UNICODE = 1;
  78. PCRE2_BSR_ANYCRLF = 2;
  79. PCRE2_ERROR_END_BACKSLASH = 101;
  80. PCRE2_ERROR_END_BACKSLASH_C = 102;
  81. PCRE2_ERROR_UNKNOWN_ESCAPE = 103;
  82. PCRE2_ERROR_QUANTIFIER_OUT_OF_ORDER = 104;
  83. PCRE2_ERROR_QUANTIFIER_TOO_BIG = 105;
  84. PCRE2_ERROR_MISSING_SQUARE_BRACKET = 106;
  85. PCRE2_ERROR_ESCAPE_INVALID_IN_CLASS = 107;
  86. PCRE2_ERROR_CLASS_RANGE_ORDER = 108;
  87. PCRE2_ERROR_QUANTIFIER_INVALID = 109;
  88. PCRE2_ERROR_INTERNAL_UNEXPECTED_REPEAT = 110;
  89. PCRE2_ERROR_INVALID_AFTER_PARENS_QUERY = 111;
  90. PCRE2_ERROR_POSIX_CLASS_NOT_IN_CLASS = 112;
  91. PCRE2_ERROR_POSIX_NO_SUPPORT_COLLATING = 113;
  92. PCRE2_ERROR_MISSING_CLOSING_PARENTHESIS = 114;
  93. PCRE2_ERROR_BAD_SUBPATTERN_REFERENCE = 115;
  94. PCRE2_ERROR_NULL_PATTERN = 116;
  95. PCRE2_ERROR_BAD_OPTIONS = 117;
  96. PCRE2_ERROR_MISSING_COMMENT_CLOSING = 118;
  97. PCRE2_ERROR_PARENTHESES_NEST_TOO_DEEP = 119;
  98. PCRE2_ERROR_PATTERN_TOO_LARGE = 120;
  99. PCRE2_ERROR_HEAP_FAILED = 121;
  100. PCRE2_ERROR_UNMATCHED_CLOSING_PARENTHESIS = 122;
  101. PCRE2_ERROR_INTERNAL_CODE_OVERFLOW = 123;
  102. PCRE2_ERROR_MISSING_CONDITION_CLOSING = 124;
  103. PCRE2_ERROR_LOOKBEHIND_NOT_FIXED_LENGTH = 125;
  104. PCRE2_ERROR_ZERO_RELATIVE_REFERENCE = 126;
  105. PCRE2_ERROR_TOO_MANY_CONDITION_BRANCHES = 127;
  106. PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED = 128;
  107. PCRE2_ERROR_BAD_RELATIVE_REFERENCE = 129;
  108. PCRE2_ERROR_UNKNOWN_POSIX_CLASS = 130;
  109. PCRE2_ERROR_INTERNAL_STUDY_ERROR = 131;
  110. PCRE2_ERROR_UNICODE_NOT_SUPPORTED = 132;
  111. PCRE2_ERROR_PARENTHESES_STACK_CHECK = 133;
  112. PCRE2_ERROR_CODE_POINT_TOO_BIG = 134;
  113. PCRE2_ERROR_LOOKBEHIND_TOO_COMPLICATED = 135;
  114. PCRE2_ERROR_LOOKBEHIND_INVALID_BACKSLASH_C = 136;
  115. PCRE2_ERROR_UNSUPPORTED_ESCAPE_SEQUENCE = 137;
  116. PCRE2_ERROR_CALLOUT_NUMBER_TOO_BIG = 138;
  117. PCRE2_ERROR_MISSING_CALLOUT_CLOSING = 139;
  118. PCRE2_ERROR_ESCAPE_INVALID_IN_VERB = 140;
  119. PCRE2_ERROR_UNRECOGNIZED_AFTER_QUERY_P = 141;
  120. PCRE2_ERROR_MISSING_NAME_TERMINATOR = 142;
  121. PCRE2_ERROR_DUPLICATE_SUBPATTERN_NAME = 143;
  122. PCRE2_ERROR_INVALID_SUBPATTERN_NAME = 144;
  123. PCRE2_ERROR_UNICODE_PROPERTIES_UNAVAILABLE = 145;
  124. PCRE2_ERROR_MALFORMED_UNICODE_PROPERTY = 146;
  125. PCRE2_ERROR_UNKNOWN_UNICODE_PROPERTY = 147;
  126. PCRE2_ERROR_SUBPATTERN_NAME_TOO_LONG = 148;
  127. PCRE2_ERROR_TOO_MANY_NAMED_SUBPATTERNS = 149;
  128. PCRE2_ERROR_CLASS_INVALID_RANGE = 150;
  129. PCRE2_ERROR_OCTAL_BYTE_TOO_BIG = 151;
  130. PCRE2_ERROR_INTERNAL_OVERRAN_WORKSPACE = 152;
  131. PCRE2_ERROR_INTERNAL_MISSING_SUBPATTERN = 153;
  132. PCRE2_ERROR_DEFINE_TOO_MANY_BRANCHES = 154;
  133. PCRE2_ERROR_BACKSLASH_O_MISSING_BRACE = 155;
  134. PCRE2_ERROR_INTERNAL_UNKNOWN_NEWLINE = 156;
  135. PCRE2_ERROR_BACKSLASH_G_SYNTAX = 157;
  136. PCRE2_ERROR_PARENS_QUERY_R_MISSING_CLOSING = 158;
  137. PCRE2_ERROR_VERB_ARGUMENT_NOT_ALLOWED = 159;
  138. PCRE2_ERROR_VERB_UNKNOWN = 160;
  139. PCRE2_ERROR_SUBPATTERN_NUMBER_TOO_BIG = 161;
  140. PCRE2_ERROR_SUBPATTERN_NAME_EXPECTED = 162;
  141. PCRE2_ERROR_INTERNAL_PARSED_OVERFLOW = 163;
  142. PCRE2_ERROR_INVALID_OCTAL = 164;
  143. PCRE2_ERROR_SUBPATTERN_NAMES_MISMATCH = 165;
  144. PCRE2_ERROR_MARK_MISSING_ARGUMENT = 166;
  145. PCRE2_ERROR_INVALID_HEXADECIMAL = 167;
  146. PCRE2_ERROR_BACKSLASH_C_SYNTAX = 168;
  147. PCRE2_ERROR_BACKSLASH_K_SYNTAX = 169;
  148. PCRE2_ERROR_INTERNAL_BAD_CODE_LOOKBEHINDS = 170;
  149. PCRE2_ERROR_BACKSLASH_N_IN_CLASS = 171;
  150. PCRE2_ERROR_CALLOUT_STRING_TOO_LONG = 172;
  151. PCRE2_ERROR_UNICODE_DISALLOWED_CODE_POINT = 173;
  152. PCRE2_ERROR_UTF_IS_DISABLED = 174;
  153. PCRE2_ERROR_UCP_IS_DISABLED = 175;
  154. PCRE2_ERROR_VERB_NAME_TOO_LONG = 176;
  155. PCRE2_ERROR_BACKSLASH_U_CODE_POINT_TOO_BIG = 177;
  156. PCRE2_ERROR_MISSING_OCTAL_OR_HEX_DIGITS = 178;
  157. PCRE2_ERROR_VERSION_CONDITION_SYNTAX = 179;
  158. PCRE2_ERROR_INTERNAL_BAD_CODE_AUTO_POSSESS = 180;
  159. PCRE2_ERROR_CALLOUT_NO_STRING_DELIMITER = 181;
  160. PCRE2_ERROR_CALLOUT_BAD_STRING_DELIMITER = 182;
  161. PCRE2_ERROR_BACKSLASH_C_CALLER_DISABLED = 183;
  162. PCRE2_ERROR_QUERY_BARJX_NEST_TOO_DEEP = 184;
  163. PCRE2_ERROR_BACKSLASH_C_LIBRARY_DISABLED = 185;
  164. PCRE2_ERROR_PATTERN_TOO_COMPLICATED = 186;
  165. PCRE2_ERROR_LOOKBEHIND_TOO_LONG = 187;
  166. PCRE2_ERROR_PATTERN_STRING_TOO_LONG = 188;
  167. PCRE2_ERROR_INTERNAL_BAD_CODE = 189;
  168. PCRE2_ERROR_INTERNAL_BAD_CODE_IN_SKIP = 190;
  169. PCRE2_ERROR_NO_SURROGATES_IN_UTF16 = 191;
  170. PCRE2_ERROR_BAD_LITERAL_OPTIONS = 192;
  171. PCRE2_ERROR_SUPPORTED_ONLY_IN_UNICODE = 193;
  172. PCRE2_ERROR_INVALID_HYPHEN_IN_OPTIONS = 194;
  173. PCRE2_ERROR_ALPHA_ASSERTION_UNKNOWN = 195;
  174. PCRE2_ERROR_SCRIPT_RUN_NOT_AVAILABLE = 196;
  175. PCRE2_ERROR_TOO_MANY_CAPTURES = 197;
  176. PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED = 198;
  177. PCRE2_ERROR_BACKSLASH_K_IN_LOOKAROUND = 199;
  178. PCRE2_ERROR_NOMATCH = -(1);
  179. PCRE2_ERROR_PARTIAL = -(2);
  180. PCRE2_ERROR_UTF8_ERR1 = -(3);
  181. PCRE2_ERROR_UTF8_ERR2 = -(4);
  182. PCRE2_ERROR_UTF8_ERR3 = -(5);
  183. PCRE2_ERROR_UTF8_ERR4 = -(6);
  184. PCRE2_ERROR_UTF8_ERR5 = -(7);
  185. PCRE2_ERROR_UTF8_ERR6 = -(8);
  186. PCRE2_ERROR_UTF8_ERR7 = -(9);
  187. PCRE2_ERROR_UTF8_ERR8 = -(10);
  188. PCRE2_ERROR_UTF8_ERR9 = -(11);
  189. PCRE2_ERROR_UTF8_ERR10 = -(12);
  190. PCRE2_ERROR_UTF8_ERR11 = -(13);
  191. PCRE2_ERROR_UTF8_ERR12 = -(14);
  192. PCRE2_ERROR_UTF8_ERR13 = -(15);
  193. PCRE2_ERROR_UTF8_ERR14 = -(16);
  194. PCRE2_ERROR_UTF8_ERR15 = -(17);
  195. PCRE2_ERROR_UTF8_ERR16 = -(18);
  196. PCRE2_ERROR_UTF8_ERR17 = -(19);
  197. PCRE2_ERROR_UTF8_ERR18 = -(20);
  198. PCRE2_ERROR_UTF8_ERR19 = -(21);
  199. PCRE2_ERROR_UTF8_ERR20 = -(22);
  200. PCRE2_ERROR_UTF8_ERR21 = -(23);
  201. PCRE2_ERROR_UTF16_ERR1 = -(24);
  202. PCRE2_ERROR_UTF16_ERR2 = -(25);
  203. PCRE2_ERROR_UTF16_ERR3 = -(26);
  204. PCRE2_ERROR_UTF32_ERR1 = -(27);
  205. PCRE2_ERROR_UTF32_ERR2 = -(28);
  206. PCRE2_ERROR_BADDATA = -(29);
  207. PCRE2_ERROR_MIXEDTABLES = -(30);
  208. PCRE2_ERROR_BADMAGIC = -(31);
  209. PCRE2_ERROR_BADMODE = -(32);
  210. PCRE2_ERROR_BADOFFSET = -(33);
  211. PCRE2_ERROR_BADOPTION = -(34);
  212. PCRE2_ERROR_BADREPLACEMENT = -(35);
  213. PCRE2_ERROR_BADUTFOFFSET = -(36);
  214. PCRE2_ERROR_CALLOUT = -(37);
  215. PCRE2_ERROR_DFA_BADRESTART = -(38);
  216. PCRE2_ERROR_DFA_RECURSE = -(39);
  217. PCRE2_ERROR_DFA_UCOND = -(40);
  218. PCRE2_ERROR_DFA_UFUNC = -(41);
  219. PCRE2_ERROR_DFA_UITEM = -(42);
  220. PCRE2_ERROR_DFA_WSSIZE = -(43);
  221. PCRE2_ERROR_INTERNAL = -(44);
  222. PCRE2_ERROR_JIT_BADOPTION = -(45);
  223. PCRE2_ERROR_JIT_STACKLIMIT = -(46);
  224. PCRE2_ERROR_MATCHLIMIT = -(47);
  225. PCRE2_ERROR_NOMEMORY = -(48);
  226. PCRE2_ERROR_NOSUBSTRING = -(49);
  227. PCRE2_ERROR_NOUNIQUESUBSTRING = -(50);
  228. PCRE2_ERROR_NULL = -(51);
  229. PCRE2_ERROR_RECURSELOOP = -(52);
  230. PCRE2_ERROR_DEPTHLIMIT = -(53);
  231. PCRE2_ERROR_RECURSIONLIMIT = -(53);
  232. PCRE2_ERROR_UNAVAILABLE = -(54);
  233. PCRE2_ERROR_UNSET = -(55);
  234. PCRE2_ERROR_BADOFFSETLIMIT = -(56);
  235. PCRE2_ERROR_BADREPESCAPE = -(57);
  236. PCRE2_ERROR_REPMISSINGBRACE = -(58);
  237. PCRE2_ERROR_BADSUBSTITUTION = -(59);
  238. PCRE2_ERROR_BADSUBSPATTERN = -(60);
  239. PCRE2_ERROR_TOOMANYREPLACE = -(61);
  240. PCRE2_ERROR_BADSERIALIZEDDATA = -(62);
  241. PCRE2_ERROR_HEAPLIMIT = -(63);
  242. PCRE2_ERROR_CONVERT_SYNTAX = -(64);
  243. PCRE2_ERROR_INTERNAL_DUPMATCH = -(65);
  244. PCRE2_ERROR_DFA_UINVALID_UTF = -(66);
  245. PCRE2_INFO_ALLOPTIONS = 0;
  246. PCRE2_INFO_ARGOPTIONS = 1;
  247. PCRE2_INFO_BACKREFMAX = 2;
  248. PCRE2_INFO_BSR = 3;
  249. PCRE2_INFO_CAPTURECOUNT = 4;
  250. PCRE2_INFO_FIRSTCODEUNIT = 5;
  251. PCRE2_INFO_FIRSTCODETYPE = 6;
  252. PCRE2_INFO_FIRSTBITMAP = 7;
  253. PCRE2_INFO_HASCRORLF = 8;
  254. PCRE2_INFO_JCHANGED = 9;
  255. PCRE2_INFO_JITSIZE = 10;
  256. PCRE2_INFO_LASTCODEUNIT = 11;
  257. PCRE2_INFO_LASTCODETYPE = 12;
  258. PCRE2_INFO_MATCHEMPTY = 13;
  259. PCRE2_INFO_MATCHLIMIT = 14;
  260. PCRE2_INFO_MAXLOOKBEHIND = 15;
  261. PCRE2_INFO_MINLENGTH = 16;
  262. PCRE2_INFO_NAMECOUNT = 17;
  263. PCRE2_INFO_NAMEENTRYSIZE = 18;
  264. PCRE2_INFO_NAMETABLE = 19;
  265. PCRE2_INFO_NEWLINE = 20;
  266. PCRE2_INFO_DEPTHLIMIT = 21;
  267. PCRE2_INFO_RECURSIONLIMIT = 21;
  268. PCRE2_INFO_SIZE = 22;
  269. PCRE2_INFO_HASBACKSLASHC = 23;
  270. PCRE2_INFO_FRAMESIZE = 24;
  271. PCRE2_INFO_HEAPLIMIT = 25;
  272. PCRE2_INFO_EXTRAOPTIONS = 26;
  273. PCRE2_CONFIG_BSR = 0;
  274. PCRE2_CONFIG_JIT = 1;
  275. PCRE2_CONFIG_JITTARGET = 2;
  276. PCRE2_CONFIG_LINKSIZE = 3;
  277. PCRE2_CONFIG_MATCHLIMIT = 4;
  278. PCRE2_CONFIG_NEWLINE = 5;
  279. PCRE2_CONFIG_PARENSLIMIT = 6;
  280. PCRE2_CONFIG_DEPTHLIMIT = 7;
  281. PCRE2_CONFIG_RECURSIONLIMIT = 7;
  282. PCRE2_CONFIG_STACKRECURSE = 8;
  283. PCRE2_CONFIG_UNICODE = 9;
  284. PCRE2_CONFIG_UNICODE_VERSION = 10;
  285. PCRE2_CONFIG_VERSION = 11;
  286. PCRE2_CONFIG_HEAPLIMIT = 12;
  287. PCRE2_CONFIG_NEVER_BACKSLASH_C = 13;
  288. PCRE2_CONFIG_COMPILED_WIDTHS = 14;
  289. PCRE2_CONFIG_TABLES_LENGTH = 15;