elixlsx v0.0.5 Elixlsx.Compiler.NumFmtDB
Summary
Functions
Return a list of tuples {id, NumFmt.t} for all custom (id >= 164) NumFmts
register an ID for a built-in NumFmt object
Types
t :: %Elixlsx.Compiler.NumFmtDB{nextid: non_neg_integer, numfmts: %{optional(Elixlsx.Style.NumFmt.t) => pos_integer}}
Functions
Specs
custom_numfmt_id_tuples(Elixlsx.Compiler.NumFmtDB.t) :: [{non_neg_integer, Elixlsx.Style.NumFmt.t}]
Return a list of tuples {id, NumFmt.t} for all custom (id >= 164) NumFmts.
Specs
id_sorted_numfmts(Elixlsx.Compiler.NumFmtDB.t) :: [Elixlsx.Style.NumFmt.t]
register an ID for a built-in NumFmt object.
built-in refers to the 164 objects (ids 0-163) that are defined or reserved in the XLSX standard. A NumFmt object mimicking the behaviour of such a built-in style can be associated with the built-in id using this function, which should save a couple of bytes in the resulting XLSX file.