Ruby 4.1.0dev (2026-04-04 revision 3b6245536cf55da9e8bfcdb03c845fe9ef931d7f)
Data Fields
pm_line_offset_list_t Struct Reference

A list of offsets of the start of lines in a string. More...

#include <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.
 

Detailed Description

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 27 of file line_offset_list.h.

Field Documentation

◆ capacity

size_t pm_line_offset_list_t::capacity

The capacity of the list that has been allocated.

Definition at line 32 of file line_offset_list.h.

◆ offsets

uint32_t* pm_line_offset_list_t::offsets

The list of offsets.

Definition at line 35 of file line_offset_list.h.

Referenced by pm_line_offset_list_line_column().

◆ size

size_t pm_line_offset_list_t::size

The number of offsets in the list.

Definition at line 29 of file line_offset_list.h.

Referenced by pm_line_offset_list_line_column().


The documentation for this struct was generated from the following file: