Abstract read-only view of the workbook shared string table.
More...
#include <XLSharedStringTable.hpp>
|
| virtual | ~XLSharedStringTable ()=default |
| virtual int32_t | stringCount () const =0 |
| virtual int32_t | getStringIndex (std::string_view str) const =0 |
| | Look up an existing string's index.
|
| virtual bool | stringExists (std::string_view str) const =0 |
| virtual const char * | getString (int32_t index) const =0 |
| | Resolve an SST index to a null-terminated C string.
|
| virtual std::string_view | getStringView (int32_t index) const =0 |
| | Resolve an SST index to a string_view into the arena/cache.
|
Abstract read-only view of the workbook shared string table.
- Note
- Implemented by XLDocument (delegates to its XLSharedStrings). Lifetime must outlive consumers.
◆ ~XLSharedStringTable()
| virtual OpenXLSX::XLSharedStringTable::~XLSharedStringTable |
( |
| ) |
|
|
virtualdefault |
◆ getString()
| virtual const char * OpenXLSX::XLSharedStringTable::getString |
( |
int32_t | index | ) |
const |
|
nodiscardpure virtual |
◆ getStringIndex()
| virtual int32_t OpenXLSX::XLSharedStringTable::getStringIndex |
( |
std::string_view | str | ) |
const |
|
nodiscardpure virtual |
◆ getStringView()
| virtual std::string_view OpenXLSX::XLSharedStringTable::getStringView |
( |
int32_t | index | ) |
const |
|
nodiscardpure virtual |
◆ stringCount()
| virtual int32_t OpenXLSX::XLSharedStringTable::stringCount |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ stringExists()
| virtual bool OpenXLSX::XLSharedStringTable::stringExists |
( |
std::string_view | str | ) |
const |
|
nodiscardpure virtual |
The documentation for this class was generated from the following file: