summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/util.h b/util.h
index 4b3ce9b..bef2a3e 100644
--- a/util.h
+++ b/util.h
@@ -9,12 +9,14 @@
#define UTIL_H_
#include <time.h>
#include <stdlib.h>
+#include <string>
class cChannel;
struct tChannelID;
class cEvent;
class cEquivHandler;
class cSchedules;
+class cCharSetConv;
#define START '\0'
#define STOP '\0'
@@ -94,5 +96,22 @@ extern struct hufftab *tables[2][128];
extern int table_size[2][128];
//static sNodeH* sky_tables[2];
+class cCharsetFixer
+{
+public:
+ cCharsetFixer();
+ virtual ~cCharsetFixer();
+ const char* FixCharset(const char* text);
+ void InitCharsets(const cChannel* Channel);
+
+private:
+ cCharSetConv* conv_revert;//("UTF-8",CharsetOverride);
+ cCharSetConv* conv_to;//(fixCharset.c_str());
+ const char* charsetOverride;
+ std::string fixedCharset;
+ std::string initialCharset;
+
+};
+
}
#endif /* UTIL_H_ */