summaryrefslogtreecommitdiff
path: root/sample/encode.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:58 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:58 +0200
commit73c6133c32cddae59813cbadf655cb50a3a7356a (patch)
tree0935fb6da7f1d9728b42ddf08395a0e977e1c228 /sample/encode.c
parent043fff5b6f2461aeccb1c62cb771826cfe301832 (diff)
parent6b986090d954dbac91bbb3c43ce7c3328c91a780 (diff)
Update upstream source from tag 'upstream/6.9.5'
Update to upstream version '6.9.5' with Debian dir 1312d9badb7f1c47d032cf09765074e8fd80c991
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");