Ruby
3.4.0dev (2024-11-05 revision e440268d51fe02b303e3817a7a733a0dac1c5091)
|
Represents the region of a capture group. More...
#include <rmatch.h>
Data Fields | |
long | beg |
Beginning of a group. More... | |
long | end |
End of a group. More... | |
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.