Skip to main content

split_ref

Function split_ref 

Source
pub fn split_ref(reference: &str, current_sheet: &str) -> (String, String)
Expand description

Split a possibly sheet-qualified, possibly $-anchored reference string into (sheet, canonical_addr), defaulting the sheet to current_sheet when the reference is unqualified. The sheet name keeps any surrounding '…' quoting stripped.

Public so per-room row-offset rebasing can reuse the SAME cross-sheet/anchor-stripping split (no second A1 parser). Total + fallible: it never panics.