diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-11-21 09:11:04 +0100 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-11-21 09:11:04 +0100 |
commit | c72251596c42864a959aedd7d916e834aac276e9 (patch) | |
tree | 19350436aea74c64936440d203d057f172806f81 /util.h | |
parent | a6207b35db9e524fef7243faab839c4d98e318f1 (diff) | |
download | vdr-plugin-eepg-c72251596c42864a959aedd7d916e834aac276e9.tar.gz vdr-plugin-eepg-c72251596c42864a959aedd7d916e834aac276e9.tar.bz2 |
Moved charset fixing code to a separate class
Added setup option to enable/dissable charset fixing
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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_ */ |