You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C API exposes an iterator over all captures (rure_iter_next_captures), and can return the index of a given capture group name (rure_capture_name_index). The Rust Regex struct has a capture_names iterator, but that doesn't appear to be exposed at the C level.
I don't see a way to retrieve the capture group name while iterating over the set of captures (i.e., given the index of a particular capture give me the corresponding name, hypothetically rure_capture_index_name), or to return the list of capture group names (rure_iter_capture_groups, for example).
The text was updated successfully, but these errors were encountered:
@davidblewett That'd be awesome! I'm not a C expert either but I'd be happy to help mentor you if you'd like. I'm on IRC in the evenings during the week.
The C API exposes an iterator over all captures (
rure_iter_next_captures
), and can return the index of a given capture group name (rure_capture_name_index
). The Rust Regex struct has acapture_names
iterator, but that doesn't appear to be exposed at the C level.I don't see a way to retrieve the capture group name while iterating over the set of captures (i.e., given the index of a particular capture give me the corresponding name, hypothetically
rure_capture_index_name
), or to return the list of capture group names (rure_iter_capture_groups
, for example).The text was updated successfully, but these errors were encountered: