diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 09:18:18 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 09:18:18 +0200 |
commit | 5c29b174a11e992dac68553f08645fe4a825c315 (patch) | |
tree | 7c72e5a49112a844a53a2c10ef1fda47867aee92 /sample/syntax.c | |
parent | 6cac1738b6aebf75b29d225775030d291319f9a2 (diff) | |
parent | e25c754918ae26e8b9e68a47bc1af36248e91800 (diff) |
Update upstream source from tag 'upstream/6.9.2'
Update to upstream version '6.9.2'
with Debian dir a351ad757689417d0ede510a023d625faee8e3e9
Diffstat (limited to 'sample/syntax.c')
-rw-r--r-- | sample/syntax.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sample/syntax.c b/sample/syntax.c index 02af2ea..e292079 100644 --- a/sample/syntax.c +++ b/sample/syntax.c @@ -5,8 +5,7 @@ #include <string.h> #include "oniguruma.h" -extern int exec(OnigSyntaxType* syntax, - char* apattern, char* astr) +extern int exec(OnigSyntaxType* syntax, char* apattern, char* astr) { int r; unsigned char *start, *range, *end; @@ -17,7 +16,7 @@ extern int exec(OnigSyntaxType* syntax, UChar* str = (UChar* )astr; r = onig_new(®, pattern, pattern + strlen((char* )pattern), - ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, syntax, &einfo); + ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, syntax, &einfo); if (r != ONIG_NORMAL) { char s[ONIG_MAX_ERROR_MESSAGE_LEN]; onig_error_code_to_str((UChar* )s, r, &einfo); @@ -62,11 +61,10 @@ extern int main(int argc, char* argv[]) onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0])); r = exec(ONIG_SYNTAX_PERL, - "\\p{XDigit}\\P{XDigit}\\p{^XDigit}\\P{^XDigit}\\p{XDigit}", - "bgh3a"); + "\\p{XDigit}\\P{XDigit}\\p{^XDigit}\\P{^XDigit}\\p{XDigit}", + "bgh3a"); - r = exec(ONIG_SYNTAX_JAVA, - "\\p{XDigit}\\P{XDigit}[a-c&&b-g]", "bgc"); + r = exec(ONIG_SYNTAX_JAVA, "\\p{XDigit}\\P{XDigit}[a-c&&b-g]", "bgc"); r = exec(ONIG_SYNTAX_ASIS, "abc def* e+ g?ddd[a-rvvv] (vv){3,7}hv\\dvv(?:aczui ss)\\W\\w$", |