]> granicus.if.org Git - onig/commitdiff
add onig_get_callout_name_from_id()
authorK.Kosako <kosako@sofnec.co.jp>
Fri, 9 Feb 2018 00:37:18 +0000 (09:37 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Fri, 9 Feb 2018 00:37:18 +0000 (09:37 +0900)
src/oniguruma.h
src/regparse.c

index 47530b4e8f453390e4ea259f3469fb0be88c2ec0..561973f2c8cf6fc17fec854efe84ca5ba9cf87b6 100644 (file)
@@ -935,7 +935,10 @@ ONIG_EXTERN
 int onig_set_retraction_callout_of_code P_((OnigCalloutFunc f));
 ONIG_EXTERN
 int onig_set_callout_of_name P_((UChar* name, UChar* name_end, OnigCalloutFunc callout, OnigCalloutFunc retraction_callout)); /* name: single-byte string */
+ONIG_EXTERN
+UChar* onig_get_callout_name_from_id P_((int id));
 
+/* used in callout functions */
 ONIG_EXTERN
 int onig_get_capture_range_in_callout P_((OnigCalloutArgs* args, int mem_num, int* begin, int* end));
 ONIG_EXTERN
index b1974fd078e384fb2229b882ba39e1c9cb00b0c9..5cc76388d57ca5f98aef3684e3ddd18e93502c8e 100644 (file)
@@ -1505,6 +1505,12 @@ onig_get_retraction_callout_func_from_id(int id)
   return CalloutNameFuncList->v[id].retraction_callout;
 }
 
+extern UChar*
+onig_get_callout_name_from_id(int id)
+{
+  return CalloutNameFuncList->v[id].name;
+}
+
 extern int
 onig_callout_names_free(void)
 {