DefinedNameUtility
Overview
DefinedNameUtility is a class in Aspose.Cells FOSS for C++.
Provides normalization and validation helpers for defined names.
Methods
| Signature | Description |
|---|---|
IsReservedName(name: std::string_view) → bool | Returns true if the given name matches one of the reserved built-in defined names (case-insensitive). |
NormalizeName(name: std::string_view) → std::string | Trims and validates a defined name. Throws CellsException if the name is empty or is a reserved built-in name. |
NormalizeFormula(formula: std::string_view) → std::string | Trims a formula, strips a leading ‘=’ if present, and trims again. Throws CellsException if the result is empty. |
NormalizeComment(comment: std::string_view) → std::string | Trims a comment and returns the result. |
SameScope(left: std::optional<int>, right: std::optional<int>) → bool | Returns true when both scopes are absent or both are present with equal values. |