From 7dd49c6293172b494c78918507242cdb55d35137 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 21 Jan 2024 12:31:30 +0100 Subject: WIP --- sax/src/guessing_decoder.hh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sax/src/guessing_decoder.hh (limited to 'sax/src/guessing_decoder.hh') diff --git a/sax/src/guessing_decoder.hh b/sax/src/guessing_decoder.hh new file mode 100644 index 0000000..0f42c3b --- /dev/null +++ b/sax/src/guessing_decoder.hh @@ -0,0 +1,21 @@ +#ifndef GUESSING_DECODER_HH +#define GUESSING_DECODER_HH + +#include "macros.hh" + +#include + +namespace modxml { +namespace sax { + +class Decoder; + +// Decoder that tries to figure out, using BOM or just magic +// what encoding is used, optimized for the first character to be +// '<'. +std::unique_ptr HIDDEN create_guessing_decoder(); + +} // namespace sax +} // namespace modxml + +#endif // GUESSING_DECODER_HH -- cgit v1.2.3-70-g09d2