|
Ruby 4.1.0dev (2026-11-16 revision 9c7bc705b8bd4542beac71542a8ea79f9bb7622b)
|
Represents the region of a capture group. More...
#include <rmatch.h>
Data Fields | |
| rb_len_t | beg |
| Beginning of a group. | |
| rb_len_t | 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.