XlsxWorkbookArchiveHelpers
XlsxWorkbookArchiveHelpers
概要
XlsxWorkbookArchiveHelpers は Aspose.Cells の C++ 用 FOSS のクラスです。
ZIP アーカイブから XLSX ワークブック パーツを読み取るための内部ヘルパーメソッド。
このクラスは C++ プログラムで XlsxWorkbookArchiveHelpers オブジェクトを操作するための 21 のメソッドを提供します。利用可能なメソッドには、AddIssue、EnsureSeekable、FindRelationshipTarget、FindRelationshipTargetByType、GetEntry、GetRelationshipTargetKind、LoadDateStyleIndexes、LoadDocument、LoadRelationships、LoadSharedStrings、LooksLikeDateFormat、NormalizeFormula、および 9 つの追加メソッドが含まれます。すべてのパブリックメンバーは、Aspose.Cells の C++ 用 FOSS パッケージをインストールした後、任意の C++ アプリケーションからアクセス可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
XlsxWorkbookArchiveHelpers() | この XlsxWorkbookArchiveHelpers インスタンス上で XlsxWorkbookArchiveHelpers を呼び出します。 |
EnsureSeekable(stream: std::vector<uint8_t>) → std::vector<uint8_t> | バイトバッファがシーク可能であることを保証します(インメモリデータの場合はそのまま)。 |
GetEntry(archive: ZipArchive, uri: std::string_view) → ZipArchiveEntry | URI で ZIP エントリを取得し、先頭のスラッシュとバックスラッシュを正規化します。 |
LoadDocument(entry: ZipArchiveEntry) → XmlDocument | ZIP エントリから XML ドキュメントをロードします。 |
LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view) → std::unordered_map<std::string, std::string> | アーカイブ内の .rels ファイルからリレーションシップを読み込みます。 |
FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view) → std::string | expectedPath と一致する解決されたパスを持つ最初のリレーションシップターゲットを見つけます。 |
FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view) → std::string | 推測された種別が relationshipType と一致する最初のリレーションシップターゲットを見つけます。 |
LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::vector<std::string> | アーカイブから shared strings table を読み込みます。 |
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::unordered_set<int> | 日付の数値フォーマットを使用するセルフォーマットインデックスの集合をロードします。 |
ParseBoolAttribute(attribute: XmlAttribute) → bool | 真偽属性を解析します(“1” または “true” が true を返します)。 |
ParseIntAttribute(attribute: XmlAttribute) → std::optional<int> | 整数属性を解析し、失敗した場合または属性が null の場合は空を返します。 |
ParseDoubleAttribute(attribute: XmlAttribute) → std::optional<double> | double属性を解析し、失敗した場合または属性が null の場合は空を返します。 |
NormalizeFormula(value: std::string_view) → std::string | 数式文字列をトリミングし、先頭の ‘=’ を除去して正規化します。 |
ReadInlineString(inlineStringElement: XmlElement) → std::string | インライン文字列要素から結合されたテキストを読み取ります。 |
TryParseNumber(rawValue: std::string_view, numberValue: CellValue) → bool | 生の文字列を数値(整数または倍精度浮動小数点)として解析しようとします。 |
AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue) | ロード時の問題を記録し、存在する場合は警告コールバックに通知します。 |
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::string | リレーションシップ ID からワークシート パートの URI を解決し、規約にフォールバックします。 |
ResolvePartUri(sourceUri: std::string_view, target: std::string_view) → std::string | 相対または絶対のターゲットをソース URI に対して解決します。 |
RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view) → bool | 候補パスが期待される URI と一致するか(大文字小文字を区別せず)テストします。 |
GetRelationshipTargetKind(candidate: std::string_view) → std::string | 解決されたターゲット パスからリレーションシップタイプを推測します。 |
LooksLikeDateFormat(formatCode: std::string_view) → bool | 数値書式コードが日付/時刻書式に見えるかどうかをテストします。 |