summaryrefslogtreecommitdiff
path: root/sax/src/guessing_decoder.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2024-01-21 12:31:30 +0100
committerJoel Klinghed <the_jk@spawned.biz>2024-01-21 12:31:30 +0100
commit7dd49c6293172b494c78918507242cdb55d35137 (patch)
tree9c8ab822ab9501a5ea2f937e609144e00ea091c4 /sax/src/guessing_decoder.hh
parentfc4547b412e28164af1bf8981234c6af959ccc0b (diff)
WIP
Diffstat (limited to 'sax/src/guessing_decoder.hh')
-rw-r--r--sax/src/guessing_decoder.hh21
1 files changed, 21 insertions, 0 deletions
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 <memory>
+
+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<Decoder> HIDDEN create_guessing_decoder();
+
+} // namespace sax
+} // namespace modxml
+
+#endif // GUESSING_DECODER_HH