Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade module re from PCRE to PCRE2 #9299

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b81a17c
Use PCRE2
sverker Nov 7, 2024
175473c
Regenerate re_testoutput1_replacement/skip_test.erl
sverker Nov 21, 2024
78f7690
ToDo: ACCEPT split mystery
sverker Nov 21, 2024
2498a1c
ToDo: COMMIT:X mystery
sverker Nov 21, 2024
3d92974
Todo: Lookbehind assertion with variable length mystery
sverker Nov 21, 2024
6e0ddbc
Surrender tests to pure ASCII. No default Latin1 support.
sverker Nov 26, 2024
e09472f
erts: Updated re documentation to match with pcre2
frazze-jobb Nov 28, 2024
1bb0466
Enable trapping in erl_re_bif.c
frazze-jobb Dec 9, 2024
1a07a49
Add BUGSKIP for some pcre tests that fail with option 'global'
sverker Dec 11, 2024
75f237d
Import PCRE2 in OTP repo
sverker Jan 8, 2025
cc0f609
added macros
frazze-jobb Jan 10, 2025
fc3a2cb
Suppress warnings as errors in PCRE2 code
sverker Jan 14, 2025
1c7eca0
fix bug in global handling so that it behaves correctly in patterns
frazze-jobb Jan 15, 2025
71fcecd
add support for {newline, nul}
frazze-jobb Jan 15, 2025
35765ed
updated .gitignore file to ignore generated file for pcre2
frazze-jobb Jan 15, 2025
840e7be
Improve compiled regex memory handling
sverker Jan 16, 2025
b05d0c6
document newline nul option
frazze-jobb Jan 15, 2025
d40f184
Run re:replace on pcre testcase in the re_SUITE
frazze-jobb Jan 21, 2025
6812f87
erts: update copyright and license
frazze-jobb Jan 26, 2025
c0b652f
Optimize away copy of text regex if already is binary
sverker Jan 21, 2025
13f6703
Reintroduce the old PCRE1 tests to check compatibility
sverker Jan 21, 2025
c6b4e1b
Skip test pcre incompat for \cx
sverker Jan 22, 2025
db30bff
Skip test pcre incompat PCRE2_ERROR_ESCAPE_INVALID_IN_CLASS
sverker Jan 23, 2025
04b9ce2
Skip test pcre incompat for \K in lookarounds
sverker Jan 23, 2025
fa620ce
Skip test pcre incompat for Recursive backreferences
sverker Jan 23, 2025
48f7576
Skip test pcre incompat strange character class [\d-z]
sverker Jan 27, 2025
50f8987
Skip test pcre incompat PCRE2_ERROR_BAD_SUBPATTERN_REFERENCE
sverker Jan 27, 2025
becfffe
Skip test pcre incompat PCRE2_ERROR_UNKNOWN_ESCAPE
sverker Jan 27, 2025
5943978
Skip test pcre incompat PCRE2_ERROR_CLASS_INVALID_RANGE
sverker Jan 27, 2025
4097805
Skip test pcre incompat PCRE2_ERROR_UNKNOWN_ESCAPE
sverker Jan 27, 2025
12c257d
Skip test pcre incompat for newline and bsr_* options
sverker Jan 27, 2025
b93d160
Skip test pcre incompat Latin1 locale
sverker Jan 27, 2025
4b8cffe
Skip test pcre incompat Unicode character properties
sverker Jan 27, 2025
0aadcb9
Skip test pcre incompat empty capture group name
sverker Jan 27, 2025
1856276
Skip multi line comments as fake regex starting with "--"
sverker Jan 27, 2025
2daf15c
Skip test pcre incompat lookbehind limit
sverker Jan 28, 2025
0b2e334
Fix test pcre incompat conditional with (*SKIP)
sverker Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion erts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/emulator/test/*_no_opt_SUITE.erl
/emulator/test/*_r25_SUITE.erl

/emulator/pcre/pcre_exec_loop_break_cases.inc
/emulator/pcre/pcre2_match_loop_break_cases.inc
/emulator/beam/erl_db_insert_list.ycf.h

/emulator/ryu/obj
Expand Down
1 change: 1 addition & 0 deletions erts/emulator/beam/atom.names
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ atom notempty_atstart
atom notify
atom notsup
atom nouse_stdio
atom nul
atom off_heap
atom offset
atom ok
Expand Down
5 changes: 3 additions & 2 deletions erts/emulator/beam/erl_alloc.types
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ type PTAB_LIST_DEL SHORT_LIVED PROCESSES ptab_list_deleted_el
type PTAB_LIST_CNKI SHORT_LIVED PROCESSES ptab_list_chunk_info
type PTAB_LIST_PIDS SHORT_LIVED PROCESSES ptab_list_pids
type RE_TMP_BUF TEMPORARY SYSTEM re_tmp_buf
type RE_SHORTLIVED SHORT_LIVED SYSTEM re_shortlived
type RE_INIT LONG_LIVED SYSTEM re_init
type RE_SUBJECT SHORT_LIVED SYSTEM re_subject
type RE_HEAP STANDARD SYSTEM re_heap
type RE_STACK SHORT_LIVED SYSTEM re_stack
type RE_PRECOMPILE STANDARD SYSTEM re_precompile
type UNICODE_BUFFER SHORT_LIVED SYSTEM unicode_buffer
type BINARY_BUFFER SHORT_LIVED SYSTEM binary_buffer
type PRE_ALLOC_DATA LONG_LIVED SYSTEM pre_alloc_data
Expand Down
Loading
Loading