diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-05-10 05:15:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-05-10 05:15:59 +0200 |
commit | e706cbe5496e1829d1ddbe4d5bb0a6728204e510 (patch) | |
tree | c72d1848ac6aef07703848d0ffbe80f1336a81cd /sample/names.c | |
parent | 69ab3addbc2dbbc90c311b2845cd25a2159435cd (diff) | |
parent | 5e01a4852b31d537307994248869caf38b4023cc (diff) |
new upstream release
Diffstat (limited to 'sample/names.c')
-rw-r--r-- | sample/names.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sample/names.c b/sample/names.c index 6667eb5..2cf3a2f 100644 --- a/sample/names.c +++ b/sample/names.c @@ -35,6 +35,9 @@ extern int main(int argc, char* argv[]) static UChar* pattern = (UChar* )"(?<foo>a*)(?<bar>b*)(?<foo>c*)"; static UChar* str = (UChar* )"aaabbbbcc"; + OnigEncoding use_encs[] = { ONIG_ENCODING_ASCII }; + onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0])); + r = onig_new(®, pattern, pattern + strlen((char* )pattern), ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, ONIG_SYNTAX_DEFAULT, &einfo); if (r != ONIG_NORMAL) { |