module PCRE2

Use replace:

"#define ([^\W]+) \W* (.*)/"" -> "\1 = \2"
"(0x[^u]+)u"                  -> "\1"

Constants

PCRE2_ALLOW_EMPTY_CLASS

The following option bits can be passed only to pcre2_compile(). However, they may affect compilation, JIT compilation, and/or interpretive execution. The following tags indicate which: C alters what is compiled by pcre2_compile() J alters what is compiled by pcre2_jit_compile() M is inspected during pcre2_match() execution D is inspected during pcre2_dfa_match() execution

PCRE2_ALT_BSUX
PCRE2_ALT_CIRCUMFLEX
PCRE2_ALT_VERBNAMES
PCRE2_ANCHORED

The following option bits can be passed to pcre2_compile(), pcre2_match(), or pcre2_dfa_match(). PCRE2_NO_UTF_CHECK affects only the function to which it is passed. Put these bits at the most significant end of the options word so others can be added next to them

PCRE2_AUTO_CALLOUT
PCRE2_BSR_ANYCRLF
PCRE2_BSR_UNICODE
PCRE2_CASELESS
PCRE2_CONFIG_BSR

Request types for pcre2_config().

PCRE2_CONFIG_COMPILED_WIDTHS
PCRE2_CONFIG_DEPTHLIMIT
PCRE2_CONFIG_HEAPLIMIT
PCRE2_CONFIG_JIT
PCRE2_CONFIG_JITTARGET
PCRE2_CONFIG_LINKSIZE
PCRE2_CONFIG_MATCHLIMIT
PCRE2_CONFIG_NEVER_BACKSLASH_C
PCRE2_CONFIG_NEWLINE
PCRE2_CONFIG_PARENSLIMIT
PCRE2_CONFIG_RECURSIONLIMIT
PCRE2_CONFIG_STACKRECURSE
PCRE2_CONFIG_UNICODE
PCRE2_CONFIG_UNICODE_VERSION
PCRE2_CONFIG_VERSION
PCRE2_CONVERT_GLOB
PCRE2_CONVERT_GLOB_NO_STARSTAR
PCRE2_CONVERT_GLOB_NO_WILD_SEPARATOR
PCRE2_CONVERT_NO_UTF_CHECK
PCRE2_CONVERT_POSIX_BASIC
PCRE2_CONVERT_POSIX_EXTENDED
PCRE2_CONVERT_UTF

Options for pcre2_pattern_convert().

PCRE2_COPY_MATCHED_SUBJECT
PCRE2_DFA_RESTART
PCRE2_DFA_SHORTEST
PCRE2_DOLLAR_ENDONLY
PCRE2_DOTALL
PCRE2_DUPNAMES
PCRE2_ENDANCHORED
PCRE2_ERROR_ALPHA_ASSERTION_UNKNOWN
PCRE2_ERROR_BACKSLASH_C_CALLER_DISABLED
PCRE2_ERROR_BACKSLASH_C_LIBRARY_DISABLED
PCRE2_ERROR_BACKSLASH_C_SYNTAX
PCRE2_ERROR_BACKSLASH_G_SYNTAX
PCRE2_ERROR_BACKSLASH_K_SYNTAX
PCRE2_ERROR_BACKSLASH_N_IN_CLASS
PCRE2_ERROR_BACKSLASH_O_MISSING_BRACE
PCRE2_ERROR_BACKSLASH_U_CODE_POINT_TOO_BIG
PCRE2_ERROR_BADDATA

Miscellaneous error codes for pcre2_match(), substring extraction functions, context functions, and serializing functions. They are in numerical order. Originally they were in alphabetical order too, but now that PCRE2 is released, the numbers must not be changed.

