summaryrefslogtreecommitdiff
path: root/sax/src/guessing_decoder.hh
diff options
context:
space:
mode:
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