XlsxWorkbookArchiveHelpers

XlsxWorkbookArchiveHelpers

Overview

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

Internal helper methods for reading XLSX workbook parts from a ZIP archive.

Methods

SignatureDescription
EnsureSeekable(stream: std::vector<uint8_t>)std::vector<uint8_t>Ensures the byte buffer is seekable (identity for in-memory data).
GetEntry(archive: ZipArchive, uri: std::string_view)ZipArchiveEntryGets a ZIP entry by URI, normalizing leading slashes and backslashes.
LoadDocument(entry: ZipArchiveEntry)XmlDocumentLoads an XML document from a ZIP entry.
LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view)std::unordered_map<std::string, std::string>Loads relationships from a .rels file in the archive.
FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view)std::stringFinds the first relationship target whose resolved path matches expectedPath.
FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view)std::stringFinds the first relationship target whose inferred kind matches relationshipType.
LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics)std::vector<std::string>Loads the shared strings table from the archive.
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics)std::unordered_set<int>Loads the set of cell-format indexes that use a date number format.
ParseBoolAttribute(attribute: XmlAttribute)boolParses a boolean attribute (“1” or “true” yields true).
ParseIntAttribute(attribute: XmlAttribute)std::optional<int>Parses an integer attribute, returning empty on failure or null attribute.
ParseDoubleAttribute(attribute: XmlAttribute)std::optional<double>Parses a double attribute, returning empty on failure or null attribute.
NormalizeFormula(value: std::string_view)std::stringNormalizes a formula string by trimming and stripping a leading ‘=’.
ReadInlineString(inlineStringElement: XmlElement)std::stringReads the concatenated text from an inline-string element.
TryParseNumber(rawValue: std::string_view, numberValue: CellValue)boolAttempts to parse a raw string as a number (int or double).
AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue)Records a load issue and notifies the warning callback if present.
ResolveWorksheetUri(sheetIndex: int, relationshipId: std::string_view, workbookRelationships: std::unordered_map<std::string, std::string>, archive: ZipArchive, diagnostics: LoadDiagnostics, sheetName: std::string_view, options: LoadOptions)std::stringResolves the worksheet part URI from a relationship id, falling back to convention.
ResolvePartUri(sourceUri: std::string_view, target: std::string_view)std::stringResolves a relative or absolute target against a source URI.
RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view)boolTests whether a candidate path matches an expected URI (case-insensitive).
GetRelationshipTargetKind(candidate: std::string_view)std::stringInfers the relationship type from a resolved target path.
LooksLikeDateFormat(formatCode: std::string_view)boolTests whether a number format code looks like a date/time format.

See Also