Ruby 3.5.0dev (2025-06-27 revision 4965954556b1db71fba6ce090cc217e97641687e)
|
Represents the region of a capture group. More...
#include <rmatch.h>
Data Fields | |
long | beg |
Beginning of a group. | |
long | end |
End of a group. | |
Represents the region of a capture group.
This is basically for caching purpose. re_registers have similar concepts (beg
and end
) but they are in ptrdiff_t*
. In order for us to implement MatchData#offset
that info has to be converted to offset integers. This is the struct to hold such things.