add capture name to returned matches

I agree & my personal pref would be to wrap it, but I found a few other examples of long, unwrapped function declarations (see onig-searcher.cc & .h), so trying to match their style.