compute_style_is_date

Function compute_style_is_date 

Source
pub fn compute_style_is_date(stylesheet: &StyleSheet) -> Vec<bool>
Expand description

Precompute, for each entry in stylesheet.cell_xfs, whether the referenced number format is a date/time format.

Returns a Vec<bool> parallel to cell_xfs, where true marks a style that points at either a built-in date/time number format (IDs 14-22, 45-47) or a custom number format whose format code contains date/time tokens.

Consumers like the streaming reader can index into the returned vector with a cell’s s attribute to cheaply decide whether a t="n" cell should be promoted to CellValue::Date under the DateInterpretation::NumFmt policy.