diff options
author | Kali Kaneko <kali@futeisha.org> | 2013-10-11 11:05:19 -0300 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2013-10-11 11:05:19 -0300 |
commit | 9094792c6220801c43a3ed6dd614dea4b138af05 (patch) | |
tree | 03cb9a45e0308e2b94c4c69aadfe58b7c3699e07 /src/ext/libcharsetdetect/charsetdetectPriv.h |
Imported Upstream version 0.3.5
Diffstat (limited to 'src/ext/libcharsetdetect/charsetdetectPriv.h')
-rw-r--r-- | src/ext/libcharsetdetect/charsetdetectPriv.h | 19 |
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; +}; + |