|
Ruby 4.1.0dev (2026-03-01 revision d68e4be1873e364c5ee24ed112bce4bc86e3a406)
|
A list of offsets of the start of lines in a string. More...
#include <pm_line_offset_list.h>
Data Fields | |
| size_t | size |
| The number of offsets in the list. | |
| size_t | capacity |
| The capacity of the list that has been allocated. | |
| uint32_t * | offsets |
| The list of offsets. | |
A list of offsets of the start of lines in a string.
The offsets are assumed to be sorted/inserted in ascending order.
Definition at line 28 of file pm_line_offset_list.h.
| size_t pm_line_offset_list_t::capacity |
The capacity of the list that has been allocated.
Definition at line 33 of file pm_line_offset_list.h.
Referenced by pm_line_offset_list_append(), pm_line_offset_list_free(), and pm_line_offset_list_init().
| uint32_t* pm_line_offset_list_t::offsets |
The list of offsets.
Definition at line 36 of file pm_line_offset_list.h.
Referenced by pm_line_offset_list_append(), pm_line_offset_list_free(), pm_line_offset_list_init(), pm_line_offset_list_line(), and pm_line_offset_list_line_column().
| size_t pm_line_offset_list_t::size |
The number of offsets in the list.
Definition at line 30 of file pm_line_offset_list.h.
Referenced by pm_line_offset_list_append(), pm_line_offset_list_clear(), pm_line_offset_list_init(), pm_line_offset_list_line(), and pm_line_offset_list_line_column().