elixlsx v0.0.1 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: %{Elixlsx.Style.NumFmt.t => pos_integer}}

Functions

custom_numfmt_id_tuples(db)

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.

get_id(db, value)
id_sorted_numfmts(db)

Specs

register_builtin(db, value, id)

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.

register_numfmt(db, value)