summaryrefslogtreecommitdiff
path: root/src/ext/libcharsetdetect/charsetdetectPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/libcharsetdetect/charsetdetectPriv.h')
-rw-r--r--src/ext/libcharsetdetect/charsetdetectPriv.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ext/libcharsetdetect/charsetdetectPriv.h b/src/ext/libcharsetdetect/charsetdetectPriv.h
new file mode 100644
index 0000000..89c950b
--- /dev/null
+++ b/src/ext/libcharsetdetect/charsetdetectPriv.h
@@ -0,0 +1,19 @@
+/* The classes below are not exported */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "nscore.h"
+#include "nsUniversalDetector.h"
+
+class Detector : public nsUniversalDetector {
+public:
+ Detector(PRUint32 aLanguageFilter) : nsUniversalDetector(aLanguageFilter) {};
+ int Consider(const char *data, int length);
+ const char *Close(void);
+
+ const char *Close2(float *confidence);
+protected:
+ void Report(const char* aCharset);
+ const char *mDetectedCharset;
+};
+