PCRE2_ERROR_BADMAGIC
PCRE2_ERROR_BADMODE
PCRE2_ERROR_BADOFFSET
PCRE2_ERROR_BADOFFSETLIMIT
PCRE2_ERROR_BADOPTION
PCRE2_ERROR_BADREPESCAPE
PCRE2_ERROR_BADREPLACEMENT
PCRE2_ERROR_BADSERIALIZEDDATA
PCRE2_ERROR_BADSUBSPATTERN
PCRE2_ERROR_BADSUBSTITUTION
PCRE2_ERROR_BADUTFOFFSET
PCRE2_ERROR_BAD_LITERAL_OPTIONS
PCRE2_ERROR_BAD_OPTIONS
PCRE2_ERROR_BAD_RELATIVE_REFERENCE
PCRE2_ERROR_BAD_SUBPATTERN_REFERENCE
PCRE2_ERROR_CALLOUT
PCRE2_ERROR_CALLOUT_BAD_STRING_DELIMITER
PCRE2_ERROR_CALLOUT_NO_STRING_DELIMITER
PCRE2_ERROR_CALLOUT_NUMBER_TOO_BIG
PCRE2_ERROR_CALLOUT_STRING_TOO_LONG
PCRE2_ERROR_CLASS_INVALID_RANGE
PCRE2_ERROR_CLASS_RANGE_ORDER
PCRE2_ERROR_CODE_POINT_TOO_BIG
PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED
PCRE2_ERROR_CONVERT_SYNTAX
PCRE2_ERROR_DEFINE_TOO_MANY_BRANCHES
PCRE2_ERROR_DEPTHLIMIT
PCRE2_ERROR_DFA_BADRESTART
PCRE2_ERROR_DFA_RECURSE
PCRE2_ERROR_DFA_UCOND
PCRE2_ERROR_DFA_UFUNC
PCRE2_ERROR_DFA_UITEM
PCRE2_ERROR_DFA_WSSIZE
PCRE2_ERROR_DUPLICATE_SUBPATTERN_NAME
PCRE2_ERROR_END_BACKSLASH

Error codes for pcre2_compile(). Some of these are also used by pcre2_pattern_convert().

PCRE2_ERROR_END_BACKSLASH_C
PCRE2_ERROR_ESCAPE_INVALID_IN_CLASS
PCRE2_ERROR_ESCAPE_INVALID_IN_VERB
PCRE2_ERROR_HEAPLIMIT
PCRE2_ERROR_HEAP_FAILED
PCRE2_ERROR_INTERNAL
PCRE2_ERROR_INTERNAL_BAD_CODE
PCRE2_ERROR_INTERNAL_BAD_CODE_AUTO_POSSESS
PCRE2_ERROR_INTERNAL_BAD_CODE_IN_SKIP
PCRE2_ERROR_INTERNAL_BAD_CODE_LOOKBEHINDS
PCRE2_ERROR_INTERNAL_CODE_OVERFLOW
PCRE2_ERROR_INTERNAL_DUPMATCH
PCRE2_ERROR_INTERNAL_MISSING_SUBPATTERN
PCRE2_ERROR_INTERNAL_OVERRAN_WORKSPACE
PCRE2_ERROR_INTERNAL_PARSED_OVERFLOW
PCRE2_ERROR_INTERNAL_STUDY_ERROR
PCRE2_ERROR_INTERNAL_UNEXPECTED_REPEAT
PCRE2_ERROR_INTERNAL_UNKNOWN_NEWLINE
PCRE2_ERROR_INVALID_AFTER_PARENS_QUERY
PCRE2_ERROR_INVALID_HEXADECIMAL
PCRE2_ERROR_INVALID_HYPHEN_IN_OPTIONS
PCRE2_ERROR_INVALID_OCTAL
PCRE2_ERROR_INVALID_SUBPATTERN_NAME
PCRE2_ERROR_JIT_BADOPTION
PCRE2_ERROR_JIT_STACKLIMIT
PCRE2_ERROR_LOOKBEHIND_INVALID_BACKSLASH_C
PCRE2_ERROR_LOOKBEHIND_NOT_FIXED_LENGTH
PCRE2_ERROR_LOOKBEHIND_TOO_COMPLICATED
PCRE2_ERROR_LOOKBEHIND_TOO_LONG
PCRE2_ERROR_MALFORMED_UNICODE_PROPERTY
PCRE2_ERROR_MARK_MISSING_ARGUMENT
PCRE2_ERROR_MATCHLIMIT
PCRE2_ERROR_MISSING_CALLOUT_CLOSING
PCRE2_ERROR_MISSING_CLOSING_PARENTHESIS
PCRE2_ERROR_MISSING_COMMENT_CLOSING
PCRE2_ERROR_MISSING_CONDITION_CLOSING
PCRE2_ERROR_MISSING_NAME_TERMINATOR
PCRE2_ERROR_MISSING_OCTAL_OR_HEX_DIGITS
PCRE2_ERROR_MISSING_SQUARE_BRACKET
PCRE2_ERROR_MIXEDTABLES
PCRE2_ERROR_NOMATCH

“Expected” matching error codes: no match and partial match.

PCRE2_ERROR_NOMEMORY
PCRE2_ERROR_NOSUBSTRING
PCRE2_ERROR_NOUNIQUESUBSTRING
PCRE2_ERROR_NO_SURROGATES_IN_UTF16
PCRE2_ERROR_NULL
PCRE2_ERROR_NULL_PATTERN
PCRE2_ERROR_OCTAL_BYTE_TOO_BIG
PCRE2_ERROR_PARENS_QUERY_R_MISSING_CLOSING
PCRE2_ERROR_PARENTHESES_NEST_TOO_DEEP
PCRE2_ERROR_PARENTHESES_STACK_CHECK
PCRE2_ERROR_PARTIAL
PCRE2_ERROR_PATTERN_STRING_TOO_LONG
PCRE2_ERROR_PATTERN_TOO_COMPLICATED
PCRE2_ERROR_PATTERN_TOO_LARGE
PCRE2_ERROR_POSIX_CLASS_NOT_IN_CLASS
PCRE2_ERROR_POSIX_NO_SUPPORT_COLLATING
PCRE2_ERROR_QUANTIFIER_INVALID
PCRE2_ERROR_QUANTIFIER_OUT_OF_ORDER
PCRE2_ERROR_QUANTIFIER_TOO_BIG
PCRE2_ERROR_QUERY_BARJX_NEST_TOO_DEEP
PCRE2_ERROR_RECURSELOOP
PCRE2_ERROR_RECURSIONLIMIT
PCRE2_ERROR_REPMISSINGBRACE
PCRE2_ERROR_SCRIPT_RUN_NOT_AVAILABLE
PCRE2_ERROR_SUBPATTERN_NAMES_MISMATCH
PCRE2_ERROR_SUBPATTERN_NAME_EXPECTED
PCRE2_ERROR_SUBPATTERN_NAME_TOO_LONG
PCRE2_ERROR_SUBPATTERN_NUMBER_TOO_BIG
PCRE2_ERROR_SUPPORTED_ONLY_IN_UNICODE
PCRE2_ERROR_TOOMANYREPLACE
PCRE2_ERROR_TOO_MANY_CONDITION_BRANCHES
PCRE2_ERROR_TOO_MANY_NAMED_SUBPATTERNS
PCRE2_ERROR_UCP_IS_DISABLED
PCRE2_ERROR_UNAVAILABLE
PCRE2_ERROR_UNICODE_DISALLOWED_CODE_POINT
PCRE2_ERROR_UNICODE_NOT_SUPPORTED
PCRE2_ERROR_UNICODE_PROPERTIES_UNAVAILABLE
PCRE2_ERROR_UNKNOWN_ESCAPE
PCRE2_ERROR_UNKNOWN_POSIX_CLASS
PCRE2_ERROR_UNKNOWN_UNICODE_PROPERTY
PCRE2_ERROR_UNMATCHED_CLOSING_PARENTHESIS
PCRE2_ERROR_UNRECOGNIZED_AFTER_QUERY_P
PCRE2_ERROR_UNSET
PCRE2_ERROR_UNSUPPORTED_ESCAPE_SEQUENCE
PCRE2_ERROR_UTF16_ERR1

Error codes for UTF-16 validity checks

PCRE2_ERROR_UTF16_ERR2
PCRE2_ERROR_UTF16_ERR3
PCRE2_ERROR_UTF32_ERR1

Error codes for UTF-32 validity checks

PCRE2_ERROR_UTF32_ERR2
PCRE2_ERROR_UTF8_ERR1

Error codes for UTF-8 validity checks

PCRE2_ERROR_UTF8_ERR10
PCRE2_ERROR_UTF8_ERR11
PCRE2_ERROR_UTF8_ERR12
PCRE2_ERROR_UTF8_ERR13
PCRE2_ERROR_UTF8_ERR14
PCRE2_ERROR_UTF8_ERR15
PCRE2_ERROR_UTF8_ERR16
PCRE2_ERROR_UTF8_ERR17
PCRE2_ERROR_UTF8_ERR18
PCRE2_ERROR_UTF8_ERR19
PCRE2_ERROR_UTF8_ERR2
PCRE2_ERROR_UTF8_ERR20
PCRE2_ERROR_UTF8_ERR21
PCRE2_ERROR_UTF8_ERR3
PCRE2_ERROR_UTF8_ERR4
PCRE2_ERROR_UTF8_ERR5
PCRE2_ERROR_UTF8_ERR6
PCRE2_ERROR_UTF8_ERR7
PCRE2_ERROR_UTF8_ERR8
PCRE2_ERROR_UTF8_ERR9
PCRE2_ERROR_UTF_IS_DISABLED
PCRE2_ERROR_VERB_ARGUMENT_NOT_ALLOWED

