25#include "qutf7codec.h"
27#include <tqtextcodecplugin.h>
29#include <tqstringlist.h>
30#include <tqvaluelist.h>
36class TQUtf7CodecPlugin : public TQTextCodecPlugin {
38 TQUtf7CodecPlugin() {}
40 TQStringList names() const { return TQStringList() << "UTF-7" << "X-QT-UTF-7-STRICT"; }
41 TQValueList<int> mibEnums() const { return TQValueList<int>() << 1012 << -1012; }
42 TQTextCodec * createForMib( int );
43 TQTextCodec * createForName( const TQString & );
46TQTextCodec * TQUtf7CodecPlugin::createForMib( int mib ) {
49 else if ( mib == -1012 )
54TQTextCodec * TQUtf7CodecPlugin::createForName( const TQString & name ) {
55 if ( name == "UTF-7" )
57 else if ( name == "X-QT-UTF-7-STRICT" )
62TDE_EXPORT_PLUGIN( TQUtf7CodecPlugin );
This is a version of TQUtf7Codec, which should only be used in MIME transfer.
A TQTextCodec for the UTF-7 transformation of Unicode.
|