OpenXLSX 1.10.0
Loading...
Searching...
No Matches
OpenXLSX::XLNumberFormatter Class Reference

#include <XLNumberFormatter.hpp>

Public Member Functions

 XLNumberFormatter (const std::string &formatString)
 Constructor that pre-compiles (parses) the format string.
 
std::string format (const XLCellValue &value) const
 Applies the format to a given cell value.
 

Constructor & Destructor Documentation

◆ XLNumberFormatter()

OpenXLSX::XLNumberFormatter::XLNumberFormatter ( const std::string &  formatString)
explicit

Constructor that pre-compiles (parses) the format string.

Parameters
formatStringExcel format string (e.g., "yyyy-mm-dd hh:mm:ss", "#,##0.00;[Red](#,##0.00)")

Member Function Documentation

◆ format()

std::string OpenXLSX::XLNumberFormatter::format ( const XLCellValue value) const

Applies the format to a given cell value.

Parameters
valueThe value to format
Returns
The formatted string representation

The documentation for this class was generated from the following files: