Skip to main content

Module coord

Module coord 

Source
Expand description

Compact coordinate representations shared across the engine and bindings.

Coord encodes an absolute cell position (row, column) in 64 bits with the same limits as Excel: 1,048,576 rows × 16,384 columns. RelativeCoord extends that layout with anchor flags that preserve the $A$1 semantics needed while parsing and adjusting formulas.

Structs§

Coord
Absolute grid coordinate (row, column) with Excel-compatible bounds.
RelativeCoord
Relative coordinate (row, column) with anchor flags.

Enums§

A1ParseError
Errors that can occur while parsing A1-style references.
CoordError
Errors returned when constructing coordinates from unchecked inputs.

Functions§

col_index_from_letters_1based
Convert Excel column letters into a 1-based column index.
col_letters_from_1based
Convert a 1-based column index into its Excel letters (1 → “A”).
parse_a1_1based
Parse an A1-style reference and return 1-based coordinates plus absolute flags.