ExVEx.Formula.Reference (ExVEx v0.2.0)

Copy Markdown View Source

Absolute-or-relative A1-style cell references, as they appear inside Excel formula tokens.

row_abs? / col_abs? indicate the presence of the $ prefix on each axis. A fully-absolute reference $A$1 has both true; a relative one A1 has both false.

Summary

Types

t()

@type t() :: %ExVEx.Formula.Reference{
  col: pos_integer(),
  col_abs?: boolean(),
  row: pos_integer(),
  row_abs?: boolean()
}

Functions

parse(ref)

@spec parse(String.t()) :: {:ok, t()} | :error

to_string(r)

@spec to_string(t()) :: String.t()