From: K.Kosako Date: Tue, 13 Feb 2018 06:11:57 +0000 (+0900) Subject: add onig_get_right_range_of_callout_args() X-Git-Tag: v6.8.0~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4003168f984e4558645e18fcc01691e84a35c8d0;p=onig add onig_get_right_range_of_callout_args() --- diff --git a/src/oniguruma.h b/src/oniguruma.h index 0ba3f74..4daf2c1 100644 --- a/src/oniguruma.h +++ b/src/oniguruma.h @@ -943,6 +943,8 @@ const OnigUChar* onig_get_content_end_of_callout_args P_((OnigCalloutArgs* args) ONIG_EXTERN const OnigUChar* onig_get_start_of_callout_args P_((OnigCalloutArgs* args)); ONIG_EXTERN +const OnigUChar* onig_get_right_range_of_callout_args P_((OnigCalloutArgs* args)); +ONIG_EXTERN const OnigUChar* onig_get_current_of_callout_args P_((OnigCalloutArgs* args)); ONIG_EXTERN OnigRegex onig_get_regex_of_callout_args P_((OnigCalloutArgs* args)); diff --git a/src/regexec.c b/src/regexec.c index 3925d7d..a51298e 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -4928,6 +4928,13 @@ onig_get_start_of_callout_args(OnigCalloutArgs* args) return a->start; } +extern const UChar* +onig_get_right_range_of_callout_args(OnigCalloutArgs* args) +{ + CalloutArgs* a = (CalloutArgs* )args; + return a->right_range; +} + extern const UChar* onig_get_current_of_callout_args(OnigCalloutArgs* args) {