onig_sys::onig_name_to_backref_number [] [src]

pub unsafe extern fn onig_name_to_backref_number(reg: OnigRegex, name: *const c_uchar, name_end: *const c_uchar, region: *const OnigRegion) -> c_int

Return the group number corresponding to the named backref (\k). If two or more regions for the groups of the name are effective, the greatest number in it is obtained.

int onig_name_to_backref_number(regex_t* reg, const UChar* name, const UChar* name_end, OnigRegion *region)

normal return: group number.

arguments 1 reg: regex object. 2 name: group name. 3 name_end: terminate address of group name. 4 region: search/match result region.