aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/test/re_testoutput1_replacement_test.erl56
-rw-r--r--lib/stdlib/test/re_testoutput1_split_test.erl54
2 files changed, 55 insertions, 55 deletions
diff --git a/lib/stdlib/test/re_testoutput1_replacement_test.erl b/lib/stdlib/test/re_testoutput1_replacement_test.erl
index 3aa5447ab8..bb43047757 100644
--- a/lib/stdlib/test/re_testoutput1_replacement_test.erl
+++ b/lib/stdlib/test/re_testoutput1_replacement_test.erl
@@ -15043,10 +15043,10 @@ def">> = iolist_to_binary(re:replace("abc
def","abc$","\\1aguwNOw&Q&p&",[global])),
<<"abcSuqabcSwabcabcSabcsxWGOk">> = iolist_to_binary(re:replace("abcS","(abc)\\123","&uq&w\\1&\\1sxWGOk",[])),
<<"abcSuqabcSwabcabcSabcsxWGOk">> = iolist_to_binary(re:replace("abcS","(abc)\\123","&uq&w\\1&\\1sxWGOk",[global])),
- <<"dMwabc�Xqyabc�abc�i">> = iolist_to_binary(re:replace("abc�","(abc)\\223","dMw&Xqy&&i",[])),
- <<"dMwabc�Xqyabc�abc�i">> = iolist_to_binary(re:replace("abc�","(abc)\\223","dMw&Xqy&&i",[global])),
- <<"MiqonlGabc�YdXabcf">> = iolist_to_binary(re:replace("abc�","(abc)\\323","MiqonlG&YdX\\1f",[])),
- <<"MiqonlGabc�YdXabcf">> = iolist_to_binary(re:replace("abc�","(abc)\\323","MiqonlG&YdX\\1f",[global])),
+ <<"dMwabc“Xqyabc“abc“i">> = iolist_to_binary(re:replace("abc“","(abc)\\223","dMw&Xqy&&i",[])),
+ <<"dMwabc“Xqyabc“abc“i">> = iolist_to_binary(re:replace("abc“","(abc)\\223","dMw&Xqy&&i",[global])),
+ <<"MiqonlGabcÓYdXabcf">> = iolist_to_binary(re:replace("abcÓ","(abc)\\323","MiqonlG&YdX\\1f",[])),
+ <<"MiqonlGabcÓYdXabcf">> = iolist_to_binary(re:replace("abcÓ","(abc)\\323","MiqonlG&YdX\\1f",[global])),
<<"mTlabc@bdhBATwW">> = iolist_to_binary(re:replace("abc@","(abc)\\100","mTl&bdhBATwW",[])),
<<"mTlabc@bdhBATwW">> = iolist_to_binary(re:replace("abc@","(abc)\\100","mTl&bdhBATwW",[global])),
<<"QabcRSbUabc@Rabc@abc@fabckabcWabc">> = iolist_to_binary(re:replace("abc@","(abc)\\100","Q\\1RSbU&R&&f\\1k\\1W\\1",[])),
@@ -18423,8 +18423,8 @@ run34() ->
<<"FxjIeXxjLM">> = iolist_to_binary(re:replace("M","\\M","FxjIeXxjL&",[global])),
<<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(re:replace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b","\\1AGI&o&owvv&Ew",[])),
<<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(re:replace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b","\\1AGI&o&owvv&Ew",[global])),
- <<"�XAZidYPfGETo">> = iolist_to_binary(re:replace("�XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[])),
- <<"�XAZidYPfGETo">> = iolist_to_binary(re:replace("�XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[global])),
+ <<"„XAZidYPfGETo">> = iolist_to_binary(re:replace("„XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[])),
+ <<"„XAZidYPfGETo">> = iolist_to_binary(re:replace("„XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[global])),
<<"bNQDHCQab cd defgab cd defgLqxKPLt">> = iolist_to_binary(re:replace("ab cd defg","ab cd (?x) de fg","bNQDHCQ&&LqxKPLt",[])),
<<"bNQDHCQab cd defgab cd defgLqxKPLt">> = iolist_to_binary(re:replace("ab cd defg","ab cd (?x) de fg","bNQDHCQ&&LqxKPLt",[global])),
<<"kPHqOwBhoab cddefgWcAxPfqs">> = iolist_to_binary(re:replace("ab cddefg","ab cd(?x) de fg","k\\1PHqOwBho&WcAxP\\1fqs",[])),
@@ -18950,37 +18950,37 @@ run40() ->
<<"JqKpfdXTX X MbyX X X X ">> = iolist_to_binary(re:replace("X X ","\\H\\h\\V\\v","JqKpfdXT&Mby&\\1&",[global])),
<<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H\\h\\V\\v","FAmVe\\1O",[])),
<<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H\\h\\V\\v","FAmVe\\1O",[global])),
- <<"� X">> = iolist_to_binary(re:replace("� X","\\H\\h\\V\\v","\\1mSDSJp",[])),
- <<"� X">> = iolist_to_binary(re:replace("� X","\\H\\h\\V\\v","\\1mSDSJp",[global])),
- <<"JagFUGCxoJ �X
- SMGCK">> = iolist_to_binary(re:replace(" �X
+ <<"  X">> = iolist_to_binary(re:replace("  X","\\H\\h\\V\\v","\\1mSDSJp",[])),
+ <<"  X">> = iolist_to_binary(re:replace("  X","\\H\\h\\V\\v","\\1mSDSJp",[global])),
+ <<"JagFUGCxoJ  X
+ SMGCK">> = iolist_to_binary(re:replace("  X
","\\H*\\h+\\V?\\v{3,4}","JagFUGCxoJ&\\1SMGCK",[])),
- <<"JagFUGCxoJ �X
- SMGCK">> = iolist_to_binary(re:replace(" �X
+ <<"JagFUGCxoJ  X
+ SMGCK">> = iolist_to_binary(re:replace("  X
","\\H*\\h+\\V?\\v{3,4}","JagFUGCxoJ&\\1SMGCK",[global])),
- <<" �
- an �
- uIjsv">> = iolist_to_binary(re:replace(" �
+ <<"  
+ an  
+ uIjsv">> = iolist_to_binary(re:replace("  
","\\H*\\h+\\V?\\v{3,4}","&an&\\1uIjsv\\1",[])),
- <<" �
- an �
- uIjsv">> = iolist_to_binary(re:replace(" �
+ <<"  
+ an  
+ uIjsv">> = iolist_to_binary(re:replace("  
","\\H*\\h+\\V?\\v{3,4}","&an&\\1uIjsv\\1",[global])),
- <<" �
- Cnyt �
- sJWoCUIsrr">> = iolist_to_binary(re:replace(" �
+ <<"  
+ Cnyt  
+ sJWoCUIsrr">> = iolist_to_binary(re:replace("  
","\\H*\\h+\\V?\\v{3,4}","&C\\1nyt\\1\\1&\\1sJWoCUIsrr",[])),
- <<" �
- Cnyt �
- sJWoCUIsrr">> = iolist_to_binary(re:replace(" �
+ <<"  
+ Cnyt  
+ sJWoCUIsrr">> = iolist_to_binary(re:replace("  
","\\H*\\h+\\V?\\v{3,4}","&C\\1nyt\\1\\1&\\1sJWoCUIsrr",[global])),
<<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H*\\h+\\V?\\v{3,4}","heJfENVeR\\1TJ\\1&&Dvf",[])),
<<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H*\\h+\\V?\\v{3,4}","heJfENVeR\\1TJ\\1&&Dvf",[global])),
- <<" �
- ">> = iolist_to_binary(re:replace(" �
+ <<"  
+ ">> = iolist_to_binary(re:replace("  
","\\H*\\h+\\V?\\v{3,4}","g&",[])),
- <<" �
- ">> = iolist_to_binary(re:replace(" �
+ <<"  
+ ">> = iolist_to_binary(re:replace("  
","\\H*\\h+\\V?\\v{3,4}","g&",[global])),
<<"XY bvHE">> = iolist_to_binary(re:replace("XY ABCDE","\\H{3,4}","bvH",[])),
<<"XY bvHE">> = iolist_to_binary(re:replace("XY ABCDE","\\H{3,4}","bvH",[global])),
diff --git a/lib/stdlib/test/re_testoutput1_split_test.erl b/lib/stdlib/test/re_testoutput1_split_test.erl
index 626a0544fb..fcffa89e3f 100644
--- a/lib/stdlib/test/re_testoutput1_split_test.erl
+++ b/lib/stdlib/test/re_testoutput1_split_test.erl
@@ -22940,14 +22940,14 @@ def","abc$",[]))),
<<":abc:">> = iolist_to_binary(join(re:split("abcS","(abc)\\123",[{parts,
2}]))),
<<":abc:">> = iolist_to_binary(join(re:split("abcS","(abc)\\123",[]))),
- <<":abc">> = iolist_to_binary(join(re:split("abc�","(abc)\\223",[trim]))),
- <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\223",[{parts,
+ <<":abc">> = iolist_to_binary(join(re:split("abc“","(abc)\\223",[trim]))),
+ <<":abc:">> = iolist_to_binary(join(re:split("abc“","(abc)\\223",[{parts,
2}]))),
- <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\223",[]))),
- <<":abc">> = iolist_to_binary(join(re:split("abc�","(abc)\\323",[trim]))),
- <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\323",[{parts,
+ <<":abc:">> = iolist_to_binary(join(re:split("abc“","(abc)\\223",[]))),
+ <<":abc">> = iolist_to_binary(join(re:split("abcÓ","(abc)\\323",[trim]))),
+ <<":abc:">> = iolist_to_binary(join(re:split("abcÓ","(abc)\\323",[{parts,
2}]))),
- <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\323",[]))),
+ <<":abc:">> = iolist_to_binary(join(re:split("abcÓ","(abc)\\323",[]))),
<<":abc">> = iolist_to_binary(join(re:split("abc@","(abc)\\100",[trim]))),
<<":abc:">> = iolist_to_binary(join(re:split("abc@","(abc)\\100",[{parts,
2}]))),
@@ -29024,10 +29024,10 @@ run34() ->
<<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(join(re:split("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b",[{parts,
2}]))),
<<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(join(re:split("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b",[]))),
- <<"�XAZ">> = iolist_to_binary(join(re:split("�XAZXB","(?<=Z)X.",[trim]))),
- <<"�XAZ:">> = iolist_to_binary(join(re:split("�XAZXB","(?<=Z)X.",[{parts,
+ <<"„XAZ">> = iolist_to_binary(join(re:split("„XAZXB","(?<=Z)X.",[trim]))),
+ <<"„XAZ:">> = iolist_to_binary(join(re:split("„XAZXB","(?<=Z)X.",[{parts,
2}]))),
- <<"�XAZ:">> = iolist_to_binary(join(re:split("�XAZXB","(?<=Z)X.",[]))),
+ <<"„XAZ:">> = iolist_to_binary(join(re:split("„XAZXB","(?<=Z)X.",[]))),
<<"">> = iolist_to_binary(join(re:split("ab cd defg","ab cd (?x) de fg",[trim]))),
<<":">> = iolist_to_binary(join(re:split("ab cd defg","ab cd (?x) de fg",[{parts,
2}]))),
@@ -30042,40 +30042,40 @@ run40() ->
<<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H\\h\\V\\v",[{parts,
2}]))),
<<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H\\h\\V\\v",[]))),
- <<"� X">> = iolist_to_binary(join(re:split("� X","\\H\\h\\V\\v",[trim]))),
- <<"� X">> = iolist_to_binary(join(re:split("� X","\\H\\h\\V\\v",[{parts,
+ <<"  X">> = iolist_to_binary(join(re:split("  X","\\H\\h\\V\\v",[trim]))),
+ <<"  X">> = iolist_to_binary(join(re:split("  X","\\H\\h\\V\\v",[{parts,
2}]))),
- <<"� X">> = iolist_to_binary(join(re:split("� X","\\H\\h\\V\\v",[]))),
- <<"">> = iolist_to_binary(join(re:split(" �X
+ <<"  X">> = iolist_to_binary(join(re:split("  X","\\H\\h\\V\\v",[]))),
+ <<"">> = iolist_to_binary(join(re:split("  X
","\\H*\\h+\\V?\\v{3,4}",[trim]))),
- <<":">> = iolist_to_binary(join(re:split(" �X
+ <<":">> = iolist_to_binary(join(re:split("  X
","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))),
- <<":">> = iolist_to_binary(join(re:split(" �X
+ <<":">> = iolist_to_binary(join(re:split("  X
","\\H*\\h+\\V?\\v{3,4}",[]))),
- <<"">> = iolist_to_binary(join(re:split(" �
+ <<"">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[trim]))),
- <<":">> = iolist_to_binary(join(re:split(" �
+ <<":">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))),
- <<":">> = iolist_to_binary(join(re:split(" �
+ <<":">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[]))),
- <<"">> = iolist_to_binary(join(re:split(" �
+ <<"">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[trim]))),
- <<":">> = iolist_to_binary(join(re:split(" �
+ <<":">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))),
- <<":">> = iolist_to_binary(join(re:split(" �
+ <<":">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[]))),
<<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H*\\h+\\V?\\v{3,4}",[trim]))),
<<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H*\\h+\\V?\\v{3,4}",[{parts,
2}]))),
<<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H*\\h+\\V?\\v{3,4}",[]))),
- <<" �
- ">> = iolist_to_binary(join(re:split(" �
+ <<"  
+ ">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[trim]))),
- <<" �
- ">> = iolist_to_binary(join(re:split(" �
+ <<"  
+ ">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))),
- <<" �
- ">> = iolist_to_binary(join(re:split(" �
+ <<"  
+ ">> = iolist_to_binary(join(re:split("  
","\\H*\\h+\\V?\\v{3,4}",[]))),
<<"XY :E">> = iolist_to_binary(join(re:split("XY ABCDE","\\H{3,4}",[trim]))),
<<"XY :E">> = iolist_to_binary(join(re:split("XY ABCDE","\\H{3,4}",[{parts,