summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/codecs/cn/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:28:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:28:33 +0900
commit1df632a0e6e550a5a100247c6b4713078e78f413 (patch)
treee8577c3d310285ebb4c8beea37998f408286bda3 /tqtinterface/qt4/plugins/src/codecs/cn/main.cpp
parent012b00740f33c01949c88d7ea97e2dee81fabb41 (diff)
downloadexperimental-1df632a0e6e550a5a100247c6b4713078e78f413.tar.gz
experimental-1df632a0e6e550a5a100247c6b4713078e78f413.zip
Removed unnecessary and/or TDE-unrelated code.r14.0.7
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/plugins/src/codecs/cn/main.cpp')
-rw-r--r--tqtinterface/qt4/plugins/src/codecs/cn/main.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/tqtinterface/qt4/plugins/src/codecs/cn/main.cpp b/tqtinterface/qt4/plugins/src/codecs/cn/main.cpp
deleted file mode 100644
index 3c9064c..0000000
--- a/tqtinterface/qt4/plugins/src/codecs/cn/main.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <tqtextcodecplugin.h>
-#include <tqtextcodec.h>
-#include <tqptrlist.h>
-#include <tqapplication.h>
-
-#include <tqgb18030codec.h>
-#include <private/tqfontcodecs_p.h>
-
-
-class CNTextCodecs : public TQTextCodecPlugin
-{
-public:
- CNTextCodecs() {}
-
- TQStringList names() const { return TQStringList() << "GB18030" << "GBK" << "gb2312.1980-0" << "gbk-0"; }
- TQValueList<int> mibEnums() const { return TQValueList<int>() << -2025 << 57 << 2025; }
-
- TQTextCodec *createForMib( int );
- TQTextCodec *createForName( const TQString & );
-};
-
-TQTextCodec *CNTextCodecs::createForMib( int mib )
-{
- switch (mib) {
- case 57:
- return new TQGb2312Codec;
- case 2025:
- return new TQGbkCodec;
- case -2025:
- return new TQGb18030Codec;
- default:
- ;
- }
-
- return 0;
-}
-
-
-TQTextCodec *CNTextCodecs::createForName( const TQString &name )
-{
- if (name == "GB18030")
- return new TQGb18030Codec;
- if (name == "GBK" || name == "gbk-0")
- return new TQGbkCodec;
- if (name == "gb2312.1980-0")
- return new TQGb2312Codec;
-
- return 0;
-}
-
-
-TQ_EXPORT_PLUGIN( CNTextCodecs );