onig_sys::onig_noname_group_capture_is_active [] [src]

pub unsafe extern fn onig_noname_group_capture_is_active(reg: OnigRegex) -> c_int

Return noname group capture activity.

int onig_noname_group_capture_is_active(regex_t* reg)

active: 1 inactive: 0

Arguments

  1. reg: regex object.

    if option ONIG_OPTION_DONT_CAPTURE_GROUP == ON --> inactive

    if the regex pattern have named group and syntax ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP == ON and option ONIG_OPTION_CAPTURE_GROUP == OFF --> inactive

    else --> active