diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-04-20 20:33:51 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-04-20 20:33:51 +0200 |
commit | 6b986090d954dbac91bbb3c43ce7c3328c91a780 (patch) | |
tree | 34b34e41a3f7b7f4794c75be4482bb14695f36a9 /sample/encode.c | |
parent | 4216de6a3336cbc6dddb572cb7e6ab6193bf3729 (diff) |
New upstream version 6.9.5upstream/6.9.5
Diffstat (limited to 'sample/encode.c')
-rw-r--r-- | sample/encode.c | 3 |
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"); |