names()
public
Returns a list of names of captures as an
array of strings.
/(?<foo>.)(?<bar>.)(?<baz>.)/.names
/(?<foo>.)(?<foo>.)/.names
/(.)(.)/.names
static VALUE
rb_reg_names(VALUE re)
{
VALUE ary = rb_ary_new();
rb_reg_check(re);
onig_foreach_name(RREGEXP(re)->ptr, reg_names_iter, (void*)ary);
return ary;
}