summaryrefslogtreecommitdiff
path: root/sample/encode.c
diff options
context:
space:
mode:
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");