DefinedNameUtility

DefinedNameUtility

Overview

DefinedNameUtility is a class in Aspose.Cells FOSS for C++.

Provides normalization and validation helpers for defined names.

Methods

SignatureDescription
IsReservedName(name: std::string_view)boolReturns true if the given name matches one of the reserved built-in defined names (case-insensitive).
NormalizeName(name: std::string_view)std::stringTrims 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::stringTrims a formula, strips a leading ‘=’ if present, and trims again. Throws CellsException if the result is empty.
NormalizeComment(comment: std::string_view)std::stringTrims a comment and returns the result.
SameScope(left: std::optional<int>, right: std::optional<int>)boolReturns true when both scopes are absent or both are present with equal values.

See Also