Ruby
3.4.0dev (2024-11-22 revision 0989400a925cd201defdca9eb28eb87200b30785)
|
A list of offsets of newlines in a string. More...
#include <pm_newline_list.h>
Data Fields | |
const uint8_t * | start |
A pointer to the start of the source string. More... | |
size_t | size |
The number of offsets in the list. More... | |
size_t | capacity |
The capacity of the list that has been allocated. More... | |
size_t * | offsets |
The list of offsets. More... | |
A list of offsets of newlines in a string.
The offsets are assumed to be sorted/inserted in ascending order.
Definition at line 28 of file pm_newline_list.h.
size_t pm_newline_list_t::capacity |
The capacity of the list that has been allocated.
Definition at line 36 of file pm_newline_list.h.
Referenced by pm_newline_list_append(), and pm_newline_list_init().
size_t* pm_newline_list_t::offsets |
The list of offsets.
Definition at line 39 of file pm_newline_list.h.
Referenced by pm_newline_list_append(), pm_newline_list_free(), pm_newline_list_init(), pm_newline_list_line(), and pm_newline_list_line_column().
size_t pm_newline_list_t::size |
The number of offsets in the list.
Definition at line 33 of file pm_newline_list.h.
Referenced by pm_newline_list_append(), pm_newline_list_clear(), pm_newline_list_init(), pm_newline_list_line(), and pm_newline_list_line_column().
const uint8_t* pm_newline_list_t::start |
A pointer to the start of the source string.
Definition at line 30 of file pm_newline_list.h.
Referenced by pm_newline_list_append(), pm_newline_list_init(), pm_newline_list_line(), and pm_newline_list_line_column().