31 #include <xlnt/xlnt_config.hpp> 32 #include <xlnt/utils/optional.hpp> 177 static bool is_builtin_format(std::size_t builtin_id);
183 static const number_format &from_builtin_id(std::size_t builtin_id);
205 number_format(
const std::string &code, std::size_t custom_id);
210 void format_string(
const std::string &format_code);
215 void format_string(
const std::string &format_code, std::size_t custom_id);
220 std::string format_string()
const;
230 void id(std::size_t
id);
235 std::size_t id()
const;
240 std::string
format(
const std::string &text)
const;
246 std::string format(
double number,
calendar base_date)
const;
251 bool is_date_format()
const;
272 std::string format_string_;
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:37
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
bool operator!=(const std::string &reference_string, const range_reference &ref)
Returns true if the string representation of the range is not equivalent to ref.
calendar
An enumeration of possible base dates. Dates in Excel are stored as days since this base date...
Definition: calendar.hpp:35