summaryrefslogtreecommitdiff
path: root/sample/encode.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-21 06:47:36 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-21 06:47:36 +0200
commita792c4308d32f68f34131ff89e124190e4513c38 (patch)
tree68d5ba9857cafd597ea84011077a83e43f2d1620 /sample/encode.c
parent9e629c8f43b43617fa5b7d3654f7d81e81b8a427 (diff)
parentd1ffcb88ee95aded1bc4aef56f4f39951ad03ceb (diff)
Merge branch 'release/debian/6.9.5-1'debian/6.9.5-1
Diffstat (limited to 'sample/encode.c')
-rw-r--r--sample/encode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sample/encode.c b/sample/encode.c
index c5d4771..9e9a0c7 100644
--- a/sample/encode.c
+++ b/sample/encode.c
@@ -161,6 +161,9 @@ extern int main(int argc, char* argv[])
r = exec(ONIG_ENCODING_GB18030, ONIG_OPTION_IGNORECASE,
"(Aa\\d)+", "BaA5Aa0234");
+ r = exec(ONIG_ENCODING_GB18030, ONIG_OPTION_NONE,
+ "[[^\\w]]+[^\xee\xef]\xee\xef", "[[^\\w]]+[^\xee\xef]\xee\xef");
+
r = exec(ONIG_ENCODING_UTF16_BE, ONIG_OPTION_IGNORECASE,
"\000[\000\337\000]\000\000", "\000S\000S\000\000");