Function onig_sys::onig_name_to_group_numbers [] [src]

pub unsafe extern "C" fn onig_name_to_group_numbers(
    reg: OnigRegex,
    name: *const OnigUChar,
    name_end: *const OnigUChar,
    num_list: *mut *const c_int
) -> c_int

Return the group number list of the name. Named subexp is defined by (?....).

int onig_name_to_group_numbers(regex_t* reg, const UChar* name, const UChar* name_end, int** num_list)

normal return: number of groups for the name. (ex. /(?..)(?..)/ ==> 2) name not found: -1

arguments 1 reg: regex object. 2 name: group name. 3 name_end: terminate address of group name. 4 num_list: return list of group number.