29#include <sptk5/Buffer.h>
30#include <sptk5/xdoc/XMLEntities.h>
62 explicit XMLDocType(
const char* name,
const char* public_id =
nullptr,
const char* system_id =
nullptr);
138 m_entities.removeEntity(name);
160 m_entities.setEntity(name, replacement);
164 std::array<char, 16> m_replacementBuffer {};
165 std::array<Buffer, 2> m_encodeBuffers;
171 char* appendDecodedEntity(
Buffer& ret,
const char* ent_start,
char* ent_end);
Definition: XMLEntities.h:66
Definition: ImportXML.h:51
Definition: XMLDocType.h:50
bool encodeEntities(const char *str, Buffer &ret)
const char * getReplacement(const char *name, uint32_t &replacementLength)
void removeEntity(const char *name)
Definition: XMLDocType.h:136
void setEntity(const String &name, const String &replacement)
Definition: XMLDocType.h:158
Entities & entities()
Definition: XMLDocType.h:97
const String & publicID() const
Definition: XMLDocType.h:77
const Entities & entities() const
Definition: XMLDocType.h:107
XMLDocType(const char *name, const char *public_id=nullptr, const char *system_id=nullptr)
const String & name() const
Definition: XMLDocType.h:67
const String & systemID() const
Definition: XMLDocType.h:87
void decodeEntities(const char *str, size_t sz, Buffer &ret)