|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
Functions | |
| double | toDouble (const XLCellValue &v) |
| bool | isNumeric (const XLCellValue &v) |
| bool | isEmpty (const XLCellValue &v) |
| bool | isError (const XLCellValue &v) |
| std::string | toString (const XLCellValue &v) |
| XLCellValue | makeError (std::string_view token) |
| XLCellValue | errValue () |
| XLCellValue | errDiv0 () |
| XLCellValue | errNA () |
| XLCellValue | errNum () |
| XLCellValue | errRef () |
| XLCellValue | errName () |
| XLCellValue | errCirc () |
| std::string | strTrim (std::string s) |
| bool | tryParseNumericString (std::string_view s, double &out) |
| Parse a fully-numeric string (optional leading/trailing space) to double. | |
| XLCellValue | coerceToNumber (const XLCellValue &v, bool blankAsZero=true) |
| Excel-style scalar numeric coercion for math functions and arithmetic. | |
| XLCellValue | coerceArgScalar (const XLFormulaArg &arg, bool blankAsZero=true) |
| Coerce the first scalar of an argument (implicit intersection / top-left). | |
| XLCellValue | firstError (const XLFormulaArg &arg) |
| First error value found in argument cells (Excel left-to-right, top-to-bottom). | |
| XLCellValue | firstError (const std::vector< XLFormulaArg > &args) |
| std::vector< double > | numerics (const std::vector< XLFormulaArg > &args) |
| std::vector< double > | numerics (const XLFormulaArg &arg) |
| std::vector< double > | numericsOrError (const std::vector< XLFormulaArg > &args, XLCellValue &outError) |
Like numerics(), but if any cell is an Error, sets outError and returns {}. | |
| std::vector< double > | numericsOrError (const XLFormulaArg &arg, XLCellValue &outError) |
| void | setFormulaRandomSeed (uint64_t seed) |
| Seed the formula RNG (thread-local engines reseed on next use). | |
| void | clearFormulaRandomSeed () |
| std::optional< uint64_t > | formulaRandomSeed () |
| std::mt19937_64 & | formulaRng () |
| void OpenXLSX::formula::clearFormulaRandomSeed | ( | ) |
Clear the optional seed (next RNG construction uses random_device).
|
nodiscard |
Coerce the first scalar of an argument (implicit intersection / top-left).
|
nodiscard |
Excel-style scalar numeric coercion for math functions and arithmetic.
Error → same error (propagated). Empty → 0 when blankAsZero, else #VALUE!. Integer/Float/Boolean → numeric. Fully-numeric string → number. Else #VALUE!.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
nodiscard |
|
nodiscard |
First error value found in argument cells (Excel left-to-right, top-to-bottom).
|
nodiscard |
Currently configured seed, if any.
|
nodiscard |
Thread-local mt19937_64 used by formula random functions.
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
Build an error XLCellValue with the given Excel error token (e.g. "#VALUE!").
|
nodiscard |
Flatten numeric values from formula arguments (skips non-numeric cells and errors).
|
nodiscard |
|
nodiscard |
Like numerics(), but if any cell is an Error, sets outError and returns {}.
Used by SUM/AVERAGE/MIN/MAX so errors short-circuit instead of being skipped.
|
nodiscard |
| void OpenXLSX::formula::setFormulaRandomSeed | ( | uint64_t | seed | ) |
Seed the formula RNG (thread-local engines reseed on next use).
When set, RAND/RANDBETWEEN/RANDARRAY produce reproducible sequences within each thread. Call clearFormulaRandomSeed() to restore non-deterministic seeding via std::random_device.
|
nodiscard |
|
nodiscard |
Convert Integer / Float / Boolean to double; NaN for other types.
|
nodiscard |
Stringify a cell value for text functions; empty for non-displayable types.
|
nodiscard |
Parse a fully-numeric string (optional leading/trailing space) to double.