Error 159 is obsolete and should now never occur

PCRE2_ERROR_VERB_NAME_TOO_LONG
PCRE2_ERROR_VERB_UNKNOWN
PCRE2_ERROR_VERSION_CONDITION_SYNTAX
PCRE2_ERROR_ZERO_RELATIVE_REFERENCE
PCRE2_EXTENDED
PCRE2_EXTENDED_MORE
PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES

An additional compile options word is available in the compile context.

PCRE2_EXTRA_ALT_BSUX
PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL
PCRE2_EXTRA_ESCAPED_CR_IS_LF
PCRE2_EXTRA_MATCH_LINE
PCRE2_EXTRA_MATCH_WORD
PCRE2_FIRSTLINE
PCRE2_INFO_ALLOPTIONS

Request types for pcre2_pattern_info()

PCRE2_INFO_ARGOPTIONS
PCRE2_INFO_BACKREFMAX
PCRE2_INFO_BSR
PCRE2_INFO_CAPTURECOUNT
PCRE2_INFO_DEPTHLIMIT
PCRE2_INFO_EXTRAOPTIONS
PCRE2_INFO_FIRSTBITMAP
PCRE2_INFO_FIRSTCODETYPE
PCRE2_INFO_FIRSTCODEUNIT
PCRE2_INFO_FRAMESIZE
PCRE2_INFO_HASBACKSLASHC
PCRE2_INFO_HASCRORLF
PCRE2_INFO_HEAPLIMIT
PCRE2_INFO_JCHANGED
PCRE2_INFO_JITSIZE
PCRE2_INFO_LASTCODETYPE
PCRE2_INFO_LASTCODEUNIT
PCRE2_INFO_MATCHEMPTY
PCRE2_INFO_MATCHLIMIT
PCRE2_INFO_MAXLOOKBEHIND
PCRE2_INFO_MINLENGTH
PCRE2_INFO_NAMECOUNT
PCRE2_INFO_NAMEENTRYSIZE
PCRE2_INFO_NAMETABLE
PCRE2_INFO_NEWLINE
PCRE2_INFO_RECURSIONLIMIT
PCRE2_INFO_SIZE
PCRE2_JIT_COMPLETE

These are for pcre2_jit_compile().

PCRE2_JIT_INVALID_UTF
PCRE2_JIT_PARTIAL_HARD
PCRE2_JIT_PARTIAL_SOFT
PCRE2_LITERAL
PCRE2_MATCH_UNSET_BACKREF
PCRE2_MULTILINE
PCRE2_NEVER_BACKSLASH_C
PCRE2_NEVER_UCP
PCRE2_NEVER_UTF
PCRE2_NEWLINE_ANY
PCRE2_NEWLINE_ANYCRLF
PCRE2_NEWLINE_CR

Newline and R settings, for use in compile contexts. The newline values must be kept in step with values set in config.h and both sets must all be greater than zero.

PCRE2_NEWLINE_CRLF
PCRE2_NEWLINE_LF
PCRE2_NEWLINE_NUL
PCRE2_NOTBOL

These are for pcre2_match(), pcre2_dfa_match(), pcre2_jit_match(), and pcre2_substitute(). Some are allowed only for one of the functions, and in these cases it is noted below. Note that PCRE2_ANCHORED, PCRE2_ENDANCHORED and PCRE2_NO_UTF_CHECK can also be passed to these functions (though pcre2_jit_match() ignores the latter since it bypasses all sanity checks).

PCRE2_NOTEMPTY
PCRE2_NOTEMPTY_ATSTART
PCRE2_NOTEOL
PCRE2_NO_AUTO_CAPTURE
PCRE2_NO_AUTO_POSSESS
PCRE2_NO_DOTSTAR_ANCHOR
PCRE2_NO_JIT
PCRE2_NO_START_OPTIMIZE
PCRE2_NO_UTF_CHECK
PCRE2_PARTIAL_HARD
PCRE2_PARTIAL_SOFT
PCRE2_SUBSTITUTE_EXTENDED
PCRE2_SUBSTITUTE_GLOBAL
PCRE2_SUBSTITUTE_OVERFLOW_LENGTH
PCRE2_SUBSTITUTE_UNKNOWN_UNSET
PCRE2_SUBSTITUTE_UNSET_EMPTY
PCRE2_UCP
PCRE2_UNGREEDY
PCRE2_USE_OFFSET_LIMIT
PCRE2_UTF
VERSION