Replacement of internal RegEx with PCRE2
The pattern and replacement matching behaviour has been changed purely
due to the nature of switching to a standards-compliant library.
One mistake in the previous behaviour was that named groups didn't have
a number. This has been corrected.
As names are actually just an alias of numbered groups,
RegExMatch::get_name_dict() is now get_names() and is a dict
referring to the group number it represents.
Duplicate names are enabled and the with the first matching instance
used.
Due the lack of a suitable equivalent in PCRE2, RegExMatch::expand() was
removed.
Showing
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/AUTHORS
0 → 100644
thirdparty/pcre2/LICENCE
0 → 100644
thirdparty/pcre2/src/config.h
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2.h
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_auto_possess.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_chartables.c
0 → 100644
thirdparty/pcre2/src/pcre2_compile.c
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
thirdparty/pcre2/src/pcre2_config.c
0 → 100644
thirdparty/pcre2/src/pcre2_context.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_dfa_match.c
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
thirdparty/pcre2/src/pcre2_error.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_find_bracket.c
0 → 100644
thirdparty/pcre2/src/pcre2_internal.h
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_intmodedep.h
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_jit_compile.c
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
thirdparty/pcre2/src/pcre2_jit_match.c
0 → 100644
thirdparty/pcre2/src/pcre2_jit_misc.c
0 → 100644
thirdparty/pcre2/src/pcre2_jit_test.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_maketables.c
0 → 100644
thirdparty/pcre2/src/pcre2_match.c
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
thirdparty/pcre2/src/pcre2_match_data.c
0 → 100644
thirdparty/pcre2/src/pcre2_newline.c
0 → 100644
thirdparty/pcre2/src/pcre2_ord2utf.c
0 → 100644
thirdparty/pcre2/src/pcre2_pattern_info.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_printint.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_serialize.c
0 → 100644
thirdparty/pcre2/src/pcre2_string_utils.c
0 → 100644
thirdparty/pcre2/src/pcre2_study.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_substitute.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_substring.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_tables.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_ucd.c
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
thirdparty/pcre2/src/pcre2_ucp.h
0 → 100644
thirdparty/pcre2/src/pcre2_valid_utf.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/pcre2_xclass.c
0 → 100644
thirdparty/pcre2/src/sljit/sljitConfig.h
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/sljit/sljitLir.c
0 → 100644
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/sljit/sljitLir.h
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
thirdparty/pcre2/src/sljit/sljitUtils.c
0 → 100644
Please
register
or
sign in
to comment