From fc4547b412e28164af1bf8981234c6af959ccc0b Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 13 Jun 2023 10:07:16 +0200 Subject: WIP --- sax/src/decoder.hh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sax/src/decoder.hh (limited to 'sax/src/decoder.hh') diff --git a/sax/src/decoder.hh b/sax/src/decoder.hh new file mode 100644 index 0000000..bd2a99a --- /dev/null +++ b/sax/src/decoder.hh @@ -0,0 +1,33 @@ +#ifndef DECODER_HH +#define DECODER_HH + +#include "macros.hh" + +#include + +namespace modxml { +namespace sax { + +class Decoder; + +// UTF-8 with optional BOM +std::unique_ptr HIDDEN create_utf8_decoder(); +// UTF-16 with BOM +std::unique_ptr HIDDEN create_utf16_decoder(); +// UTF-16BE with optional BOM +std::unique_ptr HIDDEN create_utf16be_decoder(); +// UTF-16LE with optional BOM +std::unique_ptr HIDDEN create_utf16le_decoder(); +// UTF-32 with BOM +std::unique_ptr HIDDEN create_utf32_decoder(); +// UTF-32BE with optional BOM +std::unique_ptr HIDDEN create_utf32be_decoder(); +// UTF-32LE with optional BOM +std::unique_ptr HIDDEN create_utf32le_decoder(); +// US-ASCII +std::unique_ptr HIDDEN create_ascii_decoder(); + +} // namespace sax +} // namespace modxml + +#endif // DECODER_HH -- cgit v1.2.3-70-g09